public static class IlvGrapherPinRenderer.SDMPinLinkConnector extends IlvPinLinkConnector implements IlvCachedLinkConnectionRectIndex
SDMPinLinkConnector
implements the
link connector used by the IlvGrapherPinRenderer
.
This class is public only to allow saving in an IVL file the contents of a grapher associated with an SDM engine and containing grapher pin information.
IlvPinCircle, IlvPinCross, IlvPinDiamond, IlvPinFilledCircle, IlvPinFilledDiamond, IlvPinFilledSquare, IlvPinFilledTriangle, IlvPinPlus, IlvPinSquare, IlvPinTriangle
Constructor and Description |
---|
SDMPinLinkConnector(IlvInputStream stream)
Reads the connector from an IVL stream.
|
SDMPinLinkConnector(IlvSDMEngine engine,
IlvGraphic node)
Creates a new
SDMPinLinkConnector . |
SDMPinLinkConnector(IlvSDMEngine engine,
IlvLinkImage link,
boolean origin)
Creates a new
SDMPinLinkConnector . |
Modifier and Type | Method and Description |
---|---|
void |
connectLink(IlvLinkImage link,
IlvPoint p,
boolean origin,
IlvTransformer t)
Connects the link to the pin that is closest to point
p . |
int |
getCachedLinkConnectionRectIndex()
Returns the cached link connection rectangle index.
|
void |
setCachedLinkConnectionRectIndex(int index)
Caches the link connection rectangle index.
|
protected boolean |
useCache()
Return
true because this link connector uses the cache. |
addPin, allLinksRemoved, calcConnectionPoint, connectLink, disconnectLink, disConnectLink, drawGhost, drawGhost, getClosestConnectionPin, getClosestConnectionPoint, getGhostBoundingBox, getPin, getPinColor, getPins, getPinSize, getPinType, getPinXORColor, isPersistent, linkRemoved, read, removePin, setPinColor, setPinSize, setPinType, setPinXORColor, supportsDrawGhost, write, write, zoomable
cleanCache, cleanCache, detach, detach, disconnectAllLinks, getCacheSize, getConnectionPoint, linkChanged, LinkChanged, LinkRemoved, setCacheSize, useCache
allowsConnectionPointMove, attach, attach, attach, Get, Get, GetAttached, GetAttached, getNode
public SDMPinLinkConnector(IlvSDMEngine engine, IlvGraphic node)
SDMPinLinkConnector
.public SDMPinLinkConnector(IlvSDMEngine engine, IlvLinkImage link, boolean origin)
SDMPinLinkConnector
.public SDMPinLinkConnector(IlvInputStream stream) throws IlvReadFileException, IOException
stream
- The input stream.IlvReadFileException
IOException
protected boolean useCache()
true
because this link connector uses the cache.useCache
in class IlvPinLinkConnector
public void connectLink(IlvLinkImage link, IlvPoint p, boolean origin, IlvTransformer t)
p
.connectLink
in class IlvPinLinkConnector
link
- The link to be connected.p
- The point where the link must be connected. The point must be
transformed by the transformer t
.origin
- If true
, the origin of the link will be
connected; otherwise, it is the destination.t
- The transformer that is used to draw the node.IlvLinkConnector.allowsConnectionPointMove(ilog.views.IlvLinkImage, boolean)
public void setCachedLinkConnectionRectIndex(int index)
setCachedLinkConnectionRectIndex
in interface IlvCachedLinkConnectionRectIndex
public int getCachedLinkConnectionRectIndex()
getCachedLinkConnectionRectIndex
in interface IlvCachedLinkConnectionRectIndex
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.