Package com.jidesoft.plaf.basic
Class BasicRangeSliderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SliderUI
javax.swing.plaf.basic.BasicSliderUI
com.jidesoft.plaf.basic.BasicRangeSliderUI
BasicRangeSliderUI implementation
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class javax.swing.plaf.basic.BasicSliderUI
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
Fields inherited from class javax.swing.plaf.basic.BasicSliderUI
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected Point
protected void
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
protected void
void
scrollByBlock
(int direction) void
scrollByUnit
(int direction) protected void
setMousePressed
(int handle) protected void
setMouseReleased
(int handle) protected void
setMouseRollover
(int handle) Methods inherited from class javax.swing.plaf.basic.BasicSliderUI
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, getThumbSize, getTickLength, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, installUI, isDragging, labelsHaveSameBaselines, paintFocus, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTicks, paintTrack, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollDueToClickInTrack, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValue
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Field Details
-
MOUSE_HANDLE_NONE
protected static final int MOUSE_HANDLE_NONE- See Also:
-
MOUSE_HANDLE_MIN
protected static final int MOUSE_HANDLE_MIN- See Also:
-
MOUSE_HANDLE_MAX
protected static final int MOUSE_HANDLE_MAX- See Also:
-
MOUSE_HANDLE_MIDDLE
protected static final int MOUSE_HANDLE_MIDDLE- See Also:
-
MOUSE_HANDLE_LOWER
protected static final int MOUSE_HANDLE_LOWER- See Also:
-
MOUSE_HANDLE_UPPER
protected static final int MOUSE_HANDLE_UPPER- See Also:
-
MOUSE_HANDLE_BOTH
protected static final int MOUSE_HANDLE_BOTH- See Also:
-
hover
protected boolean hover -
second
protected boolean second -
rollover1
protected boolean rollover1 -
pressed1
protected boolean pressed1 -
rollover2
protected boolean rollover2 -
pressed2
protected boolean pressed2
-
-
Constructor Details
-
BasicRangeSliderUI
-
-
Method Details
-
createUI
-
paint
- Overrides:
paint
in classBasicSliderUI
-
restoreThumbForLowValue
-
adjustThumbForHighValue
-
adjustSnapHighValue
protected void adjustSnapHighValue() -
calculateThumbLocation
protected void calculateThumbLocation()- Overrides:
calculateThumbLocation
in classBasicSliderUI
-
createTrackListener
- Overrides:
createTrackListener
in classBasicSliderUI
-
getMouseHandle
protected int getMouseHandle(int x, int y) -
paintThumb
- Overrides:
paintThumb
in classBasicSliderUI
-
setMouseRollover
protected void setMouseRollover(int handle) -
setMousePressed
protected void setMousePressed(int handle) -
setMouseReleased
protected void setMouseReleased(int handle) -
scrollByBlock
public void scrollByBlock(int direction) - Overrides:
scrollByBlock
in classBasicSliderUI
-
scrollByUnit
public void scrollByUnit(int direction) - Overrides:
scrollByUnit
in classBasicSliderUI
-