sm
Class StateMachine.State.Press

java.lang.Object
  extended bysm.StateMachine.State.Transition
      extended bysm.StateMachine.State.EventOnPosition
          extended bysm.StateMachine.State.MouseOnPosition
              extended bysm.StateMachine.State.Press
Enclosing class:
StateMachine.State

public class StateMachine.State.Press
extends StateMachine.State.MouseOnPosition

A transition triggered by a mouse pressed event anywhere in the canvas.

Author:
Caroline Appert

Constructor Summary
StateMachine.State.Press(int b)
          Constructs a transition triggered by a mouse pressed event with any modifier that loops on the current state.
StateMachine.State.Press(int b, int m)
          Constructs a transition triggered by a mouse pressed event that loops on the current state.
StateMachine.State.Press(int b, int m, java.lang.String a)
          Constructs a transition triggered by a mouse pressed event.
StateMachine.State.Press(int b, java.lang.String a)
          Constructs a transition triggered by a mouse pressed event with any modifier .
 
Methods inherited from class sm.StateMachine.State.MouseOnPosition
getButton
 
Methods inherited from class sm.StateMachine.State.EventOnPosition
getInputEvent, getPoint, hashKey, setInputEvent
 
Methods inherited from class sm.StateMachine.State.Transition
action, getModifier, getOutputStateName, getVirtualEvent, guard, oldToString, setVirtualEvent, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateMachine.State.Press

public StateMachine.State.Press(int b)
Constructs a transition triggered by a mouse pressed event with any modifier that loops on the current state.

Parameters:
b - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3

StateMachine.State.Press

public StateMachine.State.Press(int b,
                                int m)
Constructs a transition triggered by a mouse pressed event that loops on the current state.

Parameters:
b - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3
m - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT

StateMachine.State.Press

public StateMachine.State.Press(int b,
                                java.lang.String a)
Constructs a transition triggered by a mouse pressed event with any modifier .

Parameters:
b - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3
a - The name of the output state

StateMachine.State.Press

public StateMachine.State.Press(int b,
                                int m,
                                java.lang.String a)
Constructs a transition triggered by a mouse pressed event.

Parameters:
b - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3
m - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
a - The name of the output state