|
||||||||||
| 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.MouseOnShape
fr.lri.swingstates.canvas.CStateMachine.PressOnShape
public class CStateMachine.PressOnShape
A transition triggered by a mouse button pressed on a CShape.
| Constructor Summary | |
|---|---|
CStateMachine.PressOnShape()
Builds a transition triggered by a mouse pressed event with any modifier and any button on a CShape that loops on the current state. |
|
CStateMachine.PressOnShape(int button)
Builds a transition triggered by a mouse pressed event with any modifier on a CShape that loops on the current state. |
|
CStateMachine.PressOnShape(int button,
int modifier)
Builds a transition triggered by a mouse pressed event on a CShape that loops on the current state. |
|
CStateMachine.PressOnShape(int button,
int modifier,
java.lang.String outState)
Builds a transition triggered by a mouse pressed event on a CShape. |
|
CStateMachine.PressOnShape(int button,
java.lang.String outState)
Builds a transition triggered by a mouse pressed event with any modifier on a CShape. |
|
CStateMachine.PressOnShape(java.lang.String outState)
Builds a transition triggered by a mouse pressed event with any modifier on a CShape. |
|
| 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.MouseOnShape |
|---|
getButton, getInputEvent, getModifier, getMouseEvent, getPoint, getShape, toString |
| 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.PressOnShape()
public CStateMachine.PressOnShape(java.lang.String outState)
outState - The name of the output statepublic CStateMachine.PressOnShape(int button)
button - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3
public CStateMachine.PressOnShape(int button,
int modifier)
button - 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.PressOnShape(int button,
java.lang.String outState)
button - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState - The name of the output state
public CStateMachine.PressOnShape(int button,
int modifier,
java.lang.String outState)
button - 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_SHIFToutState - The name of the output state| Method Detail |
|---|
public boolean matches(java.util.EventObject eventObject)
matches in class CStateMachine.EventOnShapeeventObject - The event to test
eventObject
can trigger this transition.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||