sm
Class StateMachine.State.PressOnShape

java.lang.Object
  extended bysm.StateMachine.State.Transition
      extended bysm.StateMachine.State.EventOnPosition
          extended bysm.StateMachine.State.EventOnShape
              extended bysm.StateMachine.State.MouseOnShape
                  extended bysm.StateMachine.State.PressOnShape
Enclosing class:
StateMachine.State

public class StateMachine.State.PressOnShape
extends StateMachine.State.MouseOnShape

A transition triggered by a mouse button pressed on an SMShape.

Author:
Caroline Appert

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

Constructor Detail

StateMachine.State.PressOnShape

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

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

StateMachine.State.PressOnShape

public StateMachine.State.PressOnShape(int b,
                                       int m)
Constructs a transition triggered by a mouse pressed event on a SMShape 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.PressOnShape

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

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

StateMachine.State.PressOnShape

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

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