public class LinkValidationEvent extends LinkEvent
Constructor and Description |
---|
LinkValidationEvent(java.lang.Object source,
DiagramLink link)
Represents methods that will handle link validation events.
|
LinkValidationEvent(java.lang.Object source,
DiagramLink link,
android.graphics.PointF pointerPosition,
int adjustmentHandle,
DiagramNode node,
int anchorIndex,
int tableRow) |
LinkValidationEvent(java.lang.Object source,
DiagramLink link,
android.graphics.RectF selectionRectangle) |
Modifier and Type | Method and Description |
---|---|
void |
cancelDrag()
Cancels the creation or modification of the link.
|
int |
getAnchorIndex()
Gets the anchor point related to a link validation event.
|
boolean |
getCancel()
Gets a value indicating whether to cancel the current operation.
|
boolean |
getChangingDestination()
Gets a value indicating whether the user modifies the link's destination end point.
|
boolean |
getChangingOrigin()
Gets a value indicating whether the user modifies the link's origin end point.
|
DiagramNode |
getDestination()
Gets the node that will become the link's destination if the event is validated.
|
DiagramNode |
getNode()
Gets the node to which the link will be connected.
|
DiagramNode |
getOrigin()
Gets the node that would become the link's origin if the event is validated.
|
android.graphics.RectF |
getSelectionRectangle()
Gets the current selection rectangle.
|
int |
getTableRow()
Gets the table row related to a link validation event.
|
void |
setCancel(boolean cancel)
Sets a value indicating whether to cancel the current operation.
|
getAdjustmentHandle, getLink, getMouseButton, getPointerPosition, setAdjustmentHandle, setPointerPosition
public LinkValidationEvent(java.lang.Object source, DiagramLink link)
source
- The source of the validation event.link
- A LinkValidationEvent
that contains the event data.public LinkValidationEvent(java.lang.Object source, DiagramLink link, android.graphics.PointF pointerPosition, int adjustmentHandle, DiagramNode node, int anchorIndex, int tableRow)
public LinkValidationEvent(java.lang.Object source, DiagramLink link, android.graphics.RectF selectionRectangle)
public void cancelDrag()
public DiagramNode getNode()
DiagramNode
class.public DiagramNode getOrigin()
DiagramNode
class.public DiagramNode getDestination()
DiagramNode
class.public boolean getCancel()
public void setCancel(boolean cancel)
cancel
- true to cancel the operation; false to approve it.public int getAnchorIndex()
AnchorPattern
.public int getTableRow()
public boolean getChangingOrigin()
public boolean getChangingDestination()
public android.graphics.RectF getSelectionRectangle()