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,
java.awt.geom.Point2D mousePosition,
AdjustmentHandle adjustmentHandle) |
NodeValidationEvent(java.lang.Object source,
DiagramNode node,
java.awt.geom.Rectangle2D 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.
|
java.awt.geom.Rectangle2D |
getSelectionRectangle()
Gets the current selection rectangle.
|
void |
setCancel(boolean cancel)
Sets a value indicating whether to cancel the current operation.
|
getAdjustmentHandle, getLabel, getMouseButton, getNode, getNodeHandleType, 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,
java.awt.geom.Point2D mousePosition,
AdjustmentHandle adjustmentHandle)
public NodeValidationEvent(java.lang.Object source,
DiagramNode node,
java.awt.geom.Rectangle2D selectionRectangle)
public void cancelDrag()
public boolean getCancel()
public void setCancel(boolean cancel)
cancel - true to cancel the operation; false to approve it.public java.awt.geom.Rectangle2D getSelectionRectangle()