public class NodeValidationEvent extends NodeEvent
| Constructor and Description |
|---|
NodeValidationEvent(java.lang.Object source,
DiagramNode node)
Represents methods that will handle node validation events.
|
NodeValidationEvent(java.lang.Object source,
DiagramNode node,
android.graphics.PointF pointerPosition,
NodeHandleType adjustmentHandle) |
NodeValidationEvent(java.lang.Object source,
DiagramNode node,
android.graphics.RectF selectionRectangle) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelDrag()
Cancels the creation or modification of the node.
|
boolean |
getCancel()
Gets a value indicating whether to cancel the current operation.
|
android.graphics.RectF |
getSelectionRectangle()
Gets the current selection rectangle.
|
void |
setCancel(boolean cancel)
Sets a value indicating whether to cancel the current operation.
|
getAdjustmentHandle, getMouseButton, getNode, getPointerPosition, setAdjustmentHandle, setPointerPositionpublic NodeValidationEvent(java.lang.Object source,
DiagramNode node)
source - The source of the event.node - A DiagramNodepublic NodeValidationEvent(java.lang.Object source,
DiagramNode node,
android.graphics.PointF pointerPosition,
NodeHandleType adjustmentHandle)
public NodeValidationEvent(java.lang.Object source,
DiagramNode node,
android.graphics.RectF selectionRectangle)
public void cancelDrag()
public boolean getCancel()
public void setCancel(boolean cancel)
cancel - true to cancel the operation; false to approve it.public android.graphics.RectF getSelectionRectangle()