com.mindfusion.diagramming.jlayout
Interface Link

All Superinterfaces:
Routable

public interface Link
extends Routable


Method Summary
 Node getDestination()
          Gets the destination Node for this link.
 Node getOppositeNode(Node aNode)
          Returns the node at the opposite end of the link.
 Node getOrigin()
          Gets the origin Node for this link.
 PointList getPoints()
          Gets the sequence of points defining this link.
 java.util.Hashtable<java.lang.Object,java.lang.Object> getRuntimeData()
          Gets custom data associated with this link.
 java.util.Hashtable<java.lang.Object,java.lang.Object> getTraits()
          Gets properties specific to each layout algorithm.
 float getWeight()
          Gets the weight of the link.
 boolean intersects(java.awt.geom.Rectangle2D.Float rect)
           
 void setPoints(java.util.ArrayList<java.awt.geom.Point2D.Float> points)
          Invoked by some layouting algorithms to update the sequence of points which define the link.
 void setPoints(PointList points)
          Sets the sequence of points defining this link.
 void updatePoints()
          Invoked to update the link after its point sequence has been changed.
 
Methods inherited from interface com.mindfusion.diagramming.jlayout.Routable
applyRoute, createRouteDescriptor
 

Method Detail

setPoints

void setPoints(java.util.ArrayList<java.awt.geom.Point2D.Float> points)
Invoked by some layouting algorithms to update the sequence of points which define the link.


updatePoints

void updatePoints()
Invoked to update the link after its point sequence has been changed.


getOppositeNode

Node getOppositeNode(Node aNode)
Returns the node at the opposite end of the link.

Parameters:
aNode - Specifies a node whose opposite node should be returned.
Returns:
The node opposite to the specified node.

intersects

boolean intersects(java.awt.geom.Rectangle2D.Float rect)

getOrigin

Node getOrigin()
Gets the origin Node for this link.


getDestination

Node getDestination()
Gets the destination Node for this link.


getPoints

PointList getPoints()
Gets the sequence of points defining this link.


setPoints

void setPoints(PointList points)
Sets the sequence of points defining this link.


getTraits

java.util.Hashtable<java.lang.Object,java.lang.Object> getTraits()
Gets properties specific to each layout algorithm.


getRuntimeData

java.util.Hashtable<java.lang.Object,java.lang.Object> getRuntimeData()
Gets custom data associated with this link.


getWeight

float getWeight()
Gets the weight of the link.