| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public class | BasicSliderUI.
As of Java 2 platform v1.3 this undocumented class is no longer used. |
| public class | BasicSliderUI.
Data model listener. |
| public class | BasicSliderUI.
Listener for resizing events. |
| public class | BasicSliderUI.
Focus-change listener. |
| private class | |
| public class | BasicSliderUI.
A property change handler. |
| public class | BasicSliderUI.
Scroll-event listener. |
| pack-priv static class | BasicSliderUI.
A static version of the above. |
| public class | BasicSliderUI.
Track mouse movements. |
| Modifier and Type | Field and Description |
|---|---|
| protected ChangeListener | changeListener
Change listener |
| private boolean | checkedLabelBaselines
Whether or not sameLabelBaselines is up to date. |
| protected ComponentListener | componentListener
Component listener |
| protected Rectangle | contentRect
Content rectangle |
| private Color | |
| protected Insets | focusInsets
Focus insets |
| protected FocusListener | focusListener
Focus listener |
| protected Rectangle | focusRect
Focus rectangle |
| private BasicSliderUI. | |
| private Color | |
| protected Insets | insetCache
Inset cache |
| private transient boolean | |
| protected Rectangle | labelRect
Label rectangle |
| private int | |
| protected boolean | leftToRightCache
Left-to-right cache |
| public static final int | MAX_SCROLL
Maximum scroll |
| public static final int | MIN_SCROLL
Minimum scroll |
| public static final int | NEGATIVE_SCROLL
Negative scroll |
| public static final int | POSITIVE_SCROLL
Positive scroll |
| protected PropertyChangeListener | propertyChangeListener
Property change listener |
| private boolean | sameLabelBaselines
Whether or not all the entries in the labeltable have the same baseline. |
| protected BasicSliderUI. | scrollListener
Scroll listener |
| protected Timer | scrollTimer
Scroll timer |
| private Color | |
| private static final BasicSliderUI. | |
| protected JSlider | slider
Slider |
| protected Rectangle | thumbRect
Thumb rectangle |
| protected Rectangle | tickRect
Tick rectangle |
| protected int | trackBuffer
The distance that the track is from the side of the control |
| protected BasicSliderUI. | trackListener
Track listener |
| protected Rectangle | trackRect
Track rectangle |
| private static Rectangle |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected ChangeListener | |
| protected ComponentListener | Returns: a composite listenera slider slider)Creates a composite listener. |
| protected FocusListener | |
| protected PropertyChangeListener | Returns: a property change listenera slider slider)Creates a property change listener. |
| protected BasicSliderUI. | |
| protected BasicSliderUI. | |
| public static ComponentUI | Returns: a UIa component b)Hides javax. Creates a UI. |
| protected boolean | |
| public int | getBaseline(JComponent c, int width, int height)
Overrides javax. Returns the baseline. |
| public Component. | getBaselineResizeBehavior(JComponent c)
Overrides javax. Returns an enum indicating how the baseline of the component changes as the size changes. |
| protected Color | |
| private BasicSliderUI. | |
| protected int | Returns: the height of the highest value labelReturns the height of the highest value label. |
| protected int | Returns: the height of the lowest value labelReturns the height of the lowest value label. |
| protected int | Returns: the height of the tallest labelReturns the height of the tallest label. |
| protected Integer | Returns: biggest value that has an entry in the label table, or null.Returns the biggest value that has an entry in the label table. |
| protected Component | Returns: the label that corresponds to the lowest slider value in the label tableReturns the label that corresponds to the lowest slider value in the label table. |
| protected Color | |
| pack-priv InputMap | |
| protected Integer | Returns: smallest value that has an entry in the label table, or null.Returns the smallest value that has an entry in the label table. |
| protected Component | Returns: the label that corresponds to the highest slider value in the label tableReturns the label that corresponds to the highest slider value in the label table. |
| public Dimension | Returns: the maximum sizea component c)Overrides javax. Returns the maximum size. |
| public Dimension | |
| public Dimension | Returns: the minimum sizea component c)Overrides javax. Returns the minimum size. |
| public Dimension | |
| public Dimension | Returns: the preferred horizontal sizeReturns the preferred horizontal size. |
| public Dimension | Returns: the preferred sizea component c)Overrides javax. Returns the preferred size. |
| public Dimension | |
| protected Color | |
| protected Dimension | |
| protected int | Returns: an integer representing the height of the tick area for horizontal sliders, and the width of the tick area for the vertical slidersGets the height of the tick area for horizontal sliders and the width of the tick area for vertical sliders. |
| private int | |
| protected int | Returns: the width of the highest value labelReturns the width of the highest value label. |
| protected int | Returns: the width of the lowest value labelReturns the width of the lowest value label. |
| protected int | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| protected boolean | Returns: true if the user is dragging the sliderReturns true if the user is dragging the slider. |
| protected boolean | Returns: true if all the labels from the label table have the same baselineReturns true if all the labels from the label table have the same baseline. |
| pack-priv static void | |
| public void | paint(Graphics g, JComponent c)
Overrides javax. Paints the specified component appropriately for the look and feel. |
| public void | |
| protected void | paintHorizontalLabel(Graphics
the graphics context in which to paint g, int the value of the slider value, Component the component label in the label table that needs to be
painted label)Called for every label in the label table. |
| public void | |
| protected void | paintMajorTickForHorizSlider(Graphics
the graphics g, Rectangle the tick bounds tickBounds, int the x coordinate x)Paints major tick for horizontal slider. |
| protected void | paintMajorTickForVertSlider(Graphics
the graphics g, Rectangle the tick bounds tickBounds, int the y coordinate y)Paints major tick for vertical slider. |
| protected void | paintMinorTickForHorizSlider(Graphics
the graphics g, Rectangle the tick bounds tickBounds, int the x coordinate x)Paints minor tick for horizontal slider. |
| protected void | paintMinorTickForVertSlider(Graphics
the graphics g, Rectangle the tick bounds tickBounds, int the y coordinate y)Paints minor tick for vertical slider. |
| public void | |
| public void | |
| public void | |
| protected void | paintVerticalLabel(Graphics
the graphics context in which to paint g, int the value of the slider value, Component the component label in the label table that needs to be
painted label)Called for every label in the label table. |
| protected void | |
| protected void | |
| public void | |
| public void | |
| protected void | scrollDueToClickInTrack(int
the direction and number of blocks to scroll dir)This function is called when a mousePressed was detected in the track, not in the thumb. |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| public void | uninstallUI(JComponent
a component c)Overrides javax. Uninstalls a UI. |
| public int | Returns: the value of the x positionthe location of the slider along the x axis xPos)Returns the value at the x position. |
| public int | Returns: the value at the y positionthe location of the slider along the y axis yPos)Returns the value at the y position. |
| protected int | Returns: the x position for a valuethe value value)Returns the x position for a value. |
| protected int | Returns: the y position for a valuethe value value)Returns the y position for a value. |
| protected int | Returns: the y location for the specified value of the sliderthe slider value to get the location for value, int y-origin of the track trackY, int the height of the track trackHeight)Returns the y location for the specified value. |