Class HudSliderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SliderUI
javax.swing.plaf.basic.BasicSliderUI
com.explodingpixels.macwidgets.plaf.HudSliderUI
Creates a Heads Up Display (HUD) style slider, similar to that seen in various iApps
(e.g. iPhoto).


-
Nested Class Summary
Nested 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
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 voidprotected voidprotected Dimensionprotected intprotected voidinstallDefaults(JSlider slider) voidpaint(Graphics g, JComponent c) voidprotected voidpaintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) voidpaintThumb(Graphics graphics) voidpaintTrack(Graphics graphics) voidsetThumbLocation(int x, int y) Methods inherited from class javax.swing.plaf.basic.BasicSliderUI
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbSize, calculateTrackBuffer, calculateTrackRect, createChangeListener, createComponentListener, createFocusListener, createPropertyChangeListener, createScrollListener, createTrackListener, createUI, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installKeyboardActions, installListeners, installUI, isDragging, labelsHaveSameBaselines, paintHorizontalLabel, paintLabels, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, scrollDueToClickInTrack, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValueMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Constructor Details
-
HudSliderUI
-
-
Method Details
-
installDefaults
- Overrides:
installDefaultsin classBasicSliderUI
-
getThumbSize
- Overrides:
getThumbSizein classBasicSliderUI
-
paint
- Overrides:
paintin classBasicSliderUI
-
paintThumb
- Overrides:
paintThumbin classBasicSliderUI
-
paintTrack
- Overrides:
paintTrackin classBasicSliderUI
-
getTickLength
protected int getTickLength()- Overrides:
getTickLengthin classBasicSliderUI
-
calculateThumbLocation
protected void calculateThumbLocation()- Overrides:
calculateThumbLocationin classBasicSliderUI
-
calculateTickRect
protected void calculateTickRect()- Overrides:
calculateTickRectin classBasicSliderUI
-
paintMajorTickForHorizSlider
- Overrides:
paintMajorTickForHorizSliderin classBasicSliderUI
-
setThumbLocation
public void setThumbLocation(int x, int y) - Overrides:
setThumbLocationin classBasicSliderUI
-
paintFocus
- Overrides:
paintFocusin classBasicSliderUI
-