public abstract class KeyTransition extends Transition
| Constructor and Description |
|---|
KeyTransition()
Builds a transition triggered by a key event with any modifier that loops on the current state.
|
KeyTransition(char character)
Builds a transition triggered by a key event with any modifier that loops on the current state.
|
KeyTransition(char character,
java.lang.String outState)
Builds a transition triggered by a key event with any modifier.
|
KeyTransition(int keyCode)
Builds a transition triggered by a key event with any modifier that loops on the current state.
|
KeyTransition(int keyCode,
java.lang.String outState)
Builds a transition triggered by a key event with any modifier.
|
KeyTransition(java.lang.String outState)
Builds a transition triggered by a key event with any modifier.
|
| Modifier and Type | Method and Description |
|---|---|
char |
getChar()
Returns the character associated with the key event that triggers this transition.
|
java.awt.event.InputEvent |
getInputEvent() |
int |
getKeyCode() |
void |
setChar(char character)
Sets the character associated with the key event that triggers this transition.
|
void |
setKeyCode(int keyCode) |
java.lang.String |
toString() |
action, getEvent, getInputState, getOutputState, guard, manageEventID, matches, oldToString, pickingRequired, setTriggeringEventpublic KeyTransition(java.lang.String outState)
outState - The name of the output statepublic KeyTransition()
public KeyTransition(char character,
java.lang.String outState)
character - The char corresponding to the key eventoutState - The name of the output statepublic KeyTransition(int keyCode,
java.lang.String outState)
keyCode - The key code (ASCII) corresponding to the key eventoutState - The name of the output statepublic KeyTransition(char character)
character - The char corresponding to the key eventpublic KeyTransition(int keyCode)
keyCode - The key code (ASCII) corresponding to the key eventpublic void setChar(char character)
character - The characterpublic char getChar()
public void setKeyCode(int keyCode)
keyCode - The key code (ASCII) to associate to the key event that initiates this transitionpublic int getKeyCode()
public java.awt.event.InputEvent getInputEvent()
public java.lang.String toString()
toString in class java.lang.Object