com.mindfusion.diagramming
Class TreeViewConnectionPoint

java.lang.Object
  extended by com.mindfusion.diagramming.ConnectionPoint
      extended by com.mindfusion.diagramming.TreeViewConnectionPoint
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class TreeViewConnectionPoint
extends ConnectionPoint

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mindfusion.diagramming.ConnectionPoint
node
 
Constructor Summary
TreeViewConnectionPoint()
          Initializes a new instance of the TreeViewConnectionPoint class.
TreeViewConnectionPoint(TreeViewNode node, DiagramLink link, boolean incoming, TreeViewItem item)
          Initializes a new instance of the TreeViewConnectionPoint class.
 
Method Summary
 void addLinkToNode()
          ConnectionPoint.addLinkToNode override.
 java.awt.geom.Point2D getEndPoint()
          ConnectionPoint.getEndPoint override.
 java.awt.geom.Point2D getInitialPoint()
          ConnectionPoint.getInitialPoint override.
 java.awt.geom.Point2D getIntersection(java.awt.geom.Point2D pt1, java.awt.geom.Point2D pt2)
          ConnectionPoint.getIntersection override.
 int getRow()
          ConnectionPoint.getRow override.
 boolean linkChanges(DiagramNode node, java.awt.geom.Point2D point)
          ConnectionPoint.linkChanges override.
 void readExternal(java.io.ObjectInput in)
          Deserializes the connection point data.
 void removeLinkFromNode()
          ConnectionPoint.removeLinkFromNode override.
 void saveEndRelative()
          ConnectionPoint.saveEndRelative override.
protected  void updateFromPoint(java.awt.geom.Point2D point)
          Updates the connection stated according to the specified point, without changing the related node.
 void writeExternal(java.io.ObjectOutput out)
          Serializes the connection point data.
 
Methods inherited from class com.mindfusion.diagramming.ConnectionPoint
calculateIntersections, canMoveLink, getAnchorPos, getAnchorPos, getIncoming, getLink, getNode, getNodeRect, getRelativePosition, nodesIntersect, sameNode, setRelativePosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeViewConnectionPoint

public TreeViewConnectionPoint()
Initializes a new instance of the TreeViewConnectionPoint class.


TreeViewConnectionPoint

public TreeViewConnectionPoint(TreeViewNode node,
                               DiagramLink link,
                               boolean incoming,
                               TreeViewItem item)
Initializes a new instance of the TreeViewConnectionPoint class.

Parameters:
node - A TreeViewNode instance.
link - A DiagramLink instance.
incoming - Specifies which end of the link is represented by this TreeViewConnectionPoint.
item - The TreeViewItem to which the link connects.
Method Detail

getInitialPoint

public java.awt.geom.Point2D getInitialPoint()
ConnectionPoint.getInitialPoint override.

Overrides:
getInitialPoint in class ConnectionPoint

getIntersection

public java.awt.geom.Point2D getIntersection(java.awt.geom.Point2D pt1,
                                             java.awt.geom.Point2D pt2)
ConnectionPoint.getIntersection override.

Overrides:
getIntersection in class ConnectionPoint

linkChanges

public boolean linkChanges(DiagramNode node,
                           java.awt.geom.Point2D point)
ConnectionPoint.linkChanges override.

Overrides:
linkChanges in class ConnectionPoint

updateFromPoint

protected void updateFromPoint(java.awt.geom.Point2D point)
Updates the connection stated according to the specified point, without changing the related node.

Overrides:
updateFromPoint in class ConnectionPoint

saveEndRelative

public void saveEndRelative()
ConnectionPoint.saveEndRelative override.

Overrides:
saveEndRelative in class ConnectionPoint

getEndPoint

public java.awt.geom.Point2D getEndPoint()
ConnectionPoint.getEndPoint override.

Overrides:
getEndPoint in class ConnectionPoint

addLinkToNode

public void addLinkToNode()
ConnectionPoint.addLinkToNode override.

Overrides:
addLinkToNode in class ConnectionPoint

removeLinkFromNode

public void removeLinkFromNode()
ConnectionPoint.removeLinkFromNode override.

Overrides:
removeLinkFromNode in class ConnectionPoint

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Description copied from class: ConnectionPoint
Serializes the connection point data.

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class ConnectionPoint
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Description copied from class: ConnectionPoint
Deserializes the connection point data.

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class ConnectionPoint
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getRow

public int getRow()
ConnectionPoint.getRow override.

Overrides:
getRow in class ConnectionPoint