public class Click extends MouseOnPosition
Constructor and Description |
---|
Click()
Builds a transition triggered by a mouse clicked event with any modifier and any button that loops on the current state.
|
Click(int b)
Builds a transition triggered by a mouse clicked event with any modifier that loops on the current state.
|
Click(int b,
int m)
Builds a transition triggered by a mouse clicked event that loops on the current state.
|
Click(int b,
int m,
java.lang.String outState)
Builds a transition triggered by a mouse clicked event.
|
Click(int b,
java.lang.String outState)
Builds a transition with any modifier triggered by a mouse clicked event.
|
Click(java.lang.String outState)
Builds a transition triggered by a mouse clicked event with any modifier and any button.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.util.EventObject eventObject)
Tests if an event can trigger that transition.
|
getButton, getInputEvent, getModifier, getMouseEvent, getPoint, toString
getClassEvent
action, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, pickingRequired, setTriggeringEvent
public Click(java.lang.String outState)
outState
- The name of the output statepublic Click()
public Click(int b)
b
- The button of the mouse event: BasicInputStateMachine.NOBUTTON, BUTTON1, BUTTON2 or BUTTON3public Click(int b, int m)
b
- The button of the mouse event: BasicInputStateMachine.NOBUTTON, BUTTON1, BUTTON2 or BUTTON3m
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTpublic Click(int b, java.lang.String outState)
b
- The button of the mouse event: BasicInputStateMachine.NOBUTTON, BUTTON1, BUTTON2 or BUTTON3outState
- The name of the output statepublic Click(int b, int m, java.lang.String outState)
b
- The button of the mouse event: BasicInputStateMachine.NOBUTTON, BUTTON1, BUTTON2 or BUTTON3m
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFToutState
- The name of the output statepublic boolean matches(java.util.EventObject eventObject)
matches
in class MouseOnPosition
eventObject
- The event to testeventObject
can trigger this transition.