sm
Class StateMachine.State.KeyRelease

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

public class StateMachine.State.KeyRelease
extends StateMachine.State.KeyTransition

A transition triggered by a key released event. Keys can be specified either by the ASCII character they represent or by their keycode.

Author:
Caroline Appert

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

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

Parameters:
a - The name of the output state

StateMachine.State.KeyRelease

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


StateMachine.State.KeyRelease

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

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

StateMachine.State.KeyRelease

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

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

StateMachine.State.KeyRelease

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

Parameters:
c - The char corresponding to the key event

StateMachine.State.KeyRelease

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

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

StateMachine.State.KeyRelease

public StateMachine.State.KeyRelease(char c,
                                     int m,
                                     java.lang.String a)
Constructs a transition triggered by a key released 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.KeyRelease

public StateMachine.State.KeyRelease(int k,
                                     int m,
                                     java.lang.String a)
Constructs a transition triggered by a key released 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.KeyRelease

public StateMachine.State.KeyRelease(char c,
                                     int m)
Constructs a transition triggered by a key released 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.KeyRelease

public StateMachine.State.KeyRelease(int k,
                                     int m)
Constructs a transition triggered by a key released 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