|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.mindfusion.diagramming.NodeEvent
public class NodeEvent
Contains the arguments passed to handlers of node-related events, such as TreeCollapsed and TreeExpanded.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
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,
java.awt.geom.Point2D mousePosition)
Initializes a new instance of the NodeEvent class. |
|
NodeEvent(java.lang.Object source,
DiagramNode node,
java.awt.geom.Point2D mousePosition,
int adjustmentHandle)
Initializes a new instance of the NodeEvent class. |
Method Summary | |
---|---|
int |
getAdjustmentHandle()
Gets the adjustment handle being moved by the user. |
int |
getMouseButton()
Gets which mouse button has been pressed. |
java.awt.geom.Point2D |
getMousePosition()
Gets the current mouse pointer position. |
DiagramNode |
getNode()
Gets the node for which the event was raised. |
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 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, java.awt.geom.Point2D mousePosition, int adjustmentHandle)
source
- The source of the event.node
- The DiagramNode
related to the event.mousePosition
- The mouse button related to the event.adjustmentHandle
- The position of the mouse cursor, in document coordinates.public NodeEvent(java.lang.Object source, DiagramNode node, int mouseButton, java.awt.geom.Point2D mousePosition)
source
- The source of the event.node
- The DiagramNode
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()
AdjustmentHandles
enumeration
specifying what handle has been used.public void setAdjustmentHandle(int adjustmentHandle)
adjustmentHandle
- A member of the AdjustmentHandles
enumeration.public DiagramNode getNode()
DiagramNode
class.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 |