public class ReleaseOnComponent extends MouseOnComponent
Constructor and Description |
---|
ReleaseOnComponent(int button)
Builds a transition triggered by a mouse released event with any modifier on a component that loops on the current state.
|
ReleaseOnComponent(int button,
int modifier)
Builds a transition triggered by a mouse released event on a component that loops on the current state.
|
ReleaseOnComponent(int button,
int modifier,
java.lang.String outState)
Builds a transition triggered by a mouse released event on a component.
|
ReleaseOnComponent(int button,
java.lang.String outState)
Builds a transition triggered by a mouse released 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 ReleaseOnComponent(int button)
button
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3public ReleaseOnComponent(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 ReleaseOnComponent(int button, java.lang.String outState)
button
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3outState
- The name of the output statepublic ReleaseOnComponent(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.