java.lang.Object | ||||
↳ | javax.swing.plaf.ComponentUI | |||
↳ | javax.swing.plaf.SliderUI | |||
↳ | javax.swing.plaf.basic.BasicSliderUI | |||
↳ | javax.swing.plaf.metal.MetalSliderUI |
A Java L&F implementation of SliderUI.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MetalSliderUI.MetalPropertyListener |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SLIDER_FILL | |||||||||||
TICK_BUFFER | |||||||||||
darkShadowColor | |||||||||||
filledSlider | |||||||||||
highlightColor | |||||||||||
horizThumbIcon | A default horizontal thumb Icon . |
||||||||||
thumbColor | |||||||||||
tickLength | |||||||||||
trackWidth | |||||||||||
vertThumbIcon | A default vertical thumb Icon . |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the height of the tick area for horizontal sliders and the width of the
tick area for vertical sliders.
| |||||||||||
Configures the specified component appropriate for the look and feel.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the amount that the thumb goes past the slide bar.
| |||||||||||
Returns the longer dimension of the slide bar.
| |||||||||||
Returns the shorter dimension of the track.
| |||||||||||
This function is called when a mousePressed was detected in the track, not
in the thumb.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
A default horizontal thumb Icon
. This field might not be
used. To change the Icon
used by this delgate directly set it
using the Slider.horizontalThumbIcon
UIManager property.
A default vertical thumb Icon
. This field might not be
used. To change the Icon
used by this delgate directly set it
using the Slider.verticalThumbIcon
UIManager property.
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 tick area rectangle.
Configures the specified component appropriate for the look and feel.
This method is invoked when the ComponentUI
instance is being installed
as the UI delegate on the specified component. This method should
completely configure the component for the look and feel,
including the following:
LayoutManager
on the component if necessary.
PropertyChangeListener
on the component in order
to detect and respond to component property changes appropriately.
c | the component where this UI delegate is being installed |
---|
Returns the amount that the thumb goes past the slide bar.
Returns the longer dimension of the slide bar. (The slide bar is only the part that runs directly under the thumb)
Returns the shorter dimension of the track.
This function is called when a mousePressed was detected in the track, not in the thumb. The default behavior is to scroll by block. You can override this method to stop it from scrolling or to add additional behavior.