Class RolloverButtonListener
java.lang.Object
javax.swing.plaf.basic.BasicButtonListener
org.pushingpixels.radiance.theming.internal.utils.RolloverButtonListener
- All Implemented Interfaces:
FocusListener, MouseListener, MouseMotionListener, PropertyChangeListener, EventListener, ChangeListener
Button listener for rollover effects. Tracks the mouse motion and focus
interaction for the associated button. This class is for internal use
only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AbstractButtonThe associated button.private booleanIf the mouse pointer is currently inside the associated button area,thisflag istrue.private StateTransitionTracker -
Constructor Summary
ConstructorsConstructorDescriptionRolloverButtonListener(AbstractButton b, StateTransitionTracker stateTransitionTracker) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class BasicButtonListener
checkOpacity, installKeyboardActions, propertyChange, stateChanged, uninstallKeyboardActions
-
Field Details
-
isMouseInside
private boolean isMouseInsideIf the mouse pointer is currently inside the associated button area,thisflag istrue. -
button
The associated button. -
stateTransitionTracker
-
-
Constructor Details
-
RolloverButtonListener
Simple constructor.- Parameters:
b- The associated button.
-
-
Method Details
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classBasicButtonListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classBasicButtonListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classBasicButtonListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classBasicButtonListener
-
focusGained
- Specified by:
focusGainedin interfaceFocusListener- Overrides:
focusGainedin classBasicButtonListener
-
focusLost
- Specified by:
focusLostin interfaceFocusListener- Overrides:
focusLostin classBasicButtonListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classBasicButtonListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classBasicButtonListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classBasicButtonListener
-