sm
Class StateMachine.State.Drag

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

public class StateMachine.State.Drag
extends StateMachine.State.MouseOnPosition

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

Author:
Caroline Appert

Constructor Summary
StateMachine.State.Drag(int b)
          Constructs a transition triggered by a mouse dragged event with any modifier that loops on the current state.
StateMachine.State.Drag(int b, int m)
          Constructs a transition triggered by a mouse dragged event that loops on the current state.
StateMachine.State.Drag(int b, int m, java.lang.String a)
          Constructs a transition triggered by a mouse dragged event.
StateMachine.State.Drag(int b, java.lang.String a)
          Constructs a transition triggered by a mouse dragged 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.Drag

public StateMachine.State.Drag(int b)
Constructs a transition triggered by a mouse dragged 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.Drag

public StateMachine.State.Drag(int b,
                               int m)
Constructs a transition triggered by a mouse dragged 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.Drag

public StateMachine.State.Drag(int b,
                               java.lang.String a)
Constructs a transition triggered by a mouse dragged 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.Drag

public StateMachine.State.Drag(int b,
                               int m,
                               java.lang.String a)
Constructs a transition triggered by a mouse dragged 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