| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private MetalBumps | bumps
The metal bumps. |
| private static Color | |
| protected MetalScrollButton | decreaseButton
The decrease button. |
| public static final String | FREE_STANDING_PROP
The property |
| private static Color | |
| protected MetalScrollButton | increaseButton
The increase button. |
| protected boolean | isFreeStanding
The value of the property |
| protected int | scrollBarWidth
Hides javax. |
| private static Color | |
| private static Color | |
| private static Color | |
| private static Color |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | configureScrollBarColors()
Overrides javax. Configures the scroll bar colors. |
| protected JButton | createDecreaseButton(int orientation)
Overrides javax. Returns the view that represents the decrease view. |
| protected JButton | createIncreaseButton(int orientation)
Overrides javax. Returns the view that represents the increase view. |
| protected PropertyChangeListener | createPropertyChangeListener()
Overrides javax. Creates a property change listener. |
| public static ComponentUI | Returns: a newMetalScrollBarUI instancea component c)Hides javax. Constructs a new |
| protected Dimension | getMinimumThumbSize()
Overrides javax. Returns the smallest acceptable size for the thumb. |
| public Dimension | getPreferredSize(JComponent c)
Overrides javax. A vertical scrollbar's preferred width is the maximum of
preferred widths of the (non |
| protected void | installDefaults()
Overrides javax. Installs the defaults. |
| protected void | installListeners()
Overrides javax. Installs the listeners. |
| private void | |
| protected void | paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
Overrides javax. Paints the thumb. |
| protected void | paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
Overrides javax. Paints the track. |
| protected void | setThumbBounds(int x, int y, int width, int height)
Overrides javax. This is overridden only to increase the invalid area. |
| bumps | back to summary |
|---|---|
| private MetalBumps bumps The metal bumps. | |
| darkShadowColor | back to summary |
|---|---|
| private static Color darkShadowColor | |
| decreaseButton | back to summary |
|---|---|
| protected MetalScrollButton decreaseButton The decrease button. | |
| FREE_STANDING_PROP | back to summary |
|---|---|
| public static final String FREE_STANDING_PROP The property | |
| highlightColor | back to summary |
|---|---|
| private static Color highlightColor | |
| increaseButton | back to summary |
|---|---|
| protected MetalScrollButton increaseButton The increase button. | |
| isFreeStanding | back to summary |
|---|---|
| protected boolean isFreeStanding The value of the property | |
| scrollBarWidth | back to summary |
|---|---|
| protected int scrollBarWidth Hides javax. The width of the scroll bar. | |
| shadowColor | back to summary |
|---|---|
| private static Color shadowColor | |
| thumbColor | back to summary |
|---|---|
| private static Color thumbColor | |
| thumbHighlightColor | back to summary |
|---|---|
| private static Color thumbHighlightColor Hides javax. | |
| thumbShadow | back to summary |
|---|---|
| private static Color thumbShadow | |
| MetalScrollBarUI | back to summary |
|---|---|
| public MetalScrollBarUI() Constructs a | |
| configureScrollBarColors | back to summary |
|---|---|
| protected void configureScrollBarColors() Overrides javax. Doc from javax. Configures the scroll bar colors. | |
| createDecreaseButton | back to summary |
|---|---|
| protected JButton createDecreaseButton(int orientation) Overrides javax. Returns the view that represents the decrease view. | |
| createIncreaseButton | back to summary |
|---|---|
| protected JButton createIncreaseButton(int orientation) Overrides javax. Returns the view that represents the increase view. | |
| createPropertyChangeListener | back to summary |
|---|---|
| protected PropertyChangeListener createPropertyChangeListener() Overrides javax. Doc from javax. Creates a property change listener. | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Constructs a new
| |
| getMinimumThumbSize | back to summary |
|---|---|
| protected Dimension getMinimumThumbSize() Overrides javax. Doc from javax. Returns the smallest acceptable size for the thumb. If the scrollbar becomes so small that this size isn't available, the thumb will be hidden. Warning the value returned by this method should not be be modified, it's a shared static constant. | |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize(JComponent c) Overrides javax. Doc from javax. A vertical scrollbar's preferred width is the maximum of
preferred widths of the (non
The | |
| installDefaults | back to summary |
|---|---|
| protected void installDefaults() Overrides javax. Doc from javax. Installs the defaults. | |
| installListeners | back to summary |
|---|---|
| protected void installListeners() Overrides javax. Doc from javax. Installs the listeners. | |
| oceanPaintThumb | back to summary |
|---|---|
| private void oceanPaintThumb(Graphics g, JComponent c, Rectangle thumbBounds) | |
| paintThumb | back to summary |
|---|---|
| protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) Overrides javax. Doc from javax. Paints the thumb. | |
| paintTrack | back to summary |
|---|---|
| protected void paintTrack(Graphics g, JComponent c, Rectangle trackBounds) Overrides javax. Doc from javax. Paints the track. | |
| setThumbBounds | back to summary |
|---|---|
| protected void setThumbBounds(int x, int y, int width, int height) Overrides javax. This is overridden only to increase the invalid area. This ensures that the "Shadow" below the thumb is invalidated | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | propertyChange(PropertyChangeEvent e)
Overrides javax. Implements java. This method gets called when a bound property is changed. |
| protected void | |
| protected void |
| ScrollBarListener | back to summary |
|---|---|
| pack-priv ScrollBarListener() | |
| handlePropertyChange | back to summary |
|---|---|
| public void handlePropertyChange(Object newValue) | |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Overrides javax. Implements java. Doc from javax. This method gets called when a bound property is changed. | |
| toFlush | back to summary |
|---|---|
| protected void toFlush() | |
| toFreeStanding | back to summary |
|---|---|
| protected void toFreeStanding() | |