|
|||||||||||
| 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
A transition triggered by a key event. Keys can be specified either by the ASCII character they represent or by their keycode.
| Constructor Summary | |
StateMachine.State.KeyTransition(java.lang.String e)
Constructs a transition triggered by a key event with any modifier that loops on the current state. |
|
StateMachine.State.KeyTransition(java.lang.String e,
char c)
Constructs a transition triggered by a key event with any modifier that loops on the current state. |
|
StateMachine.State.KeyTransition(java.lang.String e,
char c,
int m)
Constructs a transition triggered by a key event that loops on the current state. |
|
StateMachine.State.KeyTransition(java.lang.String e,
char c,
int m,
java.lang.String a)
Constructs a transition triggered by a key event. |
|
StateMachine.State.KeyTransition(java.lang.String e,
char c,
java.lang.String a)
Constructs a transition triggered by a key event with any modifier. |
|
StateMachine.State.KeyTransition(java.lang.String e,
int k)
Constructs a transition triggered by a key event with any modifier that loops on the current state. |
|
StateMachine.State.KeyTransition(java.lang.String e,
int k,
int m)
Constructs a transition triggered by a key event that loops on the current state. |
|
StateMachine.State.KeyTransition(java.lang.String e,
int k,
int m,
java.lang.String a)
Constructs a transition triggered by a key event. |
|
StateMachine.State.KeyTransition(java.lang.String e,
int k,
java.lang.String a)
Constructs a transition triggered by a key event with any modifier. |
|
StateMachine.State.KeyTransition(java.lang.String e,
java.lang.String a)
Constructs a transition triggered by a key event with any modifier. |
|
| Method Summary | |
char |
getChar()
Returns the character associated with the key event that triggers this transition. |
java.awt.event.InputEvent |
getInputEvent()
|
int |
getKeyCode()
|
void |
setChar(char c)
Sets the character associated with the key event that triggers this transition |
void |
setInputEvent(java.awt.event.InputEvent inputEvent)
|
void |
setKeyCode(int kc)
|
| 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.KeyTransition(java.lang.String e,
java.lang.String a)
e - The string describing the events for which this transition must be triggered: "KeyPress", "KeyRelease" or "KeyType"a - The name of the output statepublic StateMachine.State.KeyTransition(java.lang.String e)
e - The string describing the events for which this transition must be triggered: "KeyPress", "KeyRelease" or "KeyType"
public StateMachine.State.KeyTransition(java.lang.String e,
char c,
java.lang.String a)
e - The string describing the events for which this transition must be triggered: "KeyPress", "KeyRelease" or "KeyType"c - The char corresponding to the key eventa - The name of the output state
public StateMachine.State.KeyTransition(java.lang.String e,
int k,
java.lang.String a)
e - The string describing the events for which this transition must be triggered: "KeyPress", "KeyRelease" or "KeyType"k - The key code (ASCII) corresponding to the key eventa - The name of the output state
public StateMachine.State.KeyTransition(java.lang.String e,
char c)
e - The string describing the events for which this transition must be triggered: "KeyPress", "KeyRelease" or "KeyType"c - The char corresponding to the key event
public StateMachine.State.KeyTransition(java.lang.String e,
int k)
e - The string describing the events for which this transition must be triggered: "KeyPress", "KeyRelease" or "KeyType"k - The key code (ASCII) corresponding to the key event
public StateMachine.State.KeyTransition(java.lang.String e,
char c,
int m,
java.lang.String a)
e - The string describing the events for which this transition must be triggered: "KeyPress", "KeyRelease" or "KeyType"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 state
public StateMachine.State.KeyTransition(java.lang.String e,
int k,
int m,
java.lang.String a)
e - The string describing the events for which this transition must be triggered: "KeyPress", "KeyRelease" or "KeyType"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 state
public StateMachine.State.KeyTransition(java.lang.String e,
char c,
int m)
e - The string describing the events for which this transition must be triggered: "KeyPress", "KeyRelease" or "KeyType"c - The char corresponding to the key eventm - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
public StateMachine.State.KeyTransition(java.lang.String e,
int k,
int m)
e - The string describing the events for which this transition must be triggered: "KeyPress", "KeyRelease" or "KeyType"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| Method Detail |
public void setChar(char c)
c - The characterpublic char getChar()
public void setKeyCode(int kc)
kc - The key code (ASCII) to associate to the key event that initiates this transitionpublic int getKeyCode()
public java.awt.event.InputEvent getInputEvent()
public void setInputEvent(java.awt.event.InputEvent inputEvent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||