public class IlvSDMFreeLinkConnector extends IlvFreeLinkConnector implements IlvCachedLinkConnectionRectIndex
| Constructor and Description |
|---|
IlvSDMFreeLinkConnector()
Creates a new SDM free link connector.
|
IlvSDMFreeLinkConnector(IlvGraphic node)
Creates a new SDM free link connector.
|
IlvSDMFreeLinkConnector(IlvGraphic node,
IlvSDMEngine engine)
Creates a new SDM free link connector.
|
IlvSDMFreeLinkConnector(IlvInputStream stream)
Reads an SDM free link connector from an IVL input stream.
|
IlvSDMFreeLinkConnector(IlvLinkImage link,
boolean origin)
Creates a new SDM free link connector.
|
| Modifier and Type | Method and Description |
|---|---|
protected IlvPoint |
calcConnectionPoint(IlvLinkImage link,
boolean origin,
IlvTransformer transformer)
This method is overridden to take into account the link connection
rectangle of the node.
|
int |
getCachedLinkConnectionRectIndex()
Returns the cached link connection rectangle index.
|
IlvSDMEngine |
getEngine()
Returns the SDM Engine using this link connector.
|
protected IlvRect |
getNodeBoundingBox(IlvTransformer t)
This method is overridden to take into account the link connection
rectangle of the node.
|
void |
setCachedLinkConnectionRectIndex(int index)
Caches the link connection rectangle index.
|
protected boolean |
useCache()
Return
true because this link connector uses the cache. |
allLinksRemoved, allowsConnectionPointMove, connectionPointMoveAllowed, connectLink, detach, detach, disconnectAllLinks, disconnectLink, getClosestConnectionPoint, getGhostBoundingBox, isConnectionPointMoveAllowed, isPersistent, linkRemoved, read, setConnectionPointMoveAllowed, write, write, zoomablecleanCache, cleanCache, getCacheSize, getConnectionPoint, linkChanged, LinkChanged, LinkRemoved, setCacheSize, useCacheattach, attach, attach, drawGhost, Get, Get, GetAttached, GetAttached, getNode, supportsDrawGhostpublic IlvSDMFreeLinkConnector(IlvLinkImage link, boolean origin)
link - The link to which the connector is attached.origin - true creates a link connector for the origin.public IlvSDMFreeLinkConnector(IlvGraphic node, IlvSDMEngine engine)
node - The node to which the connector is attached.engine - The SDM engine in which the link connector is used.public IlvSDMFreeLinkConnector(IlvGraphic node)
node - The node to which the connector is attached.public IlvSDMFreeLinkConnector()
public IlvSDMFreeLinkConnector(IlvInputStream stream) throws IlvReadFileException
stream - The IVL input stream.IlvReadFileException - if the format is not correct.protected boolean useCache()
true because this link connector uses the cache.useCache in class IlvFreeLinkConnectorprotected IlvRect getNodeBoundingBox(IlvTransformer t)
getLinkConnectionRectangle
of the SDM renderer(s).getNodeBoundingBox in class IlvFreeLinkConnectort - The transformer used to compute the link connection rectangle
of the node.protected IlvPoint calcConnectionPoint(IlvLinkImage link, boolean origin, IlvTransformer transformer)
calcConnectionPoint in class IlvFreeLinkConnectorlink - The link.origin - If true, the position of the link
connection point for the link origin is determined. Otherwise, the
position of the link connection point for the link destination is found.transformer - The transformer that is used to draw the node.public IlvSDMEngine getEngine()
public void setCachedLinkConnectionRectIndex(int index)
setCachedLinkConnectionRectIndex in interface IlvCachedLinkConnectionRectIndexpublic int getCachedLinkConnectionRectIndex()
getCachedLinkConnectionRectIndex in interface IlvCachedLinkConnectionRectIndex© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.