public class IlvDashboardLinkConnector extends IlvSDMFreeLinkConnector
Constructor and Description |
---|
IlvDashboardLinkConnector()
Constructs an instance of
IlvDashboardLinkConnector ,
to be used by the CSS mechanism. |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsConnectionPointMove(IlvLinkImage link,
boolean origin)
This implementation always returns
true so the
link connection point can be moved by interactors. |
protected IlvPoint |
calcConnectionPoint(IlvLinkImage link,
boolean origin,
IlvTransformer transformer)
This method is overridden to take into account the link connection
rectangle of the node.
|
void |
connectLink(IlvLinkImage link,
IlvPoint p,
boolean origin,
IlvTransformer t)
Connects a link to a specified connection point.
|
protected boolean |
useCache()
Return
false because this link connector uses no cache. |
getCachedLinkConnectionRectIndex, getEngine, getNodeBoundingBox, setCachedLinkConnectionRectIndex
allLinksRemoved, connectionPointMoveAllowed, detach, detach, disconnectAllLinks, disconnectLink, getClosestConnectionPoint, getGhostBoundingBox, isConnectionPointMoveAllowed, isPersistent, linkRemoved, read, setConnectionPointMoveAllowed, write, write, zoomable
cleanCache, cleanCache, getCacheSize, getConnectionPoint, linkChanged, LinkChanged, LinkRemoved, setCacheSize, useCache
attach, attach, attach, drawGhost, Get, Get, GetAttached, GetAttached, getNode, supportsDrawGhost
public IlvDashboardLinkConnector()
IlvDashboardLinkConnector
,
to be used by the CSS mechanism.protected boolean useCache()
false
because this link connector uses no cache.useCache
in class IlvSDMFreeLinkConnector
public boolean allowsConnectionPointMove(IlvLinkImage link, boolean origin)
true
so the
link connection point can be moved by interactors.allowsConnectionPointMove
in class IlvFreeLinkConnector
true
IlvFreeLinkConnector.connectionPointMoveAllowed(boolean)
,
IlvLinkImage.allowsPointMove(int)
,
IlvFreeLinkConnector.isConnectionPointMoveAllowed()
public void connectLink(IlvLinkImage link, IlvPoint p, boolean origin, IlvTransformer t)
Notice that, for links that have not been connected using
IlvFreeLinkConnector.connectLink(ilog.views.IlvLinkImage, ilog.views.IlvPoint, boolean, ilog.views.IlvTransformer)
and for disconnected links (see
IlvFreeLinkConnector.disconnectLink(ilog.views.IlvLinkImage, boolean)
and IlvFreeLinkConnector.disconnectAllLinks()
),
the method IlvCachingLinkConnector.getConnectionPoint(ilog.views.IlvLinkImage, boolean, ilog.views.IlvTransformer)
returns null
.
In this case, IlvLinkImage
computes the connection point of the
link using the default rules, at the center of one of the sides of the
bounding box of the node or at its center.
Note also that, once a link connector has been attached to a node or a link
contained in an IlvGrapher
, this method must be called
using the method IlvManager.applyToObject(ilog.views.IlvGraphic, ilog.views.IlvApplyObject, java.lang.Object, boolean)
.
connectLink
in class IlvFreeLinkConnector
link
- The link to be connected.p
- The point where the link must be connected. The point
must be transformed by 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.IlvFreeLinkConnector.disconnectLink(ilog.views.IlvLinkImage, boolean)
,
IlvFreeLinkConnector.disconnectAllLinks()
protected IlvPoint calcConnectionPoint(IlvLinkImage link, boolean origin, IlvTransformer transformer)
calcConnectionPoint
in class IlvSDMFreeLinkConnector
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 node.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.