public class LinkEvent
extends java.util.EventObject
Constructor and Description |
---|
LinkEvent(java.lang.Object source,
DiagramLink link)
Initializes a new LinkEvent instance.
|
LinkEvent(java.lang.Object source,
DiagramLink link,
int mouseButton,
android.graphics.PointF pointerPosition)
Initializes a new instance of the LinkEvent class.
|
LinkEvent(java.lang.Object source,
DiagramLink link,
android.graphics.PointF pointerPosition,
int adjustmentHandle)
Initializes a new instance of the LinkEvent class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
android.graphics.PointF |
getPointerPosition()
Gets the current pointer position.
|
void |
setAdjustmentHandle(int adjustmentHandle)
Sets the adjustment handle being moved by the user.
|
void |
setPointerPosition(android.graphics.PointF pointerPosition)
Sets the current pointer position.
|
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, android.graphics.PointF pointerPosition, int adjustmentHandle)
link
- The DiagramLink
related to the event.pointerPosition
- The position of the pointer, in document coordinates.adjustmentHandle
- An integer index of the adjustment handle used to modify an item.public LinkEvent(java.lang.Object source, DiagramLink link, int mouseButton, android.graphics.PointF pointerPosition)
link
- The DiagramLink
related to the event.mouseButton
- Not used in the Android version of the control.pointerPosition
- The position of the pointer, in document coordinates.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 android.graphics.PointF getPointerPosition()
public void setPointerPosition(android.graphics.PointF pointerPosition)
pointerPosition
- A PointF object specifying the current touch position.