Class MouseTriggerEvent
java.lang.Object
org.jdesktop.animation.timing.triggers.TriggerEvent
org.jdesktop.animation.timing.triggers.MouseTriggerEvent
Mouse Enter/Exit/Press/Release/Click events
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MouseTriggerEvent
Event fired when mouse is clickedstatic final MouseTriggerEvent
Event fired when mouse entersstatic final MouseTriggerEvent
Event fired when mouse exitsstatic final MouseTriggerEvent
Event fired when mouse button is pressedstatic final MouseTriggerEvent
Event fired when mouse button is released -
Method Summary
Modifier and TypeMethodDescriptionThis method finds the opposite of the current event.:
ENTER -> EXIT
EXIT -> ENTER
PRESS -> RELEASE
RELEASE -> PRESS
Note that CLICK has no obvious opposite so it simply returns CLICK (this method should probably not be called for that case).
-
Field Details
-
ENTER
Event fired when mouse enters -
EXIT
Event fired when mouse exits -
PRESS
Event fired when mouse button is pressed -
RELEASE
Event fired when mouse button is released -
CLICK
Event fired when mouse is clicked
-
-
Method Details
-
getOppositeEvent
This method finds the opposite of the current event.:
ENTER -> EXIT
EXIT -> ENTER
PRESS -> RELEASE
RELEASE -> PRESS
Note that CLICK has no obvious opposite so it simply returns CLICK (this method should probably not be called for that case).- Overrides:
getOppositeEvent
in classTriggerEvent
-