public class DummyConnectionPoint extends ConnectionPoint
node
Constructor and Description |
---|
DummyConnectionPoint() |
DummyConnectionPoint(DiagramLink link,
boolean incm,
android.graphics.PointF point) |
Modifier and Type | Method and Description |
---|---|
void |
addLinkToNode()
Adds the link associated with this connection point to the associated node.
|
boolean |
calculateIntersections()
Determines whether the end of a link should be aligned to the point where the node
contour is intersected by the line connecting the centers of the connected nodes.
|
boolean |
canMoveLink(android.graphics.PointF point)
Checks whether the specified point, expressed in document coordinates,
is a valid location for this connection point.
|
android.graphics.PointF |
getEndPoint()
Calculates the coordinates of the this connection point expressed in document coordinates.
|
android.graphics.PointF |
getInitialPoint()
Returns a point (usually the center of the bounding rectangle) contained within the associated node.
|
android.graphics.PointF |
getIntersection(android.graphics.PointF pt1,
android.graphics.PointF pt2)
Calculates the intersection point between the specified line segment and
the contour of the node associated with this connection point.
|
protected DiagramNode |
getNode()
Gets the node associated with this connection point.
|
android.graphics.RectF |
getNodeRect(boolean rotated)
Returns the bounding rectangle of the node associated with this connection point.
|
boolean |
linkChanges(DiagramNode node,
android.graphics.PointF point)
Checks whether the relationship represented by the associated link would change
if the link is attached to the specified node at the specified point.
|
void |
readExternal(java.io.ObjectInput in)
Deserializes the connection point data.
|
void |
removeLinkFromNode()
Removes the link associated with this connection point from the associated node.
|
boolean |
sameNode(ConnectionPoint otherLink)
Checks whether the current connection point and the specified
connection point are associated with the same node.
|
void |
saveEndRelative()
Updates the coordinates of the connection point represented by this
link, relative to the bounding rectangle of the associated node.
|
void |
writeExternal(java.io.ObjectOutput out)
Serializes the connection point data.
|
getAnchorPos, getAnchorPos, getIncoming, getLink, getRelativePosition, getRow, nodesIntersect, setRelativePosition, updateFromPoint
public DummyConnectionPoint(DiagramLink link, boolean incm, android.graphics.PointF point)
public DummyConnectionPoint()
public boolean sameNode(ConnectionPoint otherLink)
ConnectionPoint
sameNode
in class ConnectionPoint
public boolean linkChanges(DiagramNode node, android.graphics.PointF point)
ConnectionPoint
linkChanges
in class ConnectionPoint
public android.graphics.PointF getIntersection(android.graphics.PointF pt1, android.graphics.PointF pt2)
ConnectionPoint
getIntersection
in class ConnectionPoint
public android.graphics.RectF getNodeRect(boolean rotated)
ConnectionPoint
getNodeRect
in class ConnectionPoint
public void addLinkToNode()
ConnectionPoint
addLinkToNode
in class ConnectionPoint
public void removeLinkFromNode()
ConnectionPoint
removeLinkFromNode
in class ConnectionPoint
public void saveEndRelative()
ConnectionPoint
saveEndRelative
in class ConnectionPoint
public android.graphics.PointF getEndPoint()
ConnectionPoint
getEndPoint
in class ConnectionPoint
public android.graphics.PointF getInitialPoint()
ConnectionPoint
getInitialPoint
in class ConnectionPoint
public boolean canMoveLink(android.graphics.PointF point)
ConnectionPoint
canMoveLink
in class ConnectionPoint
public boolean calculateIntersections()
ConnectionPoint
calculateIntersections
in class ConnectionPoint
protected DiagramNode getNode()
ConnectionPoint
getNode
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