public class NodeEvent
extends java.util.EventObject
Constructor and Description |
---|
NodeEvent(java.lang.Object source,
DiagramNode node)
Represents methods that will handle general node related events.
|
NodeEvent(java.lang.Object source,
DiagramNode node,
int mouseButton,
android.graphics.PointF pointerPosition)
Initializes a new instance of the NodeEvent class.
|
NodeEvent(java.lang.Object source,
DiagramNode node,
android.graphics.PointF pointerPosition,
NodeHandleType adjustmentHandle)
Initializes a new instance of the NodeEvent class.
|
Modifier and Type | Method and Description |
---|---|
NodeHandleType |
getAdjustmentHandle()
Gets the adjustment handle being moved by the user.
|
int |
getMouseButton()
Gets which mouse button has been pressed.
|
DiagramNode |
getNode()
Gets the node for which the event was raised.
|
android.graphics.PointF |
getPointerPosition()
Gets the current pointer position.
|
void |
setAdjustmentHandle(NodeHandleType adjustmentHandle)
Sets the adjustment handle being moved by the user.
|
void |
setPointerPosition(android.graphics.PointF pointerPosition)
Sets the current pointer position.
|
public NodeEvent(java.lang.Object source, DiagramNode node)
source
- The source of the event.node
- The DiagramNode
related to the event.public NodeEvent(java.lang.Object source, DiagramNode node, android.graphics.PointF pointerPosition, NodeHandleType adjustmentHandle)
source
- The source of the event.node
- The DiagramNode
related to the event.pointerPosition
- The position of the pointer, in document coordinates.adjustmentHandle
- A member of the NodeHandleType enumeration.public NodeEvent(java.lang.Object source, DiagramNode node, int mouseButton, android.graphics.PointF pointerPosition)
source
- The source of the event.node
- The DiagramNode
related to the event.mouseButton
- Not used in Android version of the control.pointerPosition
- The position of the pointer, in document coordinates.public NodeHandleType getAdjustmentHandle()
NodeHandleType
enumeration
specifying what handle has been used.public void setAdjustmentHandle(NodeHandleType adjustmentHandle)
adjustmentHandle
- A member of the NodeHandleType
enumeration.public DiagramNode getNode()
DiagramNode
class.public int getMouseButton()
public android.graphics.PointF getPointerPosition()
public void setPointerPosition(android.graphics.PointF pointerPosition)
pointerPosition
- A PointF object specifying the current touch position.