public class WindowsRangeSliderUI
extends com.sun.java.swing.plaf.windows.WindowsSliderUI
| Modifier and Type | Class and Description |
|---|---|
protected class |
WindowsRangeSliderUI.RangeTrackListener |
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener| Modifier and Type | Field and 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| Constructor and Description |
|---|
WindowsRangeSliderUI(JSlider slider) |
| Modifier and Type | Method and 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) |
getThumbSize, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTrackcalculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbSize, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, createComponentListener, createFocusListener, createPropertyChangeListener, createScrollListener, 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, installUI, isDragging, labelsHaveSameBaselines, paintFocus, paintHorizontalLabel, paintLabels, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollDueToClickInTrack, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValuecontains, getAccessibleChild, getAccessibleChildrenCount, updateprotected 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 WindowsRangeSliderUI(JSlider slider)
public static ComponentUI createUI(JComponent slider)
public void paint(Graphics g, JComponent c)
paint in class BasicSliderUIprotected void restoreThumbForLowValue(Point p)
protected Point adjustThumbForHighValue()
protected void adjustSnapHighValue()
protected void calculateThumbLocation()
calculateThumbLocation in class BasicSliderUIprotected BasicSliderUI.TrackListener createTrackListener(JSlider slider)
createTrackListener in class com.sun.java.swing.plaf.windows.WindowsSliderUIprotected int getMouseHandle(int x,
int y)
public void paintThumb(Graphics g)
paintThumb in class com.sun.java.swing.plaf.windows.WindowsSliderUIprotected void setMouseRollover(int handle)
protected void setMousePressed(int handle)
protected void setMouseReleased(int handle)
public void scrollByBlock(int direction)
scrollByBlock in class BasicSliderUIpublic void scrollByUnit(int direction)
scrollByUnit in class BasicSliderUICopyright © 2017. All rights reserved.