ilog.views.sdm.graphic
Class IlvSDMCompositeLink

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.IlvLinkImage
          extended by ilog.views.graphic.IlvPolylineLinkImage
              extended by ilog.views.graphic.composite.IlvCompositeLink
                  extended by ilog.views.sdm.graphic.IlvSDMCompositeLink
All Implemented Interfaces:
IlvComposite, IlvGraphicBag, IlvLabelInterface, IlvPolyPointsInterface, IlvPersistentObject, ilog.views.sdm.internal.labellayout.IlvSDMLabeledNode, Transferable, Serializable

public class IlvSDMCompositeLink
extends IlvCompositeLink
implements ilog.views.sdm.internal.labellayout.IlvSDMLabeledNode

This class adds layering features to the IlvCompositeLink class.

Since:
JViews 6.0
See Also:
Serialized Form

Constructor Summary
IlvSDMCompositeLink()
          Creates an IlvSDMCompositeLink instance.
IlvSDMCompositeLink(IlvGraphic from, IlvGraphic to, boolean oriented)
          Creates a new IlvSDMCompositeLink instance.
IlvSDMCompositeLink(IlvGraphic from, IlvGraphic to, boolean oriented, IlvLinkImage link)
          Creates a new IlvSDMCompositeLink instance.
IlvSDMCompositeLink(IlvInputStream stream)
          Reads the object from an IlvInputStream.
IlvSDMCompositeLink(IlvSDMCompositeLink source)
          Creates an IlvSDMCompositeLink by copying an existing one.
 
Method Summary
 IlvGraphic copy()
          Copies the object.
protected  IlvCompositeGraphic createCompositeNode()
          Returns the Composite Node instance used to lay out the children.
 int[] getLayers()
          Returns the layers of the children of this IlvCompositeLink instance.
 int getLayers(int index)
          Returns the layer of the child at the specified position.
 void setGraphicBag(IlvGraphicBag bag)
          Changes the bag that contains the object.
 void setLayers(int[] layers)
          Sets the layer of the child at the specified position of this object.
 void setLayers(int index, int layer)
          Sets the layer of the child at the specified position of this object.
 void updateLabelingModel(IlvSDMEngine engine, IlvAnnealingLabelLayout layout, ilog.views.sdm.internal.labellayout.IlvSDMLabelingModel model, Object node, IlvGraphic graphic)
          You should not call this method directly.
 
Methods inherited from class ilog.views.graphic.composite.IlvCompositeLink
addObject, allowsPointInsertion, allowsPointMove, allowsPointRemoval, applyToObject, applyTransform, boundingBox, contains, doLayout, draw, drawCore, getAction, getAlpha, getAttachableGraphic, getBaseBoundingBox, getChildren, getChildren, getCompositeNode, getConnectionPoints, getConnectionReferencePoint, getConstraints, getConstraints, getEndCap, getEventMaps, getForeground, getLabel, getLabelBBox, getLineJoin, getLineStyle, getLineWidth, getLineWidth, getLink, getLinkPoints, getMaximumLineWidth, getObject, getObjects, getParent, getPointAt, getPointsCardinal, getRoot, getToolTipText, getVisibilityThresholds, getVisibilityThresholds, hasActions, insertPoint, invalidate, isOriented, isSensitive, isSpline, isValid, moveObject, movePoint, pointsInBBox, reDrawObj, reDrawRegion, removeObject, removePoint, reshapeObject, setAlpha, setChildren, setChildren, setConstraints, setConstraints, setEndCap, setForeground, setIntermediateLinkPoints, setLabel, setLineJoin, setLineStyle, setLineWidth, setLink, setMaximumLineWidth, setObjectName, setOriented, setSensitive, setToolTipText, setVisibilityThresholds, setVisibilityThresholds, supportMultiline, write
 
Methods inherited from class ilog.views.IlvLinkImage
arrowBBox, drawArrow, finalize, getArrowSize, getFrom, getFromBoundingBox, getFromTransformer, getLinkConnectorConnectionPoint, getLocalTransformerOf, getOpposite, getTo, getToBoundingBox, getToTransformer, getVisibleFrom, getVisibleTo, isPersistent, makeSelection, setFrom, setTo, zoomable
 
Methods inherited from class ilog.views.IlvGraphic
addActionListener, addNamedPropertyListener, boundingBox, getAndAssociateObjectInteractor, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isSelectable, isVisible, move, move, moveResize, notifyObjectInteractorToManager, processActionEvent, reDraw, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setEditable, setFillOn, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setVisible, toString, translate
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ilog.views.IlvGraphicBag
getGraphicBag
 

Constructor Detail

IlvSDMCompositeLink

public IlvSDMCompositeLink()
Creates an IlvSDMCompositeLink instance.


IlvSDMCompositeLink

public IlvSDMCompositeLink(IlvGraphic from,
                           IlvGraphic to,
                           boolean oriented)
Creates a new IlvSDMCompositeLink instance.

Parameters:
from - The origin object.
to - The destination object.
oriented - If true, an arrow is drawn at the destination point.

IlvSDMCompositeLink

public IlvSDMCompositeLink(IlvGraphic from,
                           IlvGraphic to,
                           boolean oriented,
                           IlvLinkImage link)
Creates a new IlvSDMCompositeLink instance.

Parameters:
from - The origin object.
to - The destination object.
oriented - If true, an arrow is drawn at the destination point.
link - The link to be used for rendering.

IlvSDMCompositeLink

public IlvSDMCompositeLink(IlvInputStream stream)
                    throws IlvReadFileException
Reads the object from an IlvInputStream.

Parameters:
stream - The input stream.
Throws:
IlvReadFileException - if the format is not correct.

IlvSDMCompositeLink

public IlvSDMCompositeLink(IlvSDMCompositeLink source)
Creates an IlvSDMCompositeLink by copying an existing one.

Parameters:
source - The link to be copied.
Since:
JViews 8.1
Method Detail

copy

public IlvGraphic copy()
Copies the object.

Overrides:
copy in class IlvCompositeLink
Returns:
A copy of this IlvGraphic instance.
See Also:
IlvGraphic

setLayers

public void setLayers(int[] layers)
Sets the layer of the child at the specified position of this object.


setLayers

public void setLayers(int index,
                      int layer)
Sets the layer of the child at the specified position of this object.


getLayers

public int getLayers(int index)
Returns the layer of the child at the specified position.

Returns:
-1 if the child at the specified position is in the same layer as this IlvCompositeGraphic.

getLayers

public int[] getLayers()
Returns the layers of the children of this IlvCompositeLink instance.

Returns:
An array of integer. At each position, there is the layer of the corresponding child or -1 if the child is in the same layer as this IlvCompositeGraphic.

setGraphicBag

public void setGraphicBag(IlvGraphicBag bag)
Changes the bag that contains the object. You should not call this method directly unless you are creating a new type of bag.

Overrides:
setGraphicBag in class IlvCompositeLink
Parameters:
bag - The graphic bag.
See Also:
IlvGraphic

createCompositeNode

protected IlvCompositeGraphic createCompositeNode()
Returns the Composite Node instance used to lay out the children.

Overrides:
createCompositeNode in class IlvCompositeLink

updateLabelingModel

public void updateLabelingModel(IlvSDMEngine engine,
                                IlvAnnealingLabelLayout layout,
                                ilog.views.sdm.internal.labellayout.IlvSDMLabelingModel model,
                                Object node,
                                IlvGraphic graphic)
You should not call this method directly.

Specified by:
updateLabelingModel in interface ilog.views.sdm.internal.labellayout.IlvSDMLabeledNode


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