public class SelectionValidationEvent extends SelectionEvent
DiagramListener
.Constructor and Description |
---|
SelectionValidationEvent(java.lang.Object source,
java.awt.geom.Point2D mousePosition,
AdjustmentHandle adjustmentHandle)
Initializes a new SelectionValidationEvent instance.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelDrag()
Immediately cancels the item's creation or modification.
|
boolean |
getCancel()
Gets a value indicating whether to prevent the user from completing the operation.
|
void |
setCancel(boolean cancel)
Sets a value indicating whether to prevent the user from completing the operation
|
getAdjustmentHandle, getPointerPosition, getSelection
public SelectionValidationEvent(java.lang.Object source, java.awt.geom.Point2D mousePosition, AdjustmentHandle adjustmentHandle)
public void cancelDrag()
public boolean getCancel()
public void setCancel(boolean cancel)
cancel
- true to cancel the operation; false to approve it.