public class Wheel extends MouseOnPosition
Constructor and Description |
---|
Wheel()
Builds a transition triggered by a mouse wheel event with any modifier that loops on the current state.
|
Wheel(int m)
Builds a transition triggered by a mouse wheel event that loops on the current state.
|
Wheel(int m,
java.lang.String outState)
Builds a transition triggered by a mouse wheel event.
|
Wheel(java.lang.String outState)
Builds a transition triggered by a mouse wheel event with any modifier.
|
Modifier and Type | Method and Description |
---|---|
int |
getScrollAmount() |
int |
getScrollType() |
int |
getUnitsToScroll() |
int |
getWheelRotation() |
boolean |
matches(java.util.EventObject eventObject)
Tests if an event can trigger that transition.
|
getButton, getInputEvent, getModifier, getMouseEvent, getPoint, toString
getClassEvent
action, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, pickingRequired, setTriggeringEvent
public Wheel()
public Wheel(int m)
m
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTpublic Wheel(java.lang.String outState)
outState
- The name of the output statepublic Wheel(int m, java.lang.String outState)
m
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT, ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFToutState
- The name of the output statepublic int getScrollAmount()
MouseWheelEvent.getScrollAmount()
public int getScrollType()
MouseWheelEvent.getScrollType()
public int getUnitsToScroll()
MouseWheelEvent.getUnitsToScroll()
public int getWheelRotation()
MouseWheelEvent.getWheelRotation()
public boolean matches(java.util.EventObject eventObject)
matches
in class MouseOnPosition
eventObject
- The event to testeventObject
can trigger this transition.