| Modifier and Type | Class and Description |
|---|---|
| private static class | BasicScrollBarUI.
Used for scrolling the scrollbar. |
| protected class | BasicScrollBarUI.
Listener for cursor keys. |
| private class | |
| protected class | BasicScrollBarUI.
A listener to listen for model changes. |
| public class | BasicScrollBarUI.
Property change handler |
| protected class | BasicScrollBarUI.
Listener for scrolling events initiated in the
|
| protected class | BasicScrollBarUI.
Track mouse drags. |
| Modifier and Type | Field and Description |
|---|---|
| protected BasicScrollBarUI. | buttonListener
Button listener |
| protected JButton | decrButton
Decrement button |
| protected static final int | DECREASE_HIGHLIGHT
Decrease highlight |
| protected int | decrGap
Distance between the decrement button and the track. |
| private BasicScrollBarUI. | |
| protected JButton | incrButton
Increment button |
| protected static final int | INCREASE_HIGHLIGHT
Increase highlight |
| protected int | incrGap
Distance between the increment button and the track. |
| protected boolean | isDragging
Dragging |
| private static final int | |
| protected Dimension | maximumThumbSize
Maximum thumb size |
| private static final int | |
| protected Dimension | minimumThumbSize
Minimum thumb size |
| protected BasicScrollBarUI. | modelListener
Model listener |
| private static final int | |
| protected static final int | NO_HIGHLIGHT
No highlight |
| private static final int | |
| protected PropertyChangeListener | propertyChangeListener
Property change listener |
| protected JScrollBar | scrollbar
Scrollbar |
| private int | scrollBarValue
The scrollbar value is cached to save real value if the view is adjusted. |
| protected int | scrollBarWidth
Hint as to what width (when vertical) or height (when horizontal) should be. |
| protected BasicScrollBarUI. | scrollListener
Scroll listener |
| private static final int | |
| protected Timer | scrollTimer
Scroll timer |
| private boolean | supportsAbsolutePositioning
True indicates a middle click will absolutely position the scrollbar. |
| private boolean | |
| protected Color | thumbColor
Thumb color |
| protected Color | thumbDarkShadowColor
Thumb dark shadow color |
| protected Color | thumbHighlightColor
Thumb highlight color |
| protected Color | thumbLightShadowColor
Thumb light shadow color |
| protected Rectangle | thumbRect
Thumb rectangle |
| protected Color | trackColor
Track color |
| protected int | trackHighlight
Track highlight |
| protected Color | trackHighlightColor
Track highlight color |
| protected BasicScrollBarUI. | trackListener
Track listener |
| protected Rectangle | trackRect
Track rectangle |
| private boolean | useCachedValue
Determine whether scrollbar layout should use cached value or adjusted
value returned by scrollbar's |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addLayoutComponent(String name, Component child)
Implements java. If the layout manager uses a per-component string,
adds the component |
| protected void | |
| protected BasicScrollBarUI. | |
| protected JButton | Returns: a decrease buttonthe orientation orientation)Creates a decrease button. |
| protected JButton | Returns: an increase buttonthe orientation orientation)Creates an increase button. |
| protected BasicScrollBarUI. | |
| protected PropertyChangeListener | Returns: a property change listenerCreates a property change listener. |
| protected BasicScrollBarUI. | |
| protected BasicScrollBarUI. | |
| public static ComponentUI | Returns: the UIthe component c)Hides javax. Creates the UI. |
| private BasicScrollBarUI. | |
| private InputMap | |
| public Dimension | Returns: new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);The JScrollBar that's delegating this method to us. c)Overrides javax. Returns the specified component's maximum size appropriate for the look and feel. |
| protected Dimension | Returns: The largest acceptable size for the thumb.Returns the largest acceptable size for the thumb. |
| protected Dimension | Returns: The smallest acceptable size for the thumb.Returns the smallest acceptable size for the thumb. |
| public Dimension | Returns: the preferred size of a Basic JScrollBarthe c)JScrollBar that's delegating this method to usOverrides javax. A vertical scrollbar's preferred width is the maximum of
preferred widths of the (non |
| public boolean | Returns: true if a mouse gesture can absolutely position the thumbIndicates whether the user can absolutely position the thumb with a mouse gesture (usually the middle mouse button). |
| protected Rectangle | Returns: The current size/location of the thumb.Return the current size/location of the thumb. |
| protected Rectangle | Returns: the current bounds of the scrollbar trackReturns the current bounds of the track, i.e. the space in between the increment and decrement buttons, less the insets. |
| private int | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | installUI(JComponent
the component c)Overrides javax. Installs the UI. |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| public boolean | Returns: true if the thumb is currently activeReturns true if the mouse is currently over the thumb. |
| public void | layoutContainer(Container scrollbarContainer)
Implements java. Lays out the specified container. |
| protected void | |
| protected void | |
| pack-priv static void | |
| public Dimension | minimumLayoutSize(Container scrollbarContainer)
Implements java. Calculates the minimum size dimensions for the specified container, given the components it contains. |
| public void | paint(Graphics g, JComponent c)
Overrides javax. Paints the specified component appropriately for the look and feel. |
| protected void | |
| protected void | |
| protected void | paintThumb(Graphics
the graphics g, JComponent the component c, Rectangle the thumb bounds thumbBounds)Paints the thumb. |
| protected void | paintTrack(Graphics
the graphics g, JComponent the component c, Rectangle the track bounds trackBounds)Paints the track. |
| public Dimension | preferredLayoutSize(Container scrollbarContainer)
Implements java. Calculates the preferred size dimensions for the specified container, given the components it contains. |
| public void | removeLayoutComponent(Component child)
Implements java. Removes the specified component from the layout. |
| pack-priv static void | |
| protected void | |
| protected void | |
| pack-priv static void | |
| private void | |
| protected void | setThumbBounds(int
set the x location of the thumb x, int set the y location of the thumb y, int set the width of the thumb width, int set the height of the thumb height)Set the bounds of the thumb and force a repaint that includes the old thumbBounds and the new one. |
| protected void | setThumbRollover(boolean
True indicates the thumb is currently active. active)Sets whether or not the mouse is currently over the thumb. |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | uninstallUI(JComponent
the component c)Overrides javax. Uninstalls the UI. |
| private void | |
| private void |