Class RolloverMenuItemListener
java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.RolloverMenuItemListener
- All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener, MouseInputListener
Menu item listener for rollover effects. Tracks the mouse motion interaction
for the associated menu item. This class is for internal use only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIf the mouse pointer is currently inside the associated menu item area,thisflag istrue.private JMenuItemThe associated menu item.private StateTransitionTracker -
Constructor Summary
ConstructorsConstructorDescriptionRolloverMenuItemListener(JMenuItem item, StateTransitionTracker stateTransitionTracker) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
isMouseInside
private boolean isMouseInsideIf the mouse pointer is currently inside the associated menu item area,thisflag istrue. -
item
The associated menu item. -
stateTransitionTracker
-
-
Constructor Details
-
RolloverMenuItemListener
Simple constructor.- Parameters:
item- The associated menu item.
-
-
Method Details
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-