ilog.views.graphlayout
Class IlvClipLinkConnector

java.lang.Object
  extended by ilog.views.IlvLinkConnector
      extended by ilog.views.linkconnector.IlvFreeLinkConnector
          extended by ilog.views.linkconnector.IlvClippingLinkConnector
              extended by ilog.views.graphlayout.IlvClipLinkConnector
All Implemented Interfaces:
IlvPersistentObject, Serializable

Deprecated. Beginning with JViews 6.0 you should use IlvClippingLinkConnector instead, which has the same functionality.

public class IlvClipLinkConnector
extends IlvClippingLinkConnector

A link connector that clips the link at the border of a node.

Since:
JViews 5.0
See Also:
Serialized Form

Constructor Summary
IlvClipLinkConnector()
          Deprecated. Creates an empty IlvClipLinkConnector.
IlvClipLinkConnector(IlvGraphic node)
          Deprecated. Creates an IlvClipLinkConnector attached to the node node.
IlvClipLinkConnector(IlvInputStream stream)
          Deprecated. Reads the object from an IlvInputStream.
IlvClipLinkConnector(IlvLinkImage link, boolean origin)
          Deprecated. Creates an IlvClipLinkConnector attached to the origin or destination of the link link.
 
Method Summary
 IlvPoint getClippedPoint(IlvGraphic node, IlvTransformer t, Object link, IlvPoint attachPoint, IlvPoint controlPoint, boolean origin)
          Deprecated. Returns the clipped connection point of a link that starts at the proposed connection point inside the node and goes through the auxiliary control point.
 
Methods inherited from class ilog.views.linkconnector.IlvClippingLinkConnector
detach, detach, disconnectAllLinks, disconnectLink, getConnectionPoint, getUnclippedConnectionPoint, linkChanged, LinkChanged, linkRemoved, zoomable
 
Methods inherited from class ilog.views.linkconnector.IlvFreeLinkConnector
allLinksRemoved, allowsConnectionPointMove, connectionPointMoveAllowed, connectLink, getClosestConnectionPoint, getGhostBoundingBox, getNodeBoundingBox, isConnectionPointMoveAllowed, isPersistent, read, setConnectionPointMoveAllowed, write, write
 
Methods inherited from class ilog.views.IlvLinkConnector
attach, attach, drawGhost, Get, Get, GetAttached, GetAttached, getNode, supportsDrawGhost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvClipLinkConnector

public IlvClipLinkConnector()
Deprecated. 
Creates an empty IlvClipLinkConnector. It can be attached either to a node (using IlvLinkConnector.attach(ilog.views.IlvGraphic,boolean)) or to an extremity of a link (using IlvLinkConnector.attach(ilog.views.IlvLinkImage,boolean,boolean)).


IlvClipLinkConnector

public IlvClipLinkConnector(IlvGraphic node)
Deprecated. 
Creates an IlvClipLinkConnector attached to the node node.

See Also:
IlvLinkConnector.attach(ilog.views.IlvGraphic,boolean), IlvClippingLinkConnector.detach(boolean)

IlvClipLinkConnector

public IlvClipLinkConnector(IlvLinkImage link,
                            boolean origin)
Deprecated. 
Creates an IlvClipLinkConnector attached to the origin or destination of the link link. If the argument origin is true, this creates a link connector for the origin of link. If the argument origin is false, this creates a link connector for the destination of link.

Since:
JViews 5.5
See Also:
IlvLinkConnector.attach(ilog.views.IlvLinkImage, boolean, boolean), IlvClippingLinkConnector.detach(IlvLinkImage, boolean, boolean)

IlvClipLinkConnector

public IlvClipLinkConnector(IlvInputStream stream)
                     throws IlvReadFileException
Deprecated. 
Reads the object from an IlvInputStream.

Note that any subclass (except one that overrides the method IlvFreeLinkConnector.isPersistent() to return false) must provide a constructor with an IlvInputStream argument. The first line of the constructor must be super(stream).

Parameters:
stream - The input stream.
Throws:
IlvReadFileException - if the format is not correct.
See Also:
IlvFreeLinkConnector.write(ilog.views.io.IlvOutputStream), IlvFreeLinkConnector.isPersistent(), IlvLinkConnector.attach(IlvGraphic, boolean), IlvClippingLinkConnector.detach(boolean)
Method Detail

getClippedPoint

public IlvPoint getClippedPoint(IlvGraphic node,
                                IlvTransformer t,
                                Object link,
                                IlvPoint attachPoint,
                                IlvPoint controlPoint,
                                boolean origin)
Deprecated. 
Returns the clipped connection point of a link that starts at the proposed connection point inside the node and goes through the auxiliary control point.

Overrides:
getClippedPoint in class IlvClippingLinkConnector
Parameters:
node - The source or target node of the link.
t - The transformer that is used to draw the node.
link - The link to be clipped.
attachPoint - The point to which the unclipped link is attached.
controlPoint - The auxiliary control point. For the purpose of clipping, the link can be considered as a ray that starts at the attach point and goes through the control point.
origin - true if the node is the source of the link, false if it is the target of the link.
Returns:
The point to which the link should connect.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.