|
|||||||||||
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.KeyTransition
sm.StateMachine.State.KeyPress
A transition triggered by a key pressed event. Keys can be specified either by the ASCII character they represent or by their keycode.
Constructor Summary | |
StateMachine.State.KeyPress()
Constructs a transition triggered by a key pressed event with any modifier that loops on the current state. |
|
StateMachine.State.KeyPress(char c)
Constructs a transition triggered by a key pressed event with any modifier that loops on the current state. |
|
StateMachine.State.KeyPress(char c,
int m)
Constructs a transition triggered by a key pressed event that loops on the current state. |
|
StateMachine.State.KeyPress(char c,
int m,
java.lang.String a)
Constructs a transition triggered by a key pressed event. |
|
StateMachine.State.KeyPress(char c,
java.lang.String a)
Constructs a transition triggered by a key pressed event with any modifier. |
|
StateMachine.State.KeyPress(int k)
Constructs a transition triggered by a key pressed event with any modifier that loops on the current state. |
|
StateMachine.State.KeyPress(int k,
int m)
Constructs a transition triggered by a key pressed event that loops on the current state. |
|
StateMachine.State.KeyPress(int k,
int m,
java.lang.String a)
Constructs a transition triggered by a key pressed event. |
|
StateMachine.State.KeyPress(int k,
java.lang.String a)
Constructs a transition triggered by a key pressed event with any modifier. |
|
StateMachine.State.KeyPress(java.lang.String a)
Constructs a transition triggered by a key pressed event with any modifier. |
Methods inherited from class sm.StateMachine.State.KeyTransition |
getChar, getInputEvent, getKeyCode, setChar, setInputEvent, setKeyCode |
Methods inherited from class sm.StateMachine.State.Transition |
action, getModifier, getOutputStateName, getVirtualEvent, guard, hashKey, oldToString, setVirtualEvent, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StateMachine.State.KeyPress(java.lang.String a)
a
- The name of the output statepublic StateMachine.State.KeyPress()
public StateMachine.State.KeyPress(char c, java.lang.String a)
c
- The char corresponding to the key eventa
- The name of the output statepublic StateMachine.State.KeyPress(int k, java.lang.String a)
k
- The key code (ASCII) corresponding to the key eventa
- The name of the output statepublic StateMachine.State.KeyPress(char c)
c
- The char corresponding to the key eventpublic StateMachine.State.KeyPress(int k)
k
- The key code (ASCII) corresponding to the key eventpublic StateMachine.State.KeyPress(char c, int m, java.lang.String a)
c
- The char corresponding to the key eventm
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTa
- The name of the output statepublic StateMachine.State.KeyPress(int k, int m, java.lang.String a)
k
- The key code (ASCII) corresponding to the key eventm
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTa
- The name of the output statepublic StateMachine.State.KeyPress(char c, int m)
c
- The char corresponding to the key eventm
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTpublic StateMachine.State.KeyPress(int k, int m)
k
- The key code (ASCII) corresponding to the key eventm
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |