public abstract class MouseOnPosition extends EventOnPosition
| Constructor and Description |
|---|
MouseOnPosition()
Builds a mouse transition with any modifier.
|
MouseOnPosition(int b)
Builds a mouse transition with any modifier that loops on the current state.
|
MouseOnPosition(int b,
int m)
Builds a mouse transition that loops on the current state.
|
MouseOnPosition(int b,
int m,
java.lang.String outState)
Builds a mouse transition.
|
MouseOnPosition(int b,
java.lang.String outState)
Builds a mouse transition with any modifier.
|
MouseOnPosition(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.event.InputEvent |
getInputEvent() |
int |
getModifier()
Returns the modifier of the mouse event that fires this transition.
|
java.awt.event.MouseEvent |
getMouseEvent() |
java.awt.geom.Point2D |
getPoint()
Returns the location at which this transition has occured.
|
boolean |
matches(java.util.EventObject eventObject)
Tests if an event can trigger that transition.
|
java.lang.String |
toString() |
getClassEventaction, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, pickingRequired, setTriggeringEventpublic MouseOnPosition(java.lang.String outState)
outState - The name of the output statepublic MouseOnPosition()
public MouseOnPosition(int b,
int m,
java.lang.String outState)
b - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3outState - The name of the output statem - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTpublic MouseOnPosition(int b,
java.lang.String outState)
b - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3outState - The name of the output statepublic MouseOnPosition(int b,
int m)
b - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3m - The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTpublic MouseOnPosition(int b)
b - The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3public int getButton()
public int getModifier()
public java.lang.String toString()
toString in class EventOnPositionpublic java.awt.event.InputEvent getInputEvent()
public java.awt.event.MouseEvent getMouseEvent()
public java.awt.geom.Point2D getPoint()
getPoint in class EventOnPositionpublic boolean matches(java.util.EventObject eventObject)
matches in class EventOnPositioneventObject - The event to testeventObject
can trigger this transition.