public class MetalRangeSliderUI extends MetalSliderUI
Modifier and Type | Class | Description |
---|---|---|
protected class |
MetalRangeSliderUI.RangeTrackListener |
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener
MetalSliderUI.MetalPropertyListener
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
hover |
|
protected static int |
MOUSE_HANDLE_BOTH |
|
protected static int |
MOUSE_HANDLE_LOWER |
|
protected static int |
MOUSE_HANDLE_MAX |
|
protected static int |
MOUSE_HANDLE_MIDDLE |
|
protected static int |
MOUSE_HANDLE_MIN |
|
protected static int |
MOUSE_HANDLE_NONE |
|
protected static int |
MOUSE_HANDLE_UPPER |
|
protected boolean |
pressed1 |
|
protected boolean |
pressed2 |
|
protected boolean |
rollover1 |
|
protected boolean |
rollover2 |
|
protected boolean |
second |
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
darkShadowColor, filledSlider, highlightColor, horizThumbIcon, SLIDER_FILL, thumbColor, TICK_BUFFER, tickLength, trackWidth, vertThumbIcon
Constructor | Description |
---|---|
MetalRangeSliderUI(JSlider slider) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
adjustSnapHighValue() |
|
protected Point |
adjustThumbForHighValue() |
|
protected void |
calculateThumbLocation() |
|
protected BasicSliderUI.TrackListener |
createTrackListener(JSlider slider) |
|
static ComponentUI |
createUI(JComponent slider) |
|
protected int |
getMouseHandle(int x,
int y) |
|
void |
paint(Graphics g,
JComponent c) |
|
void |
paintThumb(Graphics g) |
|
protected void |
restoreThumbForLowValue(Point p) |
|
void |
scrollByBlock(int direction) |
|
void |
scrollByUnit(int direction) |
|
protected void |
setMousePressed(int handle) |
|
protected void |
setMouseReleased(int handle) |
|
protected void |
setMouseRollover(int handle) |
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbSize, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, 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, yPositionForValue
contains, getAccessibleChild, getAccessibleChildrenCount, update
createPropertyChangeListener, getThumbOverhang, getThumbSize, getTickLength, getTrackLength, getTrackWidth, installUI, paintFocus, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTrack, scrollDueToClickInTrack
protected static final int MOUSE_HANDLE_NONE
protected static final int MOUSE_HANDLE_MIN
protected static final int MOUSE_HANDLE_MAX
protected static final int MOUSE_HANDLE_MIDDLE
protected static final int MOUSE_HANDLE_LOWER
protected static final int MOUSE_HANDLE_UPPER
protected static final int MOUSE_HANDLE_BOTH
protected boolean hover
protected boolean second
protected boolean rollover1
protected boolean pressed1
protected boolean rollover2
protected boolean pressed2
public MetalRangeSliderUI(JSlider slider)
public static ComponentUI createUI(JComponent slider)
public void paint(Graphics g, JComponent c)
paint
in class BasicSliderUI
protected void restoreThumbForLowValue(Point p)
protected Point adjustThumbForHighValue()
protected void adjustSnapHighValue()
protected void calculateThumbLocation()
calculateThumbLocation
in class BasicSliderUI
protected BasicSliderUI.TrackListener createTrackListener(JSlider slider)
createTrackListener
in class BasicSliderUI
protected int getMouseHandle(int x, int y)
public void paintThumb(Graphics g)
paintThumb
in class MetalSliderUI
protected void setMouseRollover(int handle)
protected void setMousePressed(int handle)
protected void setMouseReleased(int handle)
public void scrollByBlock(int direction)
scrollByBlock
in class BasicSliderUI
public void scrollByUnit(int direction)
scrollByUnit
in class BasicSliderUI