public class ClickOnShape extends MouseOnShape
| Constructor and Description |
|---|
ClickOnShape()
Builds a transition triggered by a mouse clicked event with any
modifier and any button on a CShape that loops on the current state.
|
ClickOnShape(int button)
Builds a transition triggered by a mouse clicked event with any
modifier on a CShape that loops on the current state.
|
ClickOnShape(int button,
int modifier)
Builds a transition triggered by a mouse clicked event on a CShape
that loops on the current state.
|
ClickOnShape(int button,
int modifier,
java.lang.String outState)
Builds a transition triggered by a mouse clicked event on a CShape.
|
ClickOnShape(int button,
java.lang.String outState)
Builds a transition triggered by a mouse clicked event with any
modifier on a CShape.
|
ClickOnShape(java.lang.String outState)
Builds a transition triggered by a mouse clicked 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, toStringpickingRequiredgetClassEventaction, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, setTriggeringEventpublic ClickOnShape()
public ClickOnShape(java.lang.String outState)
outState - The name of the output statepublic ClickOnShape(int button)
button - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3public ClickOnShape(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 ClickOnShape(int button,
java.lang.String outState)
button - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState - The name of the output statepublic ClickOnShape(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 EventOnShapeeventObject - The event to testeventObject
can trigger this transition.