|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.model.IlpDefaultObject
ilog.tgo.model.IltObject
ilog.tgo.model.IltAbstractLink
public abstract class IltAbstractLink
This class models any kind of link, either with or without a graphic rendering.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ilog.tgo.model.IltObject |
|---|
IltObject.ListPrimaryStateStyleValueProvider, IltObject.LogicalType, IltObject.TinyType |
| Field Summary | |
|---|---|
static float |
DefaultLinkDistance
This class variable stores the default distance between two parallel links. |
static IlpEnumKey |
FromPort
Deprecated. Please use CSS property fromPort instead. |
static IltAttribute |
FromPortAttribute
fromPort attribute. |
static IlpColorKey |
InnerBackgroundColor
Deprecated. |
static IlpFloatKey |
InnerBorderWidth
Deprecated. |
static IlpFloatKey |
InnerCenterWidth
Deprecated. |
static IlpColorKey |
InnerForegroundColor
Deprecated. |
static IlpLineStyleKey |
InnerLineStyle
Deprecated. |
static IltObjectInfo |
metainfo
Contains metainformation about this IltObject class. |
protected PropertyChangeSupport |
propSupport
|
static IlpEnumKey |
ToPort
Deprecated. Please use CSS property toPort instead. |
static IltAttribute |
ToPortAttribute
toPort attribute. |
| Fields inherited from interface ilog.cpl.model.IlpAttributeValueHolder |
|---|
VALUE_NOT_SET |
| Constructor Summary | |
|---|---|
IltAbstractLink(IlpClass ilpClass,
Object identifier)
Initializes the IltAbstractLink part of a link instance. |
|
IltAbstractLink(IltObjectState state,
String label)
Initializes the IltAbstractLink part of a link instance. |
|
IltAbstractLink(Object identifier)
Initializes the IltAbstractLink part of a link instance. |
|
| Method Summary | |
|---|---|
IltLinkSet |
_getLinkSet()
If the link has been added to a link set, this method returns the instance of IltLinkSet that implements the link set,
regardless of whether the link set implements a bundle or not. |
void |
_setLinkSet(IltLinkSet linkSet)
Sets the link set the link is in. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
void |
applyTransform(IltGraphicManager manager,
IltGraphic graphic,
IlvTransformer t,
IlpPositionSource reason)
Deprecated. |
protected void |
copyFrom(IltAbstractLink other)
Support for renderer. |
ilog.tgo.graphic.internal.IltGraphicUpdate |
createPositionUpdate(Object position,
Object positionInManager)
Creates the graphic update responsible for setting the position/shape to a graphical representation. |
static void |
ForceInit(ilog.tgo.util.internal.IltForceClassInit object)
To deserialize IltClassLegend instances. |
protected void |
forgetShapeGraphicSettingInManager(IltGraphicManager manager,
IltGraphic graphic)
Removes the shape graphic setting in manager coordinates. |
IlvRect |
getBaseRectangle(IltGraphicManager manager)
Returns the base rectangle of the graphic representation in a given IltGraphicManager. |
protected IlvPoint |
getCenterPoint(IltGraphicManager manager,
IltGraphic graphic)
Returns the position of the graphic representation in a given IltcObjectContainer. |
static IltLegend |
GetClassLegend()
Deprecated. The Style API has been replaced by the Cascading Style Sheet mechanism. Please refer to the User's Manual for further information. |
IltAbstractLink |
getDelegateFromTo()
|
IltObject |
getFrom()
Returns the object that is used as the logical first extremity of the link. |
IltObject |
getFrom(IltGraphic graphic)
Returns the object used as the first extremity of the given graphic representation of the link. |
IltObject |
getFrom(IltGraphicManager manager)
Returns the first extremity of the link in the given manager, or getLogicalFrom if the link is not in the manager. |
ilog.tgo.graphic.internal.IltGraphicRepresentationStyle |
getGraphicRepresentationStyle(IltCompositeGraphic graphic)
Returns the graphic representation type that should be used to the given composite graphic in this moment. |
static IltObjectInfo |
GetIlpClass()
Returns the IlpClass corresponding to this Java class. |
IltLinkSet |
getLinkSet()
If the link has been added to a link set, this method returns the instance of IltLinkSet that implements the link set. |
IltObject |
getLogicalFrom()
This method is identical to getFrom. |
IltObject |
getLogicalTo()
This method is identical to getTo. |
IltObject |
getNextFrom(IltGraphicManager manager)
Returns the object that will be used as the first extremity of the link, the next time the link is added to a manager. |
IltObject |
getNextTo(IltGraphicManager manager)
Returns the object that will be used as the second extremity of the link, the next time the link is added to a manager. |
IltGraphic |
getOutermostParentGraphic(IltGraphicManager manager)
This method is overridden by the subclasses which can be contained in other IltObjects. |
IltLineSpec |
getRepresentation()
Returns the graphic representation of the link, if fixed. |
IlpPolyline |
getShape(IltGraphicManager manager)
Deprecated. Adding a object to a datasource, connected to a graphic component such as an IlpNetwork, is enough to make its graphic representation
visible. When working with datasource, please use getPosition instead. |
protected IlpPolyline |
getShape(IltGraphicManager manager,
IltGraphic graphic)
Returns the shape graphic setting. |
IlpPolyline |
getShapeInManager(IltGraphic graphic)
For convenience, since the above does not really depend on the manager. |
protected IlpPolyline |
getShapeInManager(IltGraphicManager manager,
IltGraphic graphic)
Returns the position of the graphic representation in a given IltGraphicManager. |
IltObject |
getTo()
Returns the object that is used as the logical second extremity of the link. |
IltObject |
getTo(IltGraphic graphic)
Returns the object used as the second extremity of the given graphic representation of the link. |
IltObject |
getTo(IltGraphicManager manager)
Returns the second extremity of the link in the given manager, or getLogicalTo if the link is not in the manager. |
float |
getWidth(IltGraphicManager manager)
Deprecated. |
abstract float |
getWidth(IltGraphicManager manager,
IltGraphic graphic)
Returns the width of the graphic representation. |
void |
initializeVisibleGraphic(IltGraphicManager manager,
IltGraphic graphic)
This is called before adding a graphic representation to a given view. |
boolean |
isValidPosition(Object position)
Determines whether the argument is a valid position/shape for this type of object. |
void |
postCreateGraphic(IltGraphicManager manager,
IltGraphic graphic)
This is called at the end of adding a graphic representation to a given view. |
void |
removeGraphic(IltGraphicManager manager)
Removes the graphic representation of this link from the given manager. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
void |
restoreVisibility(IltGraphicManager manager,
IltGraphicSettings settings)
Deprecated. Adding a object to a datasource, connected to a graphic component such as an IlpNetwork, is enough to make its graphic representation
visible. Once visible, it is updated automatically when needed. |
void |
setBaseRectangle(IltGraphicManager manager,
IlvRect newBaseRectangle)
Applies a transformation to the graphic representation in a given IltGraphicManager, attempting to make the base rectangle resemble the given rectangle. |
void |
setCenterPoint(IltGraphicManager manager,
IltGraphic graphic,
IlvPoint position,
IlpPositionSource reason)
Changes the position of the graphic representation in a given IltcObjectContainer. |
void |
setFrom(IltGraphicManager manager,
IltObject from)
Sets the object that is to use as the first extremity of the link in the given manager. |
void |
setFrom(IltObject from)
Sets the object that is used as the logical first extremity of the link. |
void |
setFromOverride(IltGraphicManager manager,
IltObject newEnd)
Changes the override setting for the "from" end of a (yet nonexistent) graphic representation. |
void |
setLinkLayoutProxyPresent(IltGraphicManager manager,
boolean layoutable)
Sets the layoutability of the link in the given manager. |
void |
setLogicalFrom(IltObject from)
Sets the object that is used as the logical first extremity of the link. |
void |
setLogicalTo(IltObject to)
Sets the object that is used as the logical second extremity of the link. |
void |
setNextFrom(IltObject nextFrom)
Sets the object that will be used as the first extremity of the link the next time the link is added to a manager. |
void |
setNextTo(IltObject nextTo)
Sets the object that will be used as the second extremity of the link the next time the link is added to a manager. |
void |
setShape(IltGraphicManager manager,
IlpPolyline shape)
Deprecated. Adding a object to a datasource, connected to a graphic component such as an IlpNetwork, is enough to make its graphic representation
visible. When working with datasources, please use setPosition instead. |
void |
setShape(IltGraphicManager manager,
IlpPolyline shape,
IlpPositionSource reason)
Deprecated. Adding a object to a datasource, connected to a graphic component such as an IlpNetwork, is enough to make its graphic representation
visible. When working with datasources, please use setPosition instead. |
void |
setShape(IltGraphicManager manager,
IltGraphic graphic,
IlpPolyline shape,
IlpPositionSource reason)
Changes the shape graphic setting. |
void |
setShape(IltGraphicManager manager,
IltLogicalPolyline shape)
Deprecated. Please use IlpPolyline instead of IltLogicalPolyline. |
void |
setShapeGraphicSetting(IltGraphic graphic,
Object newShape)
Sets the graphic settings responsible for the shape of the object. |
void |
setShapeInManager(IltGraphicManager manager,
IltGraphic graphic,
IlpPolyline shape,
IlpPositionSource reason,
boolean assumeVisible)
Changes the shape of the link in the given manager, using the provided composite graphic. |
protected void |
setShapeInManagerAux(IltGraphicManager manager,
IltGraphic graphic,
IlpPolyline shape,
IlpPositionSource reason,
boolean assumeVisible)
Changes the position of the graphic representation in a given IltGraphicManager. |
void |
setShapeInManagerGraphicSetting(IltGraphic graphic,
Object newShape,
IlpPositionSource reason)
Sets the graphic settings responsible for the shape of the object in a given manager |
void |
setTo(IltGraphicManager manager,
IltObject to)
Sets the object that is to use as the second extremity of the link in the given manager. |
void |
setTo(IltObject to)
Sets the object that is used as the logical second extremity of the link. |
void |
setToOverride(IltGraphicManager manager,
IltObject newEnd)
Changes the override setting for the "to" end of a (yet nonexistent) graphic representation. |
String |
toString()
Returns the String representation of this IltAbstractLink's values. |
Object |
transformPosition(IltGraphicManager manager,
Object position)
Applies the manager transformer to the position parameter. |
void |
updateFrom(IltObject other)
Updates the local cache of attributes stored in getObjectAttribute(). |
void |
updateShapeGraphicSettingInManager(IltGraphicManager manager,
IltGraphic graphic,
Object newShape,
IlpPositionSource reason)
If the graphic representation is visible, updates the shape graphic setting in manager coordinates. |
boolean |
usingDefaultShape(IltGraphicManager manager)
Computes the graphic representation of the object in the given manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static IltObjectInfo metainfo
IltObject class.
protected transient PropertyChangeSupport propSupport
public static float DefaultLinkDistance
public static IltAttribute FromPortAttribute
fromPort attribute.
This attribute allows you to specify the preferred link port at the
from end.
Only effective when an IltShortLinkLayout is used.
Attribute name: fromPort.
Value type: IltLinkPort.
IltLinkPort,
IltShortLinkLayoutpublic static IltAttribute ToPortAttribute
toPort attribute.
This attribute allows you to specify the preferred link port at its
to end.
Only effective when an IltShortLinkLayout is used.
Attribute name: toPort.
Value type: IltLinkPort.
IltLinkPort,
IltShortLinkLayoutpublic static IlpEnumKey FromPort
fromPort instead.IltShortLinkLayout is used. Its value is an instance
of IltLinkPort. By default, the value is
an attribute style value provider pointing to the attribute
FromPortAttribute.
IltObjectCustomization.getFromPort(),
IltLinkPort,
IltShortLinkLayoutpublic static IlpEnumKey ToPort
toPort instead.IltShortLinkLayout is used.
Its value is an instance of IltLinkPort. By default, the value
is an attribute style value provider pointing to the attribute
ToPortAttribute.
IltObjectCustomization.getToPort(),
IltLinkPort,
IltShortLinkLayoutpublic static IlpFloatKey InnerCenterWidth
public static IlpFloatKey InnerBorderWidth
public static IlpLineStyleKey InnerLineStyle
public static IlpColorKey InnerForegroundColor
public static IlpColorKey InnerBackgroundColor
| Constructor Detail |
|---|
public IltAbstractLink(Object identifier)
IltAbstractLink part of a link instance.
This constructor is only here to be called by subclasses.
identifier - the identifier of this new instance
public IltAbstractLink(IlpClass ilpClass,
Object identifier)
IltAbstractLink part of a link instance.
This constructor is only here to be called by subclasses.
public IltAbstractLink(IltObjectState state,
String label)
IltAbstractLink part of a link instance.
This constructor is only here to be called by subclasses.
state - its semantic statelabel - its label| Method Detail |
|---|
public static IltObjectInfo GetIlpClass()
public static IltLegend GetClassLegend()
public IltLinkSet getLinkSet()
IltLinkSet that implements the link set. If the
link is not in a link set
this method returns null.
public IltLinkSet _getLinkSet()
IltLinkSet that implements the link set,
regardless of whether the link set implements a bundle or not.
public void _setLinkSet(IltLinkSet linkSet)
IltLinkSet.addLink method.
Note that, as opposed to TGO C++, this method does not adjust the link's
layoutability; this is because the layoutability is manager-dependent.
linkSet - the new link setIltLinkSet.addLink(ilog.tgo.model.IltAbstractLink)public ilog.tgo.graphic.internal.IltGraphicRepresentationStyle getGraphicRepresentationStyle(IltCompositeGraphic graphic)
IltCompositeGraphic
when the graphical representation of this object is being computed.
getGraphicRepresentationStyle in class IltObjectpublic IltAbstractLink getDelegateFromTo()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener to be removedpublic IltObject getLogicalFrom()
getFrom.
getFrom()public IltObject getFrom()
public IltObject getLogicalTo()
getTo.
getTo()public IltObject getTo()
public void setLogicalFrom(IltObject from)
setNextFrom is used
to set a specific first extremity for the link in the corresponding
manager.
public void setFrom(IltObject from)
public void setLogicalTo(IltObject to)
setNextTo is used
to set a specific second extremity for the link in the corresponding
manager.
public void setTo(IltObject to)
public void setFromOverride(IltGraphicManager manager,
IltObject newEnd)
newEnd - a telecom object or null
public void setToOverride(IltGraphicManager manager,
IltObject newEnd)
newEnd - a telecom object or nullpublic IltObject getFrom(IltGraphic graphic)
graphic - the graphic whose from end is queriedpublic IltObject getTo(IltGraphic graphic)
graphic - the graphic whose to end is queriedpublic IltObject getFrom(IltGraphicManager manager)
getLogicalFrom if the link is not in the manager.
manager - the manager where to look for the link's from endpublic IltObject getTo(IltGraphicManager manager)
getLogicalTo if the link is not in the manager.
manager - the manager where to look for the link's to end
public void setFrom(IltGraphicManager manager,
IltObject from)