public class TreeViewConnectionPoint extends ConnectionPoint
node| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLinkToNode()
ConnectionPoint.addLinkToNode override.
|
android.graphics.PointF |
getEndPoint()
ConnectionPoint.getEndPoint override.
|
android.graphics.PointF |
getInitialPoint()
ConnectionPoint.getInitialPoint override.
|
android.graphics.PointF |
getIntersection(android.graphics.PointF pt1,
android.graphics.PointF pt2)
ConnectionPoint.getIntersection override.
|
int |
getRow()
ConnectionPoint.getRow override.
|
boolean |
linkChanges(DiagramNode node,
android.graphics.PointF 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(android.graphics.PointF 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.
|
calculateIntersections, canMoveLink, getAnchorPos, getAnchorPos, getIncoming, getLink, getNode, getNodeRect, getRelativePosition, nodesIntersect, sameNode, setRelativePositionpublic TreeViewConnectionPoint()
public TreeViewConnectionPoint(TreeViewNode node, DiagramLink link, boolean incoming, TreeViewItem item)
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.public android.graphics.PointF getInitialPoint()
getInitialPoint in class ConnectionPointpublic android.graphics.PointF getIntersection(android.graphics.PointF pt1,
android.graphics.PointF pt2)
getIntersection in class ConnectionPointpublic boolean linkChanges(DiagramNode node, android.graphics.PointF point)
linkChanges in class ConnectionPointprotected void updateFromPoint(android.graphics.PointF point)
updateFromPoint in class ConnectionPointpublic void saveEndRelative()
saveEndRelative in class ConnectionPointpublic android.graphics.PointF getEndPoint()
getEndPoint in class ConnectionPointpublic void addLinkToNode()
addLinkToNode in class ConnectionPointpublic void removeLinkFromNode()
removeLinkFromNode in class ConnectionPointpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
ConnectionPointwriteExternal in interface java.io.ExternalizablewriteExternal in class ConnectionPointjava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
ConnectionPointreadExternal in interface java.io.ExternalizablereadExternal in class ConnectionPointjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic int getRow()
getRow in class ConnectionPoint