|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.mindfusion.diagramming.LinkEvent com.mindfusion.diagramming.LinkValidationEvent
public class LinkValidationEvent
Contains the arguments passed to handlers of link validation events.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
LinkValidationEvent(java.lang.Object source,
DiagramLink link)
Represents methods that will handle link validation events. |
|
LinkValidationEvent(java.lang.Object source,
DiagramLink link,
java.awt.geom.Point2D mousePosition,
int adjustmentHandle,
DiagramNode node,
int anchorIndex,
int tableRow)
|
|
LinkValidationEvent(java.lang.Object source,
DiagramLink link,
java.awt.geom.Rectangle2D selectionRectangle)
|
Method Summary | |
---|---|
void |
cancelDrag()
Cancels the creation or modification of the link. |
int |
getAnchorIndex()
Gets the anchor point related to a link validation event. |
boolean |
getCancel()
Gets a value indicating whether to cancel the current operation. |
boolean |
getChangingDestination()
Gets a value indicating whether the user modifies the link's destination end point. |
boolean |
getChangingOrigin()
Gets a value indicating whether the user modifies the link's origin end point. |
DiagramNode |
getDestination()
Gets the node that will become the link's destination if the event is validated. |
DiagramNode |
getNode()
Gets the node to which the link will be connected. |
DiagramNode |
getOrigin()
Gets the node that would become the link's origin if the event is validated. |
java.awt.geom.Rectangle2D |
getSelectionRectangle()
Gets the current selection rectangle. |
int |
getTableRow()
Gets the table row related to a link validation event. |
void |
setCancel(boolean cancel)
Sets a value indicating whether to cancel the current operation. |
Methods inherited from class com.mindfusion.diagramming.LinkEvent |
---|
getAdjustmentHandle, getLink, getMouseButton, getMousePosition, 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 |
---|
public LinkValidationEvent(java.lang.Object source, DiagramLink link)
source
- The source of the validation event.link
- A LinkValidationEvent
that contains the event data.public LinkValidationEvent(java.lang.Object source, DiagramLink link, java.awt.geom.Point2D mousePosition, int adjustmentHandle, DiagramNode node, int anchorIndex, int tableRow)
public LinkValidationEvent(java.lang.Object source, DiagramLink link, java.awt.geom.Rectangle2D selectionRectangle)
Method Detail |
---|
public void cancelDrag()
public DiagramNode getNode()
DiagramNode
class.public DiagramNode getOrigin()
DiagramNode
class.public DiagramNode getDestination()
DiagramNode
class.public boolean getCancel()
public void setCancel(boolean cancel)
cancel
- true to cancel the operation; false to approve it.public int getAnchorIndex()
AnchorPattern
.public int getTableRow()
public boolean getChangingOrigin()
public boolean getChangingDestination()
public java.awt.geom.Rectangle2D getSelectionRectangle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |