Class RadianceTabbedPaneUI.MouseRolloverHandler
java.lang.Object
org.pushingpixels.radiance.theming.internal.ui.RadianceTabbedPaneUI.MouseRolloverHandler
- All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener
- Enclosing class:
RadianceTabbedPaneUI
private class RadianceTabbedPaneUI.MouseRolloverHandler
extends Object
implements MouseListener, MouseMotionListener
Listener for rollover animation effects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIndicates whether the previous mouse event was located in a close button.private intIndex of the tab that was rolled over on the previous mouse event.private intTab index of the last mouse pressed event that happened in a close button. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidHandles the move and drag mouse events.voidvoidvoidvoidvoidvoidvoid
-
Field Details
-
prevRolledOver
private int prevRolledOverIndex of the tab that was rolled over on the previous mouse event. -
prevInCloseButton
private boolean prevInCloseButtonIndicates whether the previous mouse event was located in a close button. -
tabOfPressedCloseButton
private int tabOfPressedCloseButtonTab index of the last mouse pressed event that happened in a close button.
-
-
Constructor Details
-
MouseRolloverHandler
private MouseRolloverHandler()
-
-
Method Details
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
handleMouseMoveDrag
Handles the move and drag mouse events.- Parameters:
e- Mouse event to handle.
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-