|
|||||||||||
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
A transition triggered on a SMShape in the canvas. OnShape transitions allow developpers to retrieve the shape in the canvas where this transition has been fired:
Transition tshape = new EventOnShape (BUTTON1) { public void action() { // colors in red the shape on which the transition has been fired getShape().setFillPaint(Color.RED); } }
Constructor Summary | |
StateMachine.State.EventOnShape(java.lang.String e)
Constructs a mouse transition on a SMShape with no modifier that loops on the current state. |
|
StateMachine.State.EventOnShape(java.lang.String e,
int m)
Constructs a mouse transition on a SMShape that loops on the current state. |
|
StateMachine.State.EventOnShape(java.lang.String e,
int m,
java.lang.String a)
Constructs a mouse transition on a SMShape. |
|
StateMachine.State.EventOnShape(java.lang.String e,
java.lang.String a)
Constructs a mouse transition on a SMShape with no modifier. |
Method Summary | |
SMShape |
getShape()
Returns the SMShape on which the mouse event firing this transition has occured. |
java.lang.String |
hashKey()
Returns the hashkey of this transition. |
java.lang.String |
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.EventOnShape(java.lang.String e)
e
- The string describing the events for which this transition must be triggered: "Down", "Motion", "Move", "Up", "Click" or "Gesture"*public StateMachine.State.EventOnShape(java.lang.String e, int m)
e
- The string describing the events for which this transition must be triggered: "Down", "Motion", "Move", "Up", "Click" or "Gesture"*public StateMachine.State.EventOnShape(java.lang.String e, java.lang.String a)
e
- The string describing the events for which this transition must be triggered: "Down", "Motion", "Move", "Up", "Click" or "Gesture"*a
- The name of the output statepublic StateMachine.State.EventOnShape(java.lang.String e, 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"*a
- The name of the output statem
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTMethod Detail |
public java.lang.String hashKey()
StateMachine.State.Transition
hashKey
in class StateMachine.State.EventOnPosition
public java.lang.String toString()
toString
in class StateMachine.State.Transition
public SMShape getShape()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |