sm
Class StateMachine.State.KeyType

java.lang.Object
  extended bysm.StateMachine.State.Transition
      extended bysm.StateMachine.State.KeyTransition
          extended bysm.StateMachine.State.KeyType
Enclosing class:
StateMachine.State

public class StateMachine.State.KeyType
extends StateMachine.State.KeyTransition

A transition triggered by a key typed event. A key typed event corresponds to the succession of a key press and a key release. Note however that the key press and key release are always sent. Keys can be specified either by the ASCII character they represent or by their keycode.

Author:
Caroline Appert

Constructor Summary
StateMachine.State.KeyType()
          Constructs a transition triggered by a key typed event with any modifier that loops on the current state.
StateMachine.State.KeyType(char c)
          Constructs a transition triggered by a key typed event with any modifier that loops on the current state.
StateMachine.State.KeyType(char c, int m)
          Constructs a transition triggered by a key typed event that loops on the current state.
StateMachine.State.KeyType(char c, int m, java.lang.String a)
          Constructs a transition triggered by a key typed event.
StateMachine.State.KeyType(char c, java.lang.String a)
          Constructs a transition triggered by a key typed event with any modifier.
StateMachine.State.KeyType(int k)
          Constructs a transition with any modifier triggered by a key typed event that loops on the current state.
StateMachine.State.KeyType(int k, int m)
          Constructs a transition triggered by a key typed event that loops on the current state.
StateMachine.State.KeyType(int k, int m, java.lang.String a)
          Constructs a transition triggered by a key typed event.
StateMachine.State.KeyType(int k, java.lang.String a)
          Constructs a transition triggered by a key typed event with any modifier.
StateMachine.State.KeyType(java.lang.String a)
          Constructs a transition triggered by a key typed 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

StateMachine.State.KeyType

public StateMachine.State.KeyType(java.lang.String a)
Constructs a transition triggered by a key typed event with any modifier.

Parameters:
a - The name of the output state

StateMachine.State.KeyType

public StateMachine.State.KeyType()
Constructs a transition triggered by a key typed event with any modifier that loops on the current state.


StateMachine.State.KeyType

public StateMachine.State.KeyType(char c,
                                  java.lang.String a)
Constructs a transition triggered by a key typed event with any modifier.

Parameters:
c - The char corresponding to the key event
a - The name of the output state

StateMachine.State.KeyType

public StateMachine.State.KeyType(int k,
                                  java.lang.String a)
Constructs a transition triggered by a key typed event with any modifier.

Parameters:
k - The key code (ASCII) corresponding to the key event
a - The name of the output state

StateMachine.State.KeyType

public StateMachine.State.KeyType(char c)
Constructs a transition triggered by a key typed event with any modifier that loops on the current state.

Parameters:
c - The char corresponding to the key event

StateMachine.State.KeyType

public StateMachine.State.KeyType(int k)
Constructs a transition with any modifier triggered by a key typed event that loops on the current state.

Parameters:
k - The key code (ASCII) corresponding to the key event

StateMachine.State.KeyType

public StateMachine.State.KeyType(char c,
                                  int m,
                                  java.lang.String a)
Constructs a transition triggered by a key typed event.

Parameters:
c - The char corresponding to the key event
m - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
a - The name of the output state

StateMachine.State.KeyType

public StateMachine.State.KeyType(int k,
                                  int m,
                                  java.lang.String a)
Constructs a transition triggered by a key typed event.

Parameters:
k - The key code (ASCII) corresponding to the key event
m - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
a - The name of the output state

StateMachine.State.KeyType

public StateMachine.State.KeyType(char c,
                                  int m)
Constructs a transition triggered by a key typed event that loops on the current state.

Parameters:
c - The char corresponding to the key event
m - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT

StateMachine.State.KeyType

public StateMachine.State.KeyType(int k,
                                  int m)
Constructs a transition triggered by a key typed event that loops on the current state.

Parameters:
k - The key code (ASCII) corresponding to the key event
m - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT