public class PressOnComponent extends MouseOnComponent
Constructor and Description |
---|
PressOnComponent(int button)
Builds a transition triggered by a mouse pressed event with any modifier on a component that loops on the current state.
|
PressOnComponent(int button,
int modifier)
Builds a transition triggered by a mouse pressed event on a component that loops on the current state.
|
PressOnComponent(int button,
int modifier,
java.lang.String outState)
Builds a transition triggered by a mouse pressed event on a component.
|
PressOnComponent(int button,
java.lang.String outState)
Builds a transition triggered by a mouse pressed event with any modifier on a component.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.util.EventObject eventObject)
Tests if an event can trigger that transition.
|
getButton, getComponent, getInputEvent, getPoint, toString
getPointInComponent
getClassEvent
action, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, pickingRequired, setTriggeringEvent
public PressOnComponent(int button)
button
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3public PressOnComponent(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 PressOnComponent(int button, java.lang.String outState)
button
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3outState
- The name of the output statepublic PressOnComponent(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 EventOnComponent
eventObject
- The event to testeventObject
can trigger this transition.