public class RangeSliderUI extends BasicSliderUI
| Modifier and Type | Class and Description |
|---|---|
class |
RangeSliderUI.ChangeHandler
Listener to handle model change events.
|
class |
RangeSliderUI.RangeTrackListener
Listener to handle mouse movements in the slider track.
|
BasicSliderUI.ActionScroller, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListenerchangeListener, 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 |
|---|
RangeSliderUI(RangeSlider b)
Constructs a RangeSliderUI for the specified slider component.
|
| 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.
|
protected Dimension |
getThumbSize()
Returns the size of a thumb.
|
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.
|
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createComponentListener, createFocusListener, createPropertyChangeListener, createScrollListener, createUI, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getTickLength, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, isDragging, labelsHaveSameBaselines, paintFocus, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollDueToClickInTrack, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValuecontains, getAccessibleChild, getAccessibleChildrenCount, updatepublic RangeSliderUI(RangeSlider b)
b - RangeSliderpublic void installUI(JComponent c)
installUI in class BasicSliderUIc - 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 BasicSliderUIprotected Dimension getThumbSize()
getThumbSize 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 BasicSliderUIg - The graphics to paint on.public void paintThumb(Graphics g)
paint() method.paintThumb in class BasicSliderUIg - 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.