|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.InteractionState
public class InteractionState
Encapsulates the current state of user interaction with the control.
Constructor Summary | |
---|---|
InteractionState(DiagramItem currentItem,
int selectionHandle,
int action)
Initializes a new InteractionState instance. |
Method Summary | |
---|---|
int |
getAction()
Gets a value indicating what action is currently being performed. |
int |
getAdjustmentHandle()
Gets the index of the selection handle used to modify the item. |
DiagramItem |
getCurrentItem()
Gets the item being created or modified. |
Diagram |
getDiagram()
Gets the current Diagram instance. |
DiagramNode |
getLinkTarget()
Gets the current target node when a link is being modified. |
boolean |
getMouseMoved()
Gets a value indicating whether the mouse pointer has moved since the user pressed down the mouse button |
java.awt.geom.Point2D.Float |
getStartPoint()
Gets the coordinates of the point where the modification has started. |
void |
setLinkTarget(DiagramNode value)
Sets the current target node when a link is being modified |
void |
setMouseMoved(boolean value)
Sets a value indicating whether the mouse pointer has moved since the user pressed down the mouse button |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InteractionState(DiagramItem currentItem, int selectionHandle, int action)
currentItem
- the item being interacted withselectionHandle
- index of the selection handle being draggedaction
- one of the Action
constantsMethod Detail |
---|
public DiagramItem getCurrentItem()
public Diagram getDiagram()
Diagram
instance.
Diagram
class.public int getAdjustmentHandle()
public int getAction()
Action
constants.public java.awt.geom.Point2D.Float getStartPoint()
Point2D.Float
object specifying
the start point coordinates.public boolean getMouseMoved()
public void setMouseMoved(boolean value)
value
- true if the mouse has moved; otherwise, falsepublic DiagramNode getLinkTarget()
DiagramNode
that the currently modified DiagramLink
should connect to if the interaction completes at the current mouse position.public void setLinkTarget(DiagramNode value)
value
- A DiagramNode
that the currently modified DiagramLink
should connect to if the interaction completes at the current mouse position.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |