Class RolloverControlListener
java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.RolloverControlListener
- All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener
Control listener for rollover effects. Tracks the mouse motion interaction
for the associated
TransitionAwareUI control. This class is for
internal use only.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIf the mouse pointer is currently inside the designated area (fetched from the associatedtrackableUI),thisflag istrue.private ButtonModelSurrogate model for tracking control status.private StateTransitionTrackerprivate TransitionAwareUIObject that is queried for mouse events. -
Constructor Summary
ConstructorsConstructorDescriptionRolloverControlListener(TransitionAwareUI trackableUI, ButtonModel model) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
isMouseInside
private boolean isMouseInsideIf the mouse pointer is currently inside the designated area (fetched from the associatedtrackableUI),thisflag istrue. -
model
Surrogate model for tracking control status. -
trackableUI
Object that is queried for mouse events. This object is responsible for handling the designated (hot-spot) area of the associated control. -
stateTransitionTracker
-
-
Constructor Details
-
RolloverControlListener
Simple constructor.- Parameters:
trackableUI- Object that is queried for mouse events.model- Surrogate model for tracking control status.
-
-
Method Details
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-