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 boolean
If the mouse pointer is currently inside the designated area (fetched from the associatedtrackableUI
),this
flag istrue
.private ButtonModel
Surrogate model for tracking control status.private StateTransitionTracker
private TransitionAwareUI
Object that is queried for mouse events. -
Constructor Summary
ConstructorsConstructorDescriptionRolloverControlListener
(TransitionAwareUI trackableUI, ButtonModel model) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
-
Field Details
-
isMouseInside
private boolean isMouseInsideIf the mouse pointer is currently inside the designated area (fetched from the associatedtrackableUI
),this
flag 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:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-