|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lri.swingstates.sm.Transition
fr.lri.swingstates.sm.transitions.Event
fr.lri.swingstates.sm.transitions.EventOnPosition
fr.lri.swingstates.canvas.CStateMachine.EventOnShape
fr.lri.swingstates.canvas.CStateMachine.EventOnTag
fr.lri.swingstates.canvas.CStateMachine.MouseOnTag
public class CStateMachine.MouseOnTag
A transition triggered by a mouse event on a tagged shape in the canvas.
The transition is specialized by a button and modifiers. Constants used
for button and modifier are static fields in BasicInputStateMachine.
BasicInputStateMachine.BUTTON1,
BasicInputStateMachine.BUTTON2,
BasicInputStateMachine.BUTTON3,
BasicInputStateMachine.NOBUTTON,
BasicInputStateMachine.ANYBUTTON,
BasicInputStateMachine.CONTROL,
BasicInputStateMachine.ALT,
BasicInputStateMachine.SHIFT,
BasicInputStateMachine.CONTROL_SHIFT,
BasicInputStateMachine.ALT_CONTROL,
BasicInputStateMachine.ALT_SHIFT,
BasicInputStateMachine.ALT_CONTROL_SHIFT,
BasicInputStateMachine.NOMODIFIER,
BasicInputStateMachine.ANYMODIFIER| Constructor Summary | |
|---|---|
CStateMachine.MouseOnTag(java.lang.Class tagClass)
Builds a mouse transition with any modifier and any button on a tagged shape that loops on the current state. |
|
CStateMachine.MouseOnTag(java.lang.Class tagClass,
int button)
Builds a mouse transition with no modifier on tagged shape that loops on the current state. |
|
CStateMachine.MouseOnTag(java.lang.Class tagClass,
int button,
int modifier)
Builds a mouse transition on tagged shape that loops on the current state. |
|
CStateMachine.MouseOnTag(java.lang.Class tagClass,
int button,
int modifier,
java.lang.String outState)
Builds a mouse transition on tagged shape. |
|
CStateMachine.MouseOnTag(java.lang.Class tagClass,
int button,
java.lang.String outState)
Builds a mouse transition with no modifier on tagged shape. |
|
CStateMachine.MouseOnTag(java.lang.Class tagClass,
java.lang.String outState)
Builds a mouse transition with any modifier and any button on a tagged shape. |
|
CStateMachine.MouseOnTag(CTag tag)
Builds a mouse transition with any modifier and any button on a tagged shape that loops on the current state. |
|
CStateMachine.MouseOnTag(CTag tag,
int button)
Builds a mouse transition with no modifier on tagged shape that loops on the current state. |
|
CStateMachine.MouseOnTag(CTag tag,
int button,
int modifier)
Builds a mouse transition on tagged shape that loops on the current state. |
|
CStateMachine.MouseOnTag(CTag tag,
int button,
int modifier,
java.lang.String outState)
Builds a mouse transition on tagged shape. |
|
CStateMachine.MouseOnTag(CTag tag,
int button,
java.lang.String outState)
Builds a mouse transition with no modifier on tagged shape. |
|
CStateMachine.MouseOnTag(CTag tag,
java.lang.String outState)
Builds a mouse transition with any modifier and any button on a tagged shape. |
|
CStateMachine.MouseOnTag(java.lang.String tagName,
int button)
Builds a mouse transition with no modifier on a tagged shape that loops on the current state. |
|
CStateMachine.MouseOnTag(java.lang.String tagName,
int button,
int modifier)
Builds a mouse transition on tagged shape that loops on the current state. |
|
CStateMachine.MouseOnTag(java.lang.String tagName,
int button,
int modifier,
java.lang.String outState)
Builds a mouse transition on tagged shape. |
|
CStateMachine.MouseOnTag(java.lang.String tagName,
int button,
java.lang.String outState)
Builds a mouse transition with no modifier on tagged shape. |
|
| Method Summary | |
|---|---|
int |
getButton()
Returns the button of the mouse event that fires this transition. |
java.awt.event.InputEvent |
getInputEvent()
|
java.awt.event.MouseEvent |
getMouseEvent()
|
java.awt.geom.Point2D |
getPoint()
Returns the location at which this transition has occured. |
CShape |
getShape()
Returns the CShape on which the event firing this transition has occured. |
java.lang.String |
toString()
|
| Methods inherited from class fr.lri.swingstates.canvas.CStateMachine.EventOnTag |
|---|
getTag, getTagName, matches |
| 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 |
|---|
public CStateMachine.MouseOnTag(CTag tag,
java.lang.String outState)
tag - The tagoutState - The name of the output statepublic CStateMachine.MouseOnTag(CTag tag)
tag - The tag
public CStateMachine.MouseOnTag(java.lang.Class tagClass,
java.lang.String outState)
tagClass - The class of the tagoutState - The name of the output statepublic CStateMachine.MouseOnTag(java.lang.Class tagClass)
tagClass - The class of the tag
public CStateMachine.MouseOnTag(CTag tag,
int button,
int modifier,
java.lang.String outState)
tag - The tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState - The name of the output statemodifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT,
ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
public CStateMachine.MouseOnTag(CTag tag,
int button,
int modifier)
tag - The tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3modifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT,
ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
public CStateMachine.MouseOnTag(CTag tag,
int button,
java.lang.String outState)
tag - The tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState - The name of the output state
public CStateMachine.MouseOnTag(CTag tag,
int button)
tag - The tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3
public CStateMachine.MouseOnTag(java.lang.String tagName,
int button,
int modifier,
java.lang.String outState)
tagName - The name of the tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState - The name of the output statemodifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT,
ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
public CStateMachine.MouseOnTag(java.lang.String tagName,
int button,
int modifier)
tagName - The name of the tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3modifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT,
ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
public CStateMachine.MouseOnTag(java.lang.String tagName,
int button,
java.lang.String outState)
tagName - The name of the tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState - The name of the output state
public CStateMachine.MouseOnTag(java.lang.String tagName,
int button)
tagName - The name of the tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3
public CStateMachine.MouseOnTag(java.lang.Class tagClass,
int button,
int modifier,
java.lang.String outState)
tagClass - The class of the tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState - The name of the output statemodifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT,
ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
public CStateMachine.MouseOnTag(java.lang.Class tagClass,
int button,
int modifier)
tagClass - The class of the tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3modifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT,
ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFT
public CStateMachine.MouseOnTag(java.lang.Class tagClass,
int button,
java.lang.String outState)
tagClass - The class of the tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState - The name of the output state
public CStateMachine.MouseOnTag(java.lang.Class tagClass,
int button)
tagClass - The class of the tagbutton - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3| Method Detail |
|---|
public java.lang.String toString()
toString in class CStateMachine.EventOnTagpublic int getButton()
public java.awt.event.InputEvent getInputEvent()
public java.awt.event.MouseEvent getMouseEvent()
public java.awt.geom.Point2D getPoint()
getPoint in class CStateMachine.EventOnShapepublic CShape getShape()
getShape in class CStateMachine.EventOnShape
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||