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, setRelativePosition
public 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 ConnectionPoint
public android.graphics.PointF getIntersection(android.graphics.PointF pt1, android.graphics.PointF pt2)
getIntersection
in class ConnectionPoint
public boolean linkChanges(DiagramNode node, android.graphics.PointF point)
linkChanges
in class ConnectionPoint
protected void updateFromPoint(android.graphics.PointF point)
updateFromPoint
in class ConnectionPoint
public void saveEndRelative()
saveEndRelative
in class ConnectionPoint
public android.graphics.PointF getEndPoint()
getEndPoint
in class ConnectionPoint
public void addLinkToNode()
addLinkToNode
in class ConnectionPoint
public void removeLinkFromNode()
removeLinkFromNode
in class ConnectionPoint
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
ConnectionPoint
writeExternal
in interface java.io.Externalizable
writeExternal
in class ConnectionPoint
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
ConnectionPoint
readExternal
in interface java.io.Externalizable
readExternal
in class ConnectionPoint
java.io.IOException
java.lang.ClassNotFoundException
public int getRow()
getRow
in class ConnectionPoint