sm
Class StateMachine.State.ClickOnTag

java.lang.Object
  extended bysm.StateMachine.State.Transition
      extended bysm.StateMachine.State.EventOnPosition
          extended bysm.StateMachine.State.EventOnShape
              extended bysm.StateMachine.State.EventOnTag
                  extended bysm.StateMachine.State.MouseOnTag
                      extended bysm.StateMachine.State.ClickOnTag
Enclosing class:
StateMachine.State

public class StateMachine.State.ClickOnTag
extends StateMachine.State.MouseOnTag

A transition triggered by a mouse clicked event on an SMShape with a given tag. A click is defined as a quick succession of mouse press and mouse release, without significant motion in between. Note that the mouse press and mouse release events are always sent, even when a mouse click event is sent.

Author:
Caroline Appert

Constructor Summary
StateMachine.State.ClickOnTag(SMTag t, int b)
          Constructs a transition triggered by a mouse clicked event with any modifier on a tagged SMShape that loops on the current state.
StateMachine.State.ClickOnTag(SMTag t, int b, int m)
          Constructs a transition triggered by a mouse clicked event on a tagged SMShape that loops on the current state.
StateMachine.State.ClickOnTag(SMTag t, int b, int m, java.lang.String a)
          Constructs a transition triggered by a mouse clicked event on a tagged SMShape.
StateMachine.State.ClickOnTag(SMTag t, int b, java.lang.String a)
          Constructs a transition triggered by a mouse clicked event with any modifier on a tagged SMShape.
StateMachine.State.ClickOnTag(java.lang.String n, int b)
          Constructs a transition triggered by a mouse clicked event with any modifier on a tagged SMShape that loops on the current state.
StateMachine.State.ClickOnTag(java.lang.String n, int b, int m)
          Constructs a transition triggered by a mouse clicked event on a tagged SMShape that loops on the current state.
StateMachine.State.ClickOnTag(java.lang.String n, int b, int m, java.lang.String a)
          Constructs a transition triggered by a mouse clicked event on a tagged SMShape.
StateMachine.State.ClickOnTag(java.lang.String n, int b, java.lang.String a)
          Constructs a transition triggered by a mouse clicked event with any modifier on a tagged SMShape.
 
Methods inherited from class sm.StateMachine.State.MouseOnTag
getButton
 
Methods inherited from class sm.StateMachine.State.EventOnTag
getTagName, getTagObject
 
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.ClickOnTag

public StateMachine.State.ClickOnTag(java.lang.String n,
                                     int b)
Constructs a transition triggered by a mouse clicked event with any modifier on a tagged SMShape that loops on the current state.

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

StateMachine.State.ClickOnTag

public StateMachine.State.ClickOnTag(SMTag t,
                                     int b)
Constructs a transition triggered by a mouse clicked event with any modifier on a tagged SMShape that loops on the current state.

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

StateMachine.State.ClickOnTag

public StateMachine.State.ClickOnTag(java.lang.String n,
                                     int b,
                                     int m)
Constructs a transition triggered by a mouse clicked event on a tagged SMShape that loops on the current state.

Parameters:
n - The name of the tag
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.ClickOnTag

public StateMachine.State.ClickOnTag(SMTag t,
                                     int b,
                                     int m)
Constructs a transition triggered by a mouse clicked event on a tagged SMShape that loops on the current state.

Parameters:
t - The tag
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.ClickOnTag

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

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

StateMachine.State.ClickOnTag

public StateMachine.State.ClickOnTag(SMTag t,
                                     int b,
                                     java.lang.String a)
Constructs a transition triggered by a mouse clicked event with any modifier on a tagged SMShape.

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

StateMachine.State.ClickOnTag

public StateMachine.State.ClickOnTag(java.lang.String n,
                                     int b,
                                     int m,
                                     java.lang.String a)
Constructs a transition triggered by a mouse clicked event on a tagged SMShape.

Parameters:
n - The name of the tag
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

StateMachine.State.ClickOnTag

public StateMachine.State.ClickOnTag(SMTag t,
                                     int b,
                                     int m,
                                     java.lang.String a)
Constructs a transition triggered by a mouse clicked event on a tagged SMShape.

Parameters:
t - The tag
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