public class KeyPress extends KeyTransition
Constructor and Description |
---|
KeyPress()
Builds a transition triggered by a key pressed event with any modifier that loops on the current state.
|
KeyPress(char character)
Builds a transition triggered by a key pressed event with any modifier that loops on the current state.
|
KeyPress(char character,
java.lang.String outState)
Builds a transition triggered by a key pressed event with any modifier.
|
KeyPress(int keyCode)
Builds a transition triggered by a key pressed event with any modifier that loops on the current state.
|
KeyPress(int keyCode,
java.lang.String outState)
Builds a transition triggered by a key pressed event with any modifier.
|
KeyPress(java.lang.String outState)
Builds a transition triggered by a key pressed 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, toString
action, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, pickingRequired, setTriggeringEvent
public KeyPress(java.lang.String outState)
outState
- The name of the output statepublic KeyPress()
public KeyPress(char character, java.lang.String outState)
character
- The char corresponding to the key eventoutState
- The name of the output statepublic KeyPress(int keyCode, java.lang.String outState)
keyCode
- The key code (ASCII) corresponding to the key eventoutState
- The name of the output statepublic KeyPress(char character)
character
- The char corresponding to the key eventpublic KeyPress(int keyCode)
keyCode
- The key code (ASCII) corresponding to the key eventpublic boolean matches(java.util.EventObject eventObject)
matches
in class Transition
eventObject
- The event to testeventObject
can trigger this transition.