All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.jlf.JLFSliderUI
java.lang.Object
|
+----java.awt.swing.plaf.ComponentUI
|
+----java.awt.swing.plaf.SliderUI
|
+----java.awt.swing.basic.BasicSliderUI
|
+----java.awt.swing.jlf.JLFSliderUI
- public class JLFSliderUI
- extends BasicSliderUI
A Java L&F implementation of SliderUI.
TRACK_BUFFER-
JLFSliderUI()
-
calculateThumbBounds()
- Subclasses of BasicSliderUI override this method to determine their own
thumb size.
createUI(JComponent)
-
drawLine(Graphics, int, int, int, int, int, boolean)
-
fillRect(Graphics, int, int, int, int, int, boolean)
-
getThumbOverhang()
- Returns the amount that the thumb goes past the slide bar.
getTickSize()
- Gets the height of the tick area for horizontal sliders and the width of the
tick area for vertical sliders.
getTrackLength()
- Returns the longer dimension of the slide bar.
getTrackWidth()
- Returns the shorter dimension of the track.
paintFocus(Graphics)
-
paintThumb(Graphics)
-
paintTicks(Graphics)
-
paintTrack(Graphics)
-
scrollByBlock(int)
-
TRACK_BUFFER
protected static final int TRACK_BUFFER
JLFSliderUI
public JLFSliderUI()
createUI
public static ComponentUI createUI(JComponent c)
paintThumb
public void paintThumb(Graphics g)
- Overrides:
- paintThumb in class BasicSliderUI
drawLine
protected void drawLine(Graphics g,
int knobWidth,
int origX1,
int origY1,
int origX2,
int origY2,
boolean vertical)
fillRect
protected void fillRect(Graphics g,
int knobWidth,
int origX,
int origY,
int origWidth,
int origHeight,
boolean vertical)
paintTrack
public void paintTrack(Graphics g)
- Overrides:
- paintTrack in class BasicSliderUI
paintTicks
public void paintTicks(Graphics g)
- Overrides:
- paintTicks in class BasicSliderUI
paintFocus
public void paintFocus(Graphics g)
- Overrides:
- paintFocus in class BasicSliderUI
calculateThumbBounds
public void calculateThumbBounds()
- Subclasses of BasicSliderUI override this method to determine their own
thumb size.
- Overrides:
- calculateThumbBounds in class BasicSliderUI
getTickSize
public int getTickSize()
- Gets the height of the tick area for horizontal sliders and the width of the
tick area for vertical sliders. BasicSliderUI uses the returned value to
determine the bounds of the tray rectangle and the tick area rectangle.
- Overrides:
- getTickSize in class BasicSliderUI
getTrackWidth
protected int getTrackWidth()
- Returns the shorter dimension of the track.
getTrackLength
protected int getTrackLength()
- Returns the longer dimension of the slide bar. (The slide bar is only the
part that runs directly under the thumb)
getThumbOverhang
protected int getThumbOverhang()
- Returns the amount that the thumb goes past the slide bar.
scrollByBlock
public void scrollByBlock(int direction)
- Overrides:
- scrollByBlock in class BasicSliderUI
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature