public class MetalRangeSliderUI extends MetalSliderUI
| Modifier and Type | Class and Description |
|---|---|
class |
MetalRangeSliderUI.ChangeHandler
Listener to handle model change events.
|
class |
MetalRangeSliderUI.RangeTrackListener
Listener to handle mouse movements in the slider track.
|
MetalSliderUI.MetalPropertyListenerBasicSliderUI.ActionScroller, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListenerdarkShadowColor, filledSlider, highlightColor, horizThumbIcon, SLIDER_FILL, thumbColor, TICK_BUFFER, tickLength, trackWidth, vertThumbIconchangeListener, 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 and Description |
|---|
MetalRangeSliderUI() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateThumbLocation()
Updates the locations for both thumbs.
|
protected void |
calculateThumbSize()
Updates the dimensions for both thumbs.
|
protected ChangeListener |
createChangeListener(JSlider slider)
Creates a listener to handle change events in the specified slider.
|
protected BasicSliderUI.TrackListener |
createTrackListener(JSlider slider)
Creates a listener to handle track events in the specified slider.
|
void |
installUI(JComponent c)
Installs this UI delegate on the specified component.
|
void |
paint(Graphics g,
JComponent c)
Paints the slider.
|
void |
paintThumb(Graphics g)
Overrides superclass method to do nothing.
|
void |
paintTrack(Graphics g)
Paints the track.
|
void |
scrollByBlock(int direction)
Moves the selected thumb in the specified direction by a block increment.
|
void |
scrollByUnit(int direction)
Moves the selected thumb in the specified direction by a unit increment.
|
createPropertyChangeListener, createUI, getThumbOverhang, getThumbSize, getTickLength, getTrackLength, getTrackWidth, paintFocus, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, scrollDueToClickInTrackcalculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createComponentListener, createFocusListener, createScrollListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, isDragging, labelsHaveSameBaselines, paintHorizontalLabel, paintLabels, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValuecontains, getAccessibleChild, getAccessibleChildrenCount, updatepublic void installUI(JComponent c)
installUI in class MetalSliderUIc - The component which this UI is installed on.protected BasicSliderUI.TrackListener createTrackListener(JSlider slider)
createTrackListener in class BasicSliderUIslider - The slider to handle track events for.protected ChangeListener createChangeListener(JSlider slider)
createChangeListener in class BasicSliderUIslider - The slider to handle change events for.protected void calculateThumbSize()
calculateThumbSize in class BasicSliderUIprotected void calculateThumbLocation()
calculateThumbLocation in class BasicSliderUIpublic void paint(Graphics g, JComponent c)
paint in class BasicSliderUIg - The graphics to paint on.c - Will not be used.public void paintTrack(Graphics g)
paintTrack in class MetalSliderUIg - The graphics to paint on.public void paintThumb(Graphics g)
paint() method.paintThumb in class MetalSliderUIg - The graphics to (not) paint on.public void scrollByBlock(int direction)
scrollByBlock in class BasicSliderUIdirection - The direction (> 0 means scroll in positive direction, <= 0 scrolls in negative direction).public void scrollByUnit(int direction)
scrollByUnit in class BasicSliderUIdirection - The direction (> 0 means scroll in positive direction, <= 0 scrolls in negative direction).Copyright © 2012–2026 cismet GmbH. All rights reserved.