|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.mindfusion.diagramming.LinkEvent
public class LinkEvent
Contains the arguments passed to handlers of link related events.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
LinkEvent(java.lang.Object source,
DiagramLink link)
Initializes a new LinkEvent instance. |
|
LinkEvent(java.lang.Object source,
DiagramLink link,
int mouseButton,
java.awt.geom.Point2D mousePosition)
Initializes a new instance of the LinkEvent class. |
|
LinkEvent(java.lang.Object source,
DiagramLink link,
java.awt.geom.Point2D mousePosition,
int adjustmentHandle)
Initializes a new instance of the LinkEvent class. |
|
| Method Summary | |
|---|---|
int |
getAdjustmentHandle()
Gets the adjustment handle being moved by the user. |
DiagramLink |
getLink()
Gets the link for which the event raised. |
int |
getMouseButton()
Gets which mouse button has been pressed. |
java.awt.geom.Point2D |
getMousePosition()
Gets the current mouse pointer position. |
void |
setAdjustmentHandle(int adjustmentHandle)
Sets the adjustment handle being moved by the user. |
void |
setMousePosition(java.awt.geom.Point2D mousePosition)
Sets the current mouse pointer position. |
| 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 LinkEvent(java.lang.Object source,
DiagramLink link)
source - The sender of this event.link - A LinkEvent that contains the event data.
public LinkEvent(java.lang.Object source,
DiagramLink link,
java.awt.geom.Point2D mousePosition,
int adjustmentHandle)
link - The DiagramLink related to the event.mousePosition - The mouse button related to the event.adjustmentHandle - The position of the mouse cursor, in document coordinates.
public LinkEvent(java.lang.Object source,
DiagramLink link,
int mouseButton,
java.awt.geom.Point2D mousePosition)
link - The DiagramLink related to the event.mouseButton - The position of the mouse cursor, in document coordinates.mousePosition - The zero-based index of the control point related to the event.| Method Detail |
|---|
public int getAdjustmentHandle()
public void setAdjustmentHandle(int adjustmentHandle)
adjustmentHandle - The index of the link's control point being moved.public DiagramLink getLink()
DiagramLink instance.public int getMouseButton()
public java.awt.geom.Point2D getMousePosition()
public void setMousePosition(java.awt.geom.Point2D mousePosition)
mousePosition - A Point2D object specifying the current mouse position.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||