public class KeyType extends KeyTransition
| Constructor and Description |
|---|
KeyType()
Builds a transition triggered by a key typed event with any modifier that loops on the current state.
|
KeyType(char character)
Builds a transition triggered by a key typed event with any modifier that loops on the current state.
|
KeyType(char character,
java.lang.String outState)
Builds a transition triggered by a key typed event with any modifier.
|
KeyType(int keyCode)
Builds a transition with any modifier triggered by a key typed event that loops on the current state.
|
KeyType(int keyCode,
java.lang.String outState)
Builds a transition triggered by a key typed event with any modifier.
|
KeyType(java.lang.String outState)
Builds a transition triggered by a key typed event with any modifier.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(java.util.EventObject eventObject)
Tests if an event can trigger that transition.
|
getChar, getInputEvent, getKeyCode, setChar, setKeyCode, toStringaction, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, pickingRequired, setTriggeringEventpublic KeyType(java.lang.String outState)
outState - The name of the output statepublic KeyType()
public KeyType(char character,
java.lang.String outState)
character - The char corresponding to the key eventoutState - The name of the output statepublic KeyType(int keyCode,
java.lang.String outState)
keyCode - The key code (ASCII) corresponding to the key eventoutState - The name of the output statepublic KeyType(char character)
character - The char corresponding to the key eventpublic KeyType(int keyCode)
keyCode - The key code (ASCII) corresponding to the key eventpublic boolean matches(java.util.EventObject eventObject)
matches in class TransitioneventObject - The event to testeventObject
can trigger this transition.