public class MetalSliderUI extends BasicSliderUI
 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 JavaBeans has been added to the java.beans package. Please see XMLEncoder.
| Modifier and Type | Class | Description | 
|---|---|---|
| protected class  | MetalSliderUI.MetalPropertyListener | PropertyListenerforJSlider.isFilled. | 
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener
| Modifier and Type | Field | Description | 
|---|---|---|
| protected static Color | darkShadowColor | The color of dark shadow. | 
| protected boolean | filledSlider | The value of the property  JSlider.isFilled. | 
| protected static Color | highlightColor | The color of highlighting. | 
| protected static Icon | horizThumbIcon | A default horizontal thumb  Icon. | 
| protected final String | SLIDER_FILL | Property for  JSlider.isFilled. | 
| protected static Color | thumbColor | The color of a thumb | 
| protected final int | TICK_BUFFER | The buffer of a tick. | 
| protected static int | tickLength | The length of a tick. | 
| protected static int | trackWidth | The width of a track. | 
| protected static Icon | vertThumbIcon | A default vertical thumb  Icon. | 
changeListener, componentListener, contentRect, focusInsets, focusListener, focusRect, insetCache, labelRect, leftToRightCache, MAX_SCROLL, MIN_SCROLL, NEGATIVE_SCROLL, POSITIVE_SCROLL, propertyChangeListener, scrollListener, scrollTimer, slider, thumbRect, tickRect, trackBuffer, trackListener, trackRect
| Constructor | Description | 
|---|---|
| MetalSliderUI() | Constructs a  MetalSliderUIinstance. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected PropertyChangeListener | createPropertyChangeListener | Constructs  MetalPropertyListener. | 
| static ComponentUI | createUI | Constructs a  MetalSliderUIinstance. | 
| protected int | getThumbOverhang() | Returns the amount that the thumb goes past the slide bar. | 
| int | getTickLength() | Gets the height of the tick area for horizontal sliders and the width of the tick area for vertical sliders. | 
| protected int | getTrackLength() | Returns the longer dimension of the slide bar. | 
| protected int | getTrackWidth() | Returns the shorter dimension of the track. | 
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbLocation, calculateThumbSize, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, createComponentListener, createFocusListener, createScrollListener, createTrackListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getThumbSize, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, installUI, isDragging, labelsHaveSameBaselines, paintFocus, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintThumb, paintTicks, paintTrack, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, scrollDueToClickInTrack, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValue
contains, getAccessibleChild, getAccessibleChildrenCount, paint, update
protected final int TICK_BUFFER
protected boolean filledSlider
JSlider.isFilled. By default, false if the property is not set, true for Ocean theme.protected static Color thumbColor
protected static Color highlightColor
protected static Color darkShadowColor
protected static int trackWidth
protected static int tickLength
protected static Icon horizThumbIcon
Icon. This field might not be used. To change the Icon used by this delegate directly set it using the Slider.horizontalThumbIcon UIManager property.protected static Icon vertThumbIcon
Icon. This field might not be used. To change the Icon used by this delegate directly set it using the Slider.verticalThumbIcon UIManager property.protected final String SLIDER_FILL
JSlider.isFilled.public MetalSliderUI()
MetalSliderUI instance.public static ComponentUI createUI(JComponent c)
MetalSliderUI instance.c - a componentMetalSliderUI instanceprotected PropertyChangeListener createPropertyChangeListener(JSlider slider)
MetalPropertyListener.createPropertyChangeListener in class BasicSliderUI
slider - a JSlider
MetalPropertyListener
public int getTickLength()
getTickLength in class BasicSliderUI
protected int getTrackWidth()
protected int getTrackLength()
protected int getThumbOverhang()
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/metal/MetalSliderUI.html