public class WheelOnShape extends MouseOnShape
Constructor and Description |
---|
WheelOnShape()
Builds a transition triggered by a mouse wheel event with mo modifier
down on a CShape that loops on the current state.
|
WheelOnShape(int modifier)
Builds a transition triggered by a mouse wheel event on a CShape that
loops on the current state.
|
WheelOnShape(int modifier,
java.lang.String outState)
Builds a transition triggered by a mouse wheel event on a CShape.
|
WheelOnShape(java.lang.String outState)
Builds a transition triggered by a mouse wheel event with any
modifier on a CShape.
|
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, getShape, toString
pickingRequired
getClassEvent
action, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, setTriggeringEvent
public WheelOnShape()
public WheelOnShape(int modifier)
modifier
- The modifier: NOMODIFIER, CONTROL, ALT, SHIFT,
ALT_CONTROL, CONTROL_SHIFT, ALT_SHIFT or ALT_CONTROL_SHIFTpublic WheelOnShape(java.lang.String outState)
outState
- The name of the output statepublic WheelOnShape(int modifier, java.lang.String outState)
modifier
- 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 EventOnShape
eventObject
- The event to testeventObject
can trigger this transition.