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,
NodeHandleType 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.
|
NodeLabel |
getLabel()
Gets a NodeLabel related to this event.
|
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, getMouseButton, getNode, getPointerPosition, setAdjustmentHandle, setPointerPosition
public NodeLabel label
public NodeValidationEvent(java.lang.Object source, DiagramNode node)
source
- The source of the event.node
- A DiagramNode
public NodeValidationEvent(java.lang.Object source, DiagramNode node, java.awt.geom.Point2D mousePosition, NodeHandleType 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()
public NodeLabel getLabel()