public class MouseOnComponent extends EventOnComponent
| Constructor and Description |
|---|
MouseOnComponent(int button)
Builds a mouse transition with any modifier that loops on the current state.
|
MouseOnComponent(int button,
int modifier)
Builds a mouse transition that loops on the current state.
|
MouseOnComponent(int button,
int modifier,
java.lang.String outState)
Builds a mouse transition.
|
MouseOnComponent(int button,
java.lang.String outState)
Builds a mouse transition with any modifier.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getButton()
Returns the button of the mouse event that fires this transition.
|
java.awt.Component |
getComponent()
Returns the component on which the mouse event firing this transition has occured.
|
java.awt.event.InputEvent |
getInputEvent() |
java.awt.geom.Point2D |
getPoint()
Returns the location at which this transition has occured.
|
java.lang.String |
toString() |
getPointInComponent, matchesgetClassEventaction, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, pickingRequired, setTriggeringEventpublic MouseOnComponent(int button,
int modifier,
java.lang.String outState)
button - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3outState - The name of the output statemodifier - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTpublic MouseOnComponent(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 MouseOnComponent(int button,
java.lang.String outState)
button - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3outState - The name of the output statepublic MouseOnComponent(int button)
button - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3public int getButton()
public java.lang.String toString()
toString in class EventOnComponentpublic java.awt.event.InputEvent getInputEvent()
public java.awt.geom.Point2D getPoint()
getPoint in class EventOnPositionpublic java.awt.Component getComponent()
getComponent in class EventOnComponent