|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsm.StateMachine.State.Transition
sm.StateMachine.State.EventOnPosition
sm.StateMachine.State.EventOnShape
sm.StateMachine.State.MouseOnShape
A transition triggered by a mouse event on a SMShape in the canvas. The transition is specified by a button and modifiers. The position of the mouse when the transition fired can be retrieved.
Constructor Summary | |
StateMachine.State.MouseOnShape(java.lang.String e,
int b)
Constructs a mouse transition with any modifier that loops on the current state. |
|
StateMachine.State.MouseOnShape(java.lang.String e,
int b,
int m)
Constructs a mouse transition that loops on the current state. |
|
StateMachine.State.MouseOnShape(java.lang.String e,
int b,
int m,
java.lang.String a)
Constructs a mouse transition. |
|
StateMachine.State.MouseOnShape(java.lang.String e,
int b,
java.lang.String a)
Constructs a mouse transition with any modifier. |
Method Summary | |
int |
getButton()
Returns the button of the mouse event that fires this transition. |
Methods inherited from class sm.StateMachine.State.EventOnShape |
getShape, hashKey, toString |
Methods inherited from class sm.StateMachine.State.EventOnPosition |
getInputEvent, getPoint, setInputEvent |
Methods inherited from class sm.StateMachine.State.Transition |
action, getModifier, getOutputStateName, getVirtualEvent, guard, oldToString, setVirtualEvent |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StateMachine.State.MouseOnShape(java.lang.String e, int b, int m, java.lang.String a)
e
- The string describing the events for which this transition must be triggered: "Down", "Motion", "Move", "Up", "Click" or "Gesture"*b
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3a
- The name of the output statem
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTpublic StateMachine.State.MouseOnShape(java.lang.String e, int b, int m)
e
- The string describing the events for which this transition must be triggered: "Down", "Motion", "Move", "Up", "Click" or "Gesture"*b
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3m
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTpublic StateMachine.State.MouseOnShape(java.lang.String e, int b, java.lang.String a)
e
- The string describing the events for which this transition must be triggered: "Down", "Motion", "Move", "Up", "Click" or "Gesture"*b
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3a
- The name of the output statepublic StateMachine.State.MouseOnShape(java.lang.String e, int b)
e
- The string describing the events for which this transition must be triggered: "Down", "Motion", "Move", "Up", "Click" or "Gesture"*b
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3Method Detail |
public int getButton()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |