Package com.jidesoft.plaf.metal
Class MetalRangeSliderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SliderUI
javax.swing.plaf.basic.BasicSliderUI
javax.swing.plaf.metal.MetalSliderUI
com.jidesoft.plaf.metal.MetalRangeSliderUI
BasicRangeSliderUI implementation
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class javax.swing.plaf.metal.MetalSliderUI
MetalSliderUI.MetalPropertyListenerNested 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 booleanprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanFields inherited from class javax.swing.plaf.metal.MetalSliderUI
darkShadowColor, filledSlider, highlightColor, horizThumbIcon, SLIDER_FILL, thumbColor, TICK_BUFFER, tickLength, trackWidth, vertThumbIconFields 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 voidprotected Pointprotected voidprotected BasicSliderUI.TrackListenercreateTrackListener(JSlider slider) static ComponentUIcreateUI(JComponent slider) protected intgetMouseHandle(int x, int y) voidpaint(Graphics g, JComponent c) voidprotected voidvoidscrollByBlock(int direction) voidscrollByUnit(int direction) protected voidsetMousePressed(int handle) protected voidsetMouseReleased(int handle) protected voidsetMouseRollover(int handle) Methods inherited from class javax.swing.plaf.metal.MetalSliderUI
createPropertyChangeListener, getThumbOverhang, getThumbSize, getTickLength, getTrackLength, getTrackWidth, installUI, paintFocus, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTrack, scrollDueToClickInTrackMethods inherited from class javax.swing.plaf.basic.BasicSliderUI
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, yPositionForValueMethods 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
-
MetalRangeSliderUI
-
-
Method Details
-
createUI
-
paint
- Overrides:
paintin classBasicSliderUI
-
restoreThumbForLowValue
-
adjustThumbForHighValue
-
adjustSnapHighValue
protected void adjustSnapHighValue() -
calculateThumbLocation
protected void calculateThumbLocation()- Overrides:
calculateThumbLocationin classBasicSliderUI
-
createTrackListener
- Overrides:
createTrackListenerin classBasicSliderUI
-
getMouseHandle
protected int getMouseHandle(int x, int y) -
paintThumb
- Overrides:
paintThumbin classMetalSliderUI
-
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:
scrollByBlockin classBasicSliderUI
-
scrollByUnit
public void scrollByUnit(int direction) - Overrides:
scrollByUnitin classBasicSliderUI
-