public class PressOnShape extends MouseOnShape
Constructor and Description |
---|
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.
|
PressOnShape(int button)
Builds a transition triggered by a mouse pressed event with any
modifier on a CShape that loops on the current state.
|
PressOnShape(int button,
int modifier)
Builds a transition triggered by a mouse pressed event on a CShape
that loops on the current state.
|
PressOnShape(int button,
int modifier,
java.lang.String outState)
Builds a transition triggered by a mouse pressed event on a CShape.
|
PressOnShape(int button,
java.lang.String outState)
Builds a transition triggered by a mouse pressed event with any
modifier on a CShape.
|
PressOnShape(java.lang.String outState)
Builds a transition triggered by a mouse pressed event with any
modifier on a CShape.
|
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, getShape, toString
pickingRequired
getClassEvent
action, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, setTriggeringEvent
public PressOnShape()
public PressOnShape(java.lang.String outState)
outState
- The name of the output statepublic PressOnShape(int button)
button
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3public 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_SHIFTpublic PressOnShape(int button, java.lang.String outState)
button
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState
- The name of the output statepublic 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 statepublic boolean matches(java.util.EventObject eventObject)
matches
in class EventOnShape
eventObject
- The event to testeventObject
can trigger this transition.