com.mindfusion.diagramming
Class NodeValidationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.mindfusion.diagramming.NodeEvent
          extended by com.mindfusion.diagramming.NodeValidationEvent
All Implemented Interfaces:
java.io.Serializable

public class NodeValidationEvent
extends NodeEvent

Contains the arguments passed to handlers of node validation events.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
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, int adjustmentHandle)
           
NodeValidationEvent(java.lang.Object source, DiagramNode node, java.awt.geom.Rectangle2D selectionRectangle)
           
 
Method Summary
 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.
 
Methods inherited from class com.mindfusion.diagramming.NodeEvent
getAdjustmentHandle, getMouseButton, getMousePosition, getNode, setAdjustmentHandle, setMousePosition
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeValidationEvent

public NodeValidationEvent(java.lang.Object source,
                           DiagramNode node)
Represents methods that will handle node validation events.

Parameters:
source - The source of the event.
node - A DiagramNode

NodeValidationEvent

public NodeValidationEvent(java.lang.Object source,
                           DiagramNode node,
                           java.awt.geom.Point2D mousePosition,
                           int adjustmentHandle)

NodeValidationEvent

public NodeValidationEvent(java.lang.Object source,
                           DiagramNode node,
                           java.awt.geom.Rectangle2D selectionRectangle)
Method Detail

cancelDrag

public void cancelDrag()
Cancels the creation or modification of the node.


getCancel

public boolean getCancel()
Gets a value indicating whether to cancel the current operation.

Returns:
true to cancel the operation; false to approve it.

setCancel

public void setCancel(boolean cancel)
Sets a value indicating whether to cancel the current operation.

Parameters:
cancel - true to cancel the operation; false to approve it.

getSelectionRectangle

public java.awt.geom.Rectangle2D getSelectionRectangle()
Gets the current selection rectangle.

Returns:
A Rectangle2D instance representing the selection rectangle.