public class WindowsRangeSliderUI
extends com.sun.java.swing.plaf.windows.WindowsSliderUI
Modifier and Type | Class | Description |
---|---|---|
protected class |
WindowsRangeSliderUI.RangeTrackListener |
javax.swing.plaf.basic.BasicSliderUI.ActionScroller, javax.swing.plaf.basic.BasicSliderUI.ChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ComponentHandler, javax.swing.plaf.basic.BasicSliderUI.FocusHandler, javax.swing.plaf.basic.BasicSliderUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ScrollListener, javax.swing.plaf.basic.BasicSliderUI.TrackListener
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
Constructor | Description |
---|---|
WindowsRangeSliderUI(javax.swing.JSlider slider) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
adjustSnapHighValue() |
|
protected java.awt.Point |
adjustThumbForHighValue() |
|
protected void |
calculateThumbLocation() |
|
protected javax.swing.plaf.basic.BasicSliderUI.TrackListener |
createTrackListener(javax.swing.JSlider slider) |
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent slider) |
|
protected int |
getMouseHandle(int x,
int y) |
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
|
void |
paintThumb(java.awt.Graphics g) |
|
protected void |
restoreThumbForLowValue(java.awt.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, 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, yPositionForValue
contains, getAccessibleChild, getAccessibleChildrenCount, update
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 static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent slider)
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicSliderUI
protected void restoreThumbForLowValue(java.awt.Point p)
protected java.awt.Point adjustThumbForHighValue()
protected void adjustSnapHighValue()
protected void calculateThumbLocation()
calculateThumbLocation
in class javax.swing.plaf.basic.BasicSliderUI
protected javax.swing.plaf.basic.BasicSliderUI.TrackListener createTrackListener(javax.swing.JSlider slider)
createTrackListener
in class com.sun.java.swing.plaf.windows.WindowsSliderUI
protected int getMouseHandle(int x, int y)
public void paintThumb(java.awt.Graphics g)
paintThumb
in class com.sun.java.swing.plaf.windows.WindowsSliderUI
protected void setMouseRollover(int handle)
protected void setMousePressed(int handle)
protected void setMouseReleased(int handle)
public void scrollByBlock(int direction)
scrollByBlock
in class javax.swing.plaf.basic.BasicSliderUI
public void scrollByUnit(int direction)
scrollByUnit
in class javax.swing.plaf.basic.BasicSliderUI