Package com.jtattoo.plaf
Class BaseSliderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SliderUI
javax.swing.plaf.basic.BasicSliderUI
com.jtattoo.plaf.BaseSliderUI
- Direct Known Subclasses:
AluminiumSliderUI
,BernsteinSliderUI
,FastSliderUI
,HiFiSliderUI
,McWinSliderUI
,TextureSliderUI
BaseSliderUI class.
Author Michael Hagen-
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
-
Method Summary
Modifier and TypeMethodDescriptioncreateTrackListener
(JSlider slider) static ComponentUI
getThumbHorIcon.getThumbHorIconRollover.protected Dimension
getThumbVerIcon.getThumbVerIconRollover.protected int
getTrackWidth.protected boolean
void
paint
(Graphics g, JComponent c) void
paintBackground.void
void
void
Methods inherited from class javax.swing.plaf.basic.BasicSliderUI
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbLocation, 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, labelsHaveSameBaselines, paintFocus, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, 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
-
isRollover
protected boolean isRollover
-
-
Constructor Details
-
BaseSliderUI
Constructor for BaseSliderUI.
- Parameters:
slider
- aJSlider
object.
-
-
Method Details
-
createUI
-
createTrackListener
- Overrides:
createTrackListener
in classBasicSliderUI
-
getThumbHorIcon
getThumbHorIcon.
- Returns:
- a
Icon
object.
-
getThumbHorIconRollover
getThumbHorIconRollover.
- Returns:
- a
Icon
object.
-
getThumbSize
- Overrides:
getThumbSize
in classBasicSliderUI
-
getThumbVerIcon
getThumbVerIcon.
- Returns:
- a
Icon
object.
-
getThumbVerIconRollover
getThumbVerIconRollover.
- Returns:
- a
Icon
object.
-
getTrackWidth
protected int getTrackWidth()getTrackWidth.
- Returns:
- a
Integer
object.
-
isDragging
protected boolean isDragging()- Overrides:
isDragging
in classBasicSliderUI
-
paint
- Overrides:
paint
in classBasicSliderUI
-
paintBackground
paintBackground.
- Parameters:
g
- aGraphics
object.c
- aJComponent
object.
-
paintThumb
- Overrides:
paintThumb
in classBasicSliderUI
-
paintTicks
- Overrides:
paintTicks
in classBasicSliderUI
-
paintTrack
- Overrides:
paintTrack
in classBasicSliderUI
-