java.lang.Object | ||||
↳ | javax.swing.plaf.ComponentUI | |||
↳ | javax.swing.plaf.ScrollBarUI | |||
↳ | javax.swing.plaf.basic.BasicScrollBarUI | |||
↳ | javax.swing.plaf.metal.MetalScrollBarUI |
Implementation of ScrollBarUI for the Metal Look and Feel
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | FREE_STANDING_PROP |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bumps | |||||||||||
decreaseButton | |||||||||||
increaseButton | |||||||||||
isFreeStanding | |||||||||||
scrollBarWidth |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A vertical scrollbar's preferred width is the maximum of
preferred widths of the (non
null )
increment/decrement buttons,
and the minimum width of the thumb. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the view that represents the decrease view.
| |||||||||||
Returns the view that represents the increase view.
| |||||||||||
Return the smallest acceptable size for the thumb.
| |||||||||||
This is overridden only to increase the invalid area.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
A vertical scrollbar's preferred width is the maximum of
preferred widths of the (non null
)
increment/decrement buttons,
and the minimum width of the thumb. The preferred height is the
sum of the preferred heights of the same parts. The basis for
the preferred size of a horizontal scrollbar is similar.
The preferredSize
is only computed once, subsequent
calls to this method just return a cached size.
c | the JScrollBar that's delegating this method to us |
---|
Returns the view that represents the decrease view.
Returns the view that represents the increase view.
Return 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.
This is overridden only to increase the invalid area. This ensures that the "Shadow" below the thumb is invalidated