public class MetalRangeSliderUI extends BasicRangeSliderUI
Modifier and Type | Class and Description |
---|---|
protected class |
MetalRangeSliderUI.MetalPropertyListener |
BasicRangeSliderUI.RangeSliderChangeListener, BasicRangeSliderUI.RangeSliderTrackListener
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener
Modifier and Type | Field and Description |
---|---|
protected static Color |
darkShadowColor |
protected boolean |
filledSlider |
protected static Color |
highlightColor |
protected static Icon |
horizThumbIcon |
protected String |
SLIDER_FILL |
protected static Color |
thumbColor |
protected int |
TICK_BUFFER |
protected static int |
tickLength |
protected static int |
trackWidth |
protected static Icon |
vertThumbIcon |
extRect, isDraggingExtent, isDraggingThumb, showExtent
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 and Description |
---|
MetalRangeSliderUI(JSlider b,
boolean showe) |
Modifier and Type | Method and Description |
---|---|
protected PropertyChangeListener |
createPropertyChangeListener(JSlider slider) |
static ComponentUI |
createUI(JComponent c) |
protected int |
getThumbOverhang()
Returns the amount that the thumb goes past the slide bar.
|
protected Dimension |
getThumbSize() |
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.
|
void |
installUI(JComponent c) |
void |
paintFocus(Graphics g) |
protected void |
paintMajorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x) |
protected void |
paintMajorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y) |
protected void |
paintMinorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x) |
protected void |
paintMinorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y) |
void |
paintThumbLocal(Graphics g) |
void |
paintTrack(Graphics g) |
protected void |
scrollDueToClickInTrack(int dir) |
calculateExtentLocation, calculateExtentSize, calculateGeometry, calculateLabelRect, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, createTrackListener, extentContains, getExtentSize, getPreferredSize, getRangeLeft, getRangeRight, paint, paintExtent, paintThumb, paintThumb, setExtentLocation, setRangeMax, setRangeMin, thumbContains, uninstallUI
calculateContentRect, calculateFocusRect, calculateThumbLocation, calculateThumbSize, createComponentListener, createFocusListener, createScrollListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredVerticalSize, getShadowColor, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, isDragging, labelsHaveSameBaselines, paintHorizontalLabel, paintLabels, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValue
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected final int TICK_BUFFER
protected boolean filledSlider
protected static Color thumbColor
protected static Color highlightColor
protected static Color darkShadowColor
protected static int trackWidth
protected static int tickLength
protected static Icon horizThumbIcon
protected static Icon vertThumbIcon
protected final String SLIDER_FILL
public MetalRangeSliderUI(JSlider b, boolean showe)
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
installUI
in class BasicRangeSliderUI
protected PropertyChangeListener createPropertyChangeListener(JSlider slider)
createPropertyChangeListener
in class BasicRangeSliderUI
public void paintThumbLocal(Graphics g)
paintThumbLocal
in class BasicRangeSliderUI
public void paintTrack(Graphics g)
paintTrack
in class BasicSliderUI
public void paintFocus(Graphics g)
paintFocus
in class BasicSliderUI
protected Dimension getThumbSize()
getThumbSize
in class BasicSliderUI
public int getTickLength()
getTickLength
in class BasicSliderUI
protected int getTrackWidth()
protected int getTrackLength()
protected int getThumbOverhang()
protected void scrollDueToClickInTrack(int dir)
scrollDueToClickInTrack
in class BasicSliderUI
protected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
paintMinorTickForHorizSlider
in class BasicSliderUI
protected void paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
paintMajorTickForHorizSlider
in class BasicSliderUI
protected void paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
paintMinorTickForVertSlider
in class BasicSliderUI
protected void paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
paintMajorTickForVertSlider
in class BasicSliderUI
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.