ilog.views.sdm.graphic
Class IlvDefaultManagerFrameGraphic

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.sdm.graphic.IlvDefaultManagerFrameGraphic
All Implemented Interfaces:
IlvPersistentObject, Transferable, Serializable

public class IlvDefaultManagerFrameGraphic
extends IlvGraphic

This class is an adapter that wraps an IlvDefaultManagerFrame in an IlvGraphic. It makes it possible to use a default manager frame for subgraphs created by the SDM SubGraph renderer.

An IlvDefaultManagerFrameGraphic is an IlvGraphic version of an IlvDefaultManagerFrame. It has the same look and the same properties.

Since:
JViews 5.5
See Also:
IlvSubGraphRenderer, IlvDefaultManagerFrame, IlvManager, Serialized Form

Constructor Summary
IlvDefaultManagerFrameGraphic()
          Creates a new IlvDefaultManagerFrameGraphic.
IlvDefaultManagerFrameGraphic(IlvInputStream stream)
          Reads an IlvDefaultManagerFrameGraphic from an IVL input stream.
 
Method Summary
 void applyTransform(IlvTransformer t)
          Applies a transformation to this IlvDefaultManagerFrameGraphic.
 IlvRect boundingBox(IlvTransformer t)
          Returns the bounding box of this IlvDefaultManagerFrameGraphic.
 boolean contains(IlvPoint p, IlvPoint tp, IlvTransformer t)
          Tests if the specified point is contained in this IlvDefaultManagerFrameGraphic.
 IlvGraphic copy()
          Returns a copy of this IlvDefaultManagerFrameGraphic.
 void draw(Graphics dst, IlvTransformer t)
          Draws this IlvDefaultManagerFrameGraphic.
 Paint getBackground()
          See IlvDefaultManagerFrame.getBackground().
 Font getFont()
          See IlvDefaultManagerFrame.getFont().
 Color getForeground()
          See IlvDefaultManagerFrame.getForeground().
 IlvDefaultManagerFrame getManagerFrame()
          Returns the IlvDefaultManagerFrame wrapped in this IlvDefaultManagerFrameGraphic.
 String getTitle()
          See IlvDefaultManagerFrame.getTitle(ilog.views.IlvManager).
 Color getTitleColor()
          See IlvDefaultManagerFrame.getTitleColor().
 int getTitleJustification()
          See IlvDefaultManagerFrame.getTitleJustification().
 boolean isOpaque()
          See IlvDefaultManagerFrame.isOpaque(ilog.views.IlvManager).
 boolean isShowingTitle()
          See IlvDefaultManagerFrame.isShowingTitle().
 void moveResize(IlvRect rect)
          Reshapes this IlvDefaultManagerFrameGraphic.
 void setBackground(Paint p)
          See IlvDefaultManagerFrame.setBackground(java.awt.Paint).
 void setFont(Font font)
          See IlvDefaultManagerFrame.setFont(java.awt.Font).
 void setForeground(Color color)
          See IlvDefaultManagerFrame.setForeground(java.awt.Color).
 void setManagerFrame(IlvDefaultManagerFrame frame)
          Changes the IlvDefaultManagerFrame wrapped in this IlvDefaultManagerFrameGraphic.
 void setOpaque(boolean value)
          See IlvDefaultManagerFrame.setOpaque(boolean).
 void setShowingTitle(boolean set)
          See IlvDefaultManagerFrame.setShowingTitle(boolean).
 void setTitle(String title)
          See IlvDefaultManagerFrame.setTitle(java.lang.String).
 void setTitleColor(Color color)
          See IlvDefaultManagerFrame.setTitleColor(java.awt.Color).
 void setTitleJustification(int value)
          See IlvDefaultManagerFrame.setTitleJustification(int).
 void write(IlvOutputStream stream)
          Writes an IlvDefaultManagerFrameGraphic to an IVL output stream.
 
Methods inherited from class ilog.views.IlvGraphic
addActionListener, addNamedPropertyListener, boundingBox, getAndAssociateObjectInteractor, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isPersistent, isSelectable, isVisible, makeSelection, move, move, notifyObjectInteractorToManager, processActionEvent, reDraw, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setEditable, setFillOn, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipText, setVisible, toString, translate, zoomable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvDefaultManagerFrameGraphic

public IlvDefaultManagerFrameGraphic()
Creates a new IlvDefaultManagerFrameGraphic.


IlvDefaultManagerFrameGraphic

public IlvDefaultManagerFrameGraphic(IlvInputStream stream)
                              throws IlvReadFileException,
                                     IOException
Reads an IlvDefaultManagerFrameGraphic from an IVL input stream.

Throws:
IlvReadFileException
IOException
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes an IlvDefaultManagerFrameGraphic to an IVL output stream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvGraphic
Parameters:
stream - The output stream to write this graphic object to.
Throws:
IOException - thrown when an exception occurs during the write operation for this object.

copy

public IlvGraphic copy()
Returns a copy of this IlvDefaultManagerFrameGraphic.

Specified by:
copy in class IlvGraphic
Returns:
A copy of this IlvGraphic instance.
See Also:
IlvGraphic

boundingBox

public IlvRect boundingBox(IlvTransformer t)
Returns the bounding box of this IlvDefaultManagerFrameGraphic.

Specified by:
boundingBox in class IlvGraphic
Parameters:
t - The transformer used to draw the object. If the transformer is null, the bounding box for the identity transformer is returned.
See Also:
IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer), IlvGraphic.zoomable(), IlvGraphic

draw

public void draw(Graphics dst,
                 IlvTransformer t)
Draws this IlvDefaultManagerFrameGraphic.

Specified by:
draw in class IlvGraphic
Parameters:
dst - The destination Graphics.
t - The transformation used to draw the object.
See Also:
IlvGraphic.boundingBox(ilog.views.IlvTransformer), IlvGraphic.zoomable(), IlvGraphic

contains

public boolean contains(IlvPoint p,
                        IlvPoint tp,
                        IlvTransformer t)
Tests if the specified point is contained in this IlvDefaultManagerFrameGraphic.

Overrides:
contains in class IlvGraphic
Parameters:
p - The point to be tested.
tp - The point p transformed by the transformer t.
t - The transformation used to draw the object.
Returns:
true if the point lies inside this graphic object.
See Also:
IlvGraphic

applyTransform

public void applyTransform(IlvTransformer t)
Applies a transformation to this IlvDefaultManagerFrameGraphic.

Specified by:
applyTransform in class IlvGraphic
Parameters:
t - The transformation to be applied.
See Also:
IlvGraphic

moveResize

public void moveResize(IlvRect rect)
Reshapes this IlvDefaultManagerFrameGraphic.

Overrides:
moveResize in class IlvGraphic
Parameters:
rect - The new bounding rectangle for this object.
See Also:
IlvGraphic, IlvGraphic.applyTransform(IlvTransformer)

setManagerFrame

public void setManagerFrame(IlvDefaultManagerFrame frame)
Changes the IlvDefaultManagerFrame wrapped in this IlvDefaultManagerFrameGraphic.


getManagerFrame

public IlvDefaultManagerFrame getManagerFrame()
Returns the IlvDefaultManagerFrame wrapped in this IlvDefaultManagerFrameGraphic.


isOpaque

public boolean isOpaque()
See IlvDefaultManagerFrame.isOpaque(ilog.views.IlvManager).


setOpaque

public void setOpaque(boolean value)
See IlvDefaultManagerFrame.setOpaque(boolean).


getTitleColor

public Color getTitleColor()
See IlvDefaultManagerFrame.getTitleColor().


setTitleColor

public void setTitleColor(Color color)
See IlvDefaultManagerFrame.setTitleColor(java.awt.Color).


getFont

public Font getFont()
See IlvDefaultManagerFrame.getFont().


setFont

public void setFont(Font font)
See IlvDefaultManagerFrame.setFont(java.awt.Font).


getBackground

public Paint getBackground()
See IlvDefaultManagerFrame.getBackground().


setBackground

public void setBackground(Paint p)
See IlvDefaultManagerFrame.setBackground(java.awt.Paint).


getForeground

public Color getForeground()
See IlvDefaultManagerFrame.getForeground().


setForeground

public void setForeground(Color color)
See IlvDefaultManagerFrame.setForeground(java.awt.Color).

Overrides:
setForeground in class IlvGraphic
Parameters:
color - The new foreground color.
See Also:
IlvGraphic.draw(Graphics, IlvTransformer), IlvGraphic.setBackground(Color), IlvGraphic.setFillOn(boolean), IlvGraphic.setStrokeOn(boolean), IlvGraphic

isShowingTitle

public boolean isShowingTitle()
See IlvDefaultManagerFrame.isShowingTitle().


setShowingTitle

public void setShowingTitle(boolean set)
See IlvDefaultManagerFrame.setShowingTitle(boolean).


setTitleJustification

public void setTitleJustification(int value)
See IlvDefaultManagerFrame.setTitleJustification(int).


getTitleJustification

public int getTitleJustification()
See IlvDefaultManagerFrame.getTitleJustification().


setTitle

public void setTitle(String title)
See IlvDefaultManagerFrame.setTitle(java.lang.String).


getTitle

public String getTitle()
See IlvDefaultManagerFrame.getTitle(ilog.views.IlvManager).



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.