Class RadianceScrollBarUI.RadianceTrackListener
- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- org.pushingpixels.radiance.theming.internal.ui.RadianceScrollBarUI.RadianceTrackListener
-
- All Implemented Interfaces:
java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.MouseWheelListener,java.util.EventListener
- Enclosing class:
- RadianceScrollBarUI
protected class RadianceScrollBarUI.RadianceTrackListener extends java.awt.event.MouseAdapterTrack mouse drags. Had to take this one from BasicScrollBarUI since the setValueForm method is private.
-
-
Field Summary
Fields Modifier and Type Field Description private intdirectionCurrent scroll direction.
-
Constructor Summary
Constructors Modifier Constructor Description protectedRadianceTrackListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmouseDragged(java.awt.event.MouseEvent e)voidmouseExited(java.awt.event.MouseEvent e)voidmouseMoved(java.awt.event.MouseEvent e)voidmousePressed(java.awt.event.MouseEvent e)voidmouseReleased(java.awt.event.MouseEvent e)private voidsetValueFrom(java.awt.event.MouseEvent e)Sets the scrollbar value based on the specified mouse event.private voidstartScrollTimerIfNecessary()If necessary, starts the scroll timer.
-
-
-
Method Detail
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener
-
setValueFrom
private void setValueFrom(java.awt.event.MouseEvent e)
Sets the scrollbar value based on the specified mouse event.- Parameters:
e- Mouse event.
-
startScrollTimerIfNecessary
private void startScrollTimerIfNecessary()
If necessary, starts the scroll timer.
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMovedin interfacejava.awt.event.MouseMotionListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
-
-