public class IlvSDMClippingLinkConnector extends IlvClippingLinkConnector implements IlvCachedLinkConnectionRectIndex
Constructor and Description |
---|
IlvSDMClippingLinkConnector()
Creates a new SDM clipping link connector.
|
IlvSDMClippingLinkConnector(IlvGraphic node)
Creates a new SDM clipping link connector.
|
IlvSDMClippingLinkConnector(IlvGraphic node,
IlvSDMEngine engine)
Creates a new SDM clipping link connector.
|
IlvSDMClippingLinkConnector(IlvInputStream stream)
Reads an SDM clipping link connector from an IVL input stream.
|
IlvSDMClippingLinkConnector(IlvLinkImage link,
boolean origin)
Creates a new SDM clipping 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.
|
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.
|
getClippedPoint, getUnclippedConnectionPoint, useCache, zoomable
allLinksRemoved, allowsConnectionPointMove, connectionPointMoveAllowed, connectLink, detach, detach, disconnectAllLinks, disconnectLink, getClosestConnectionPoint, getGhostBoundingBox, isConnectionPointMoveAllowed, isPersistent, linkRemoved, read, setConnectionPointMoveAllowed, write, write
cleanCache, cleanCache, getCacheSize, getConnectionPoint, linkChanged, LinkChanged, LinkRemoved, setCacheSize, useCache
attach, attach, attach, drawGhost, Get, Get, GetAttached, GetAttached, getNode, supportsDrawGhost
public IlvSDMClippingLinkConnector(IlvLinkImage link, boolean origin)
link
- The link to which the connector is attached.origin
- true
creates a link connector for the origin.public IlvSDMClippingLinkConnector(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 IlvSDMClippingLinkConnector(IlvGraphic node)
node
- The node to which the connector is attached.public IlvSDMClippingLinkConnector()
public IlvSDMClippingLinkConnector(IlvInputStream stream) throws IlvReadFileException
stream
- The IVL input stream.IlvReadFileException
- if the format is not correct.protected IlvRect getNodeBoundingBox(IlvTransformer t)
getLinkConnectionRectangle
of the SDM renderer(s).getNodeBoundingBox
in class IlvFreeLinkConnector
t
- The transformer used to compute the link connection rectangle
of the node.protected IlvPoint calcConnectionPoint(IlvLinkImage link, boolean origin, IlvTransformer transformer)
calcConnectionPoint
in class IlvClippingLinkConnector
link
- 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 link.public void setCachedLinkConnectionRectIndex(int index)
setCachedLinkConnectionRectIndex
in interface IlvCachedLinkConnectionRectIndex
public int getCachedLinkConnectionRectIndex()
getCachedLinkConnectionRectIndex
in interface IlvCachedLinkConnectionRectIndex
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.