TransitionAwareUIpublic class ColorSliderUI extends BasicSliderUI implements TransitionAwareUI
| Modifier and Type | Class | Description |
|---|---|---|
class |
ColorSliderUI.CSUIPropertyChangeHandler |
|
class |
ColorSliderUI.QuaquaTrackListener |
Track mouse movements.
|
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener| Modifier and Type | Field | Description |
|---|---|---|
protected ColorSliderModel |
colorSliderModel |
|
protected Integer |
componentIndex |
|
protected StateTransitionTracker |
stateTransitionTracker |
Listener for transition animations.
|
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 |
|---|---|
ColorSliderUI(JSlider b) |
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
calculateThumbLocation() |
|
protected void |
calculateTickRect() |
|
protected void |
calculateTrackRect() |
|
protected PropertyChangeListener |
createPropertyChangeListener(JSlider slider) |
|
protected BasicSliderUI.TrackListener |
createTrackListener(JSlider slider) |
|
static ComponentUI |
createUI(JComponent b) |
|
Dimension |
getMinimumHorizontalSize() |
|
Dimension |
getMinimumVerticalSize() |
|
Dimension |
getPreferredHorizontalSize() |
|
Dimension |
getPreferredVerticalSize() |
|
protected Icon |
getThumbIcon() |
|
protected Dimension |
getThumbSize() |
|
protected int |
getTickLength() |
Gets the height of the tick area for horizontal sliders and the width of
the tick area for vertical sliders.
|
StateTransitionTracker |
getTransitionTracker() |
Returns the model for tracking the transitions.
|
protected void |
installDefaults(JSlider slider) |
|
protected void |
installListeners(JSlider slider) |
|
boolean |
isInside(MouseEvent me) |
Checks whether the mouse position of the specified event lies inside the
area of the component designated for transition effects.
|
void |
paintColorTrack(Graphics g,
int x,
int y,
int width,
int height,
int buffer) |
|
void |
paintFocus(Graphics g) |
|
protected void |
paintMajorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x) |
|
protected void |
paintMajorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y) |
|
protected void |
paintMinorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x) |
|
protected void |
paintMinorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y) |
|
void |
paintThumb(Graphics g) |
|
void |
paintTicks(Graphics g) |
|
void |
paintTrack(Graphics g) |
|
protected void |
uninstallListeners(JSlider slider) |
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbSize, calculateTrackBuffer, createChangeListener, createComponentListener, createFocusListener, createScrollListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumSize, getPreferredSize, getShadowColor, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installKeyboardActions, installUI, isDragging, labelsHaveSameBaselines, paint, paintHorizontalLabel, paintLabels, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, scrollDueToClickInTrack, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValuecontains, getAccessibleChild, getAccessibleChildrenCount, updateprotected Integer componentIndex
protected ColorSliderModel colorSliderModel
protected StateTransitionTracker stateTransitionTracker
public ColorSliderUI(JSlider b)
public static ComponentUI createUI(JComponent b)
protected void installDefaults(JSlider slider)
installDefaults in class BasicSliderUIprotected void installListeners(JSlider slider)
installListeners in class BasicSliderUIprotected void uninstallListeners(JSlider slider)
uninstallListeners in class BasicSliderUIprotected Dimension getThumbSize()
getThumbSize in class BasicSliderUIpublic Dimension getPreferredHorizontalSize()
getPreferredHorizontalSize in class BasicSliderUIpublic Dimension getPreferredVerticalSize()
getPreferredVerticalSize in class BasicSliderUIpublic Dimension getMinimumHorizontalSize()
getMinimumHorizontalSize in class BasicSliderUIpublic Dimension getMinimumVerticalSize()
getMinimumVerticalSize in class BasicSliderUIprotected void calculateThumbLocation()
calculateThumbLocation in class BasicSliderUIprotected Icon getThumbIcon()
public void paintThumb(Graphics g)
paintThumb in class BasicSliderUIpublic void paintTrack(Graphics g)
paintTrack in class BasicSliderUIpublic void paintTicks(Graphics g)
paintTicks in class BasicSliderUIprotected void paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
paintMajorTickForHorizSlider in class BasicSliderUIprotected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
paintMinorTickForHorizSlider in class BasicSliderUIprotected void paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
paintMinorTickForVertSlider in class BasicSliderUIprotected void paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
paintMajorTickForVertSlider in class BasicSliderUIpublic void paintFocus(Graphics g)
paintFocus in class BasicSliderUIpublic void paintColorTrack(Graphics g, int x, int y, int width, int height, int buffer)
protected void calculateTrackRect()
calculateTrackRect in class BasicSliderUIprotected void calculateTickRect()
calculateTickRect in class BasicSliderUIprotected int getTickLength()
getTickLength in class BasicSliderUIprotected PropertyChangeListener createPropertyChangeListener(JSlider slider)
createPropertyChangeListener in class BasicSliderUIprotected BasicSliderUI.TrackListener createTrackListener(JSlider slider)
createTrackListener in class BasicSliderUIpublic StateTransitionTracker getTransitionTracker()
TransitionAwareUIgetTransitionTracker in interface TransitionAwareUIpublic boolean isInside(MouseEvent me)
TransitionAwareUIisInside in interface TransitionAwareUIme - Mouse event.true if the mouse position of the specified event
lies inside the area of the component designated for transition
effects, false otherwise.