public class MouseOnTag extends EventOnTag
BasicInputStateMachine
.BasicInputStateMachine.BUTTON1
,
BasicInputStateMachine.BUTTON2
,
BasicInputStateMachine.BUTTON3
,
BasicInputStateMachine.NOBUTTON
,
BasicInputStateMachine.ANYBUTTON
,
BasicInputStateMachine.CONTROL
,
BasicInputStateMachine.ALT
,
BasicInputStateMachine.SHIFT
,
BasicInputStateMachine.CONTROL_SHIFT
,
BasicInputStateMachine.ALT_CONTROL
,
BasicInputStateMachine.ALT_SHIFT
,
BasicInputStateMachine.ALT_CONTROL_SHIFT
,
BasicInputStateMachine.NOMODIFIER
,
BasicInputStateMachine.ANYMODIFIER
Constructor and Description |
---|
MouseOnTag(java.lang.Class tagClass)
Builds a mouse transition with any modifier and any button on a
tagged shape that loops on the current state.
|
MouseOnTag(java.lang.Class tagClass,
int button)
Builds a mouse transition with no modifier on tagged shape that loops
on the current state.
|
MouseOnTag(java.lang.Class tagClass,
int button,
int modifier)
Builds a mouse transition on tagged shape that loops on the current
state.
|
MouseOnTag(java.lang.Class tagClass,
int button,
int modifier,
java.lang.String outState)
Builds a mouse transition on tagged shape.
|
MouseOnTag(java.lang.Class tagClass,
int button,
java.lang.String outState)
Builds a mouse transition with no modifier on tagged shape.
|
MouseOnTag(java.lang.Class tagClass,
java.lang.String outState)
Builds a mouse transition with any modifier and any button on a
tagged shape.
|
MouseOnTag(CTag tag)
Builds a mouse transition with any modifier and any button on a
tagged shape that loops on the current state.
|
MouseOnTag(CTag tag,
int button)
Builds a mouse transition with no modifier on tagged shape that loops
on the current state.
|
MouseOnTag(CTag tag,
int button,
int modifier)
Builds a mouse transition on tagged shape that loops on the current
state.
|
MouseOnTag(CTag tag,
int button,
int modifier,
java.lang.String outState)
Builds a mouse transition on tagged shape.
|
MouseOnTag(CTag tag,
int button,
java.lang.String outState)
Builds a mouse transition with no modifier on tagged shape.
|
MouseOnTag(CTag tag,
java.lang.String outState)
Builds a mouse transition with any modifier and any button on a
tagged shape.
|
MouseOnTag(java.lang.String tagName,
int button)
Builds a mouse transition with no modifier on a tagged shape that loops
on the current state.
|
MouseOnTag(java.lang.String tagName,
int button,
int modifier)
Builds a mouse transition on tagged shape that loops on the current
state.
|
MouseOnTag(java.lang.String tagName,
int button,
int modifier,
java.lang.String outState)
Builds a mouse transition on tagged shape.
|
MouseOnTag(java.lang.String tagName,
int button,
java.lang.String outState)
Builds a mouse transition with no modifier on tagged shape.
|
Modifier and Type | Method and Description |
---|---|
int |
getButton()
Returns the button of the mouse event that fires this transition.
|
java.awt.event.InputEvent |
getInputEvent() |
java.awt.event.MouseEvent |
getMouseEvent() |
java.awt.geom.Point2D |
getPoint()
Returns the location at which this transition has occured.
|
CShape |
getShape()
Returns the CShape on which the event firing this transition has
occured.
|
java.lang.String |
toString() |
getTag, getTagName, matches
pickingRequired
getClassEvent
action, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, setTriggeringEvent
public MouseOnTag(CTag tag, java.lang.String outState)
tag
- The tagoutState
- The name of the output statepublic MouseOnTag(CTag tag)
tag
- The tagpublic MouseOnTag(java.lang.Class tagClass, java.lang.String outState)
tagClass
- The class of the tagoutState
- The name of the output statepublic MouseOnTag(java.lang.Class tagClass)
tagClass
- The class of the tagpublic MouseOnTag(CTag tag, int button, int modifier, java.lang.String outState)
tag
- The tagbutton
- 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 MouseOnTag(CTag tag, int button, int modifier)
tag
- The tagbutton
- 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 MouseOnTag(CTag tag, int button, java.lang.String outState)
tag
- The tagbutton
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState
- The name of the output statepublic MouseOnTag(CTag tag, int button)
tag
- The tagbutton
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3public MouseOnTag(java.lang.String tagName, int button, int modifier, java.lang.String outState)
tagName
- The name of the tagbutton
- 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 MouseOnTag(java.lang.String tagName, int button, int modifier)
tagName
- The name of the tagbutton
- 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 MouseOnTag(java.lang.String tagName, int button, java.lang.String outState)
tagName
- The name of the tagbutton
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState
- The name of the output statepublic MouseOnTag(java.lang.String tagName, int button)
tagName
- The name of the tagbutton
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3public MouseOnTag(java.lang.Class tagClass, int button, int modifier, java.lang.String outState)
tagClass
- The class of the tagbutton
- 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 MouseOnTag(java.lang.Class tagClass, int button, int modifier)
tagClass
- The class of the tagbutton
- 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 MouseOnTag(java.lang.Class tagClass, int button, java.lang.String outState)
tagClass
- The class of the tagbutton
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3outState
- The name of the output statepublic MouseOnTag(java.lang.Class tagClass, int button)
tagClass
- The class of the tagbutton
- The button of the mouse event: NOBUTTON, BUTTON1, BUTTON2
or BUTTON3public java.lang.String toString()
toString
in class EventOnTag
public int getButton()
public java.awt.event.InputEvent getInputEvent()
public java.awt.event.MouseEvent getMouseEvent()
public java.awt.geom.Point2D getPoint()
getPoint
in class EventOnShape
public CShape getShape()
getShape
in class EventOnShape