fr.lri.swingstates.canvas
Class CStateMachine.EnterOnTag

java.lang.Object
  extended by fr.lri.swingstates.sm.Transition
      extended by fr.lri.swingstates.sm.transitions.Event
          extended by fr.lri.swingstates.sm.transitions.EventOnPosition
              extended by fr.lri.swingstates.canvas.CStateMachine.EventOnShape
                  extended by fr.lri.swingstates.canvas.CStateMachine.EventOnTag
                      extended by fr.lri.swingstates.canvas.CStateMachine.MouseOnTag
                          extended by fr.lri.swingstates.canvas.CStateMachine.EnterOnTag
Enclosing class:
CStateMachine

public class CStateMachine.EnterOnTag
extends CStateMachine.MouseOnTag

A transition triggered when the cursor enters in a CShape that holds a given tag.

Author:
Caroline Appert

Constructor Summary
CStateMachine.EnterOnTag(java.lang.Class tagClass)
          Builds a transition triggered when the cursor enters with any modifier in a tagged shape.
CStateMachine.EnterOnTag(java.lang.Class tagClass, int modifier)
          Builds a transition triggered when the cursor enters with any modifier in a tagged shape.
CStateMachine.EnterOnTag(java.lang.Class tagClass, int modifier, java.lang.String outState)
          Builds a transition triggered when the cursor enters in a tagged shape.
CStateMachine.EnterOnTag(java.lang.Class tagClass, java.lang.String outState)
          Builds a transition triggered when the cursor enters with any modifier in a tagged shape.
CStateMachine.EnterOnTag(CTag tag)
          Builds a transition triggered when the cursor enters with any modifier in a tagged shape.
CStateMachine.EnterOnTag(CTag tag, int modifier)
          Builds a transition triggered when the cursor enters in a tagged shape.
CStateMachine.EnterOnTag(CTag tag, int modifier, java.lang.String outState)
          Builds a transition triggered when the cursor enters in a tagged shape.
CStateMachine.EnterOnTag(CTag tag, java.lang.String outState)
          Builds a transition triggered when the cursor enters with any modifier in a tagged shape.
CStateMachine.EnterOnTag(java.lang.String tagName)
          Builds a transition triggered when the cursor enters with any modifier in a tagged shape.
CStateMachine.EnterOnTag(java.lang.String tagName, int modifier)
          Builds a transition triggered when the cursor enters in a tagged shape.
CStateMachine.EnterOnTag(java.lang.String tagName, int modifier, java.lang.String outState)
          Builds a transition triggered when the cursor enters in a tagged shape.
CStateMachine.EnterOnTag(java.lang.String tagName, java.lang.String outState)
          Builds a transition triggered when the cursor enters with any modifier in a tagged shape.
 
Method Summary
 boolean matches(java.util.EventObject eventObject)
          Tests if an event can trigger that transition.
 
Methods inherited from class fr.lri.swingstates.canvas.CStateMachine.MouseOnTag
getButton, getInputEvent, getMouseEvent, getPoint, getShape, toString
 
Methods inherited from class fr.lri.swingstates.canvas.CStateMachine.EventOnTag
getTag, getTagName
 
Methods inherited from class fr.lri.swingstates.sm.Transition
action, getEvent, getInputState, getOutputState, guard, oldToString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(java.lang.String tagName)
Builds a transition triggered when the cursor enters with any modifier in a tagged shape. This transition loops on the current state.

Parameters:
tagName - The name of the tag

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(java.lang.Class tagClass)
Builds a transition triggered when the cursor enters with any modifier in a tagged shape. This transition loops on the current state.

Parameters:
tagClass - The clas of the tag

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(CTag tag)
Builds a transition triggered when the cursor enters with any modifier in a tagged shape. This transition loops on the current state.

Parameters:
tag - The tag

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(java.lang.String tagName,
                                int modifier)
Builds a transition triggered when the cursor enters in a tagged shape. This transition loops on the current state.

Parameters:
tagName - The name of the tag
modifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(java.lang.Class tagClass,
                                int modifier)
Builds a transition triggered when the cursor enters with any modifier in a tagged shape. This transition loops on the current state.

Parameters:
tagClass - The class of the tag
modifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(CTag tag,
                                int modifier)
Builds a transition triggered when the cursor enters in a tagged shape. This transition loops on the current state.

Parameters:
tag - The tag
modifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(java.lang.String tagName,
                                java.lang.String outState)
Builds a transition triggered when the cursor enters with any modifier in a tagged shape.

Parameters:
tagName - The name of the tag
outState - The name of the output state

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(java.lang.Class tagClass,
                                java.lang.String outState)
Builds a transition triggered when the cursor enters with any modifier in a tagged shape.

Parameters:
tagClass - The class of the tag
outState - The name of the output state

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(CTag tag,
                                java.lang.String outState)
Builds a transition triggered when the cursor enters with any modifier in a tagged shape.

Parameters:
tag - The tag
outState - The name of the output state

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(java.lang.String tagName,
                                int modifier,
                                java.lang.String outState)
Builds a transition triggered when the cursor enters in a tagged shape.

Parameters:
tagName - The name of the tag
modifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
outState - The name of the output state

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(java.lang.Class tagClass,
                                int modifier,
                                java.lang.String outState)
Builds a transition triggered when the cursor enters in a tagged shape.

Parameters:
tagClass - The class of the tag
modifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
outState - The name of the output state

CStateMachine.EnterOnTag

public CStateMachine.EnterOnTag(CTag tag,
                                int modifier,
                                java.lang.String outState)
Builds a transition triggered when the cursor enters in a tagged shape.

Parameters:
tag - The tag
modifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
outState - The name of the output state
Method Detail

matches

public boolean matches(java.util.EventObject eventObject)
Tests if an event can trigger that transition.

Overrides:
matches in class CStateMachine.EventOnTag
Parameters:
eventObject - The event to test
Returns:
True if the eventObject can trigger this transition.