TransitionAwareUI
public 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, yPositionForValue
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected 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 BasicSliderUI
protected void installListeners(JSlider slider)
installListeners
in class BasicSliderUI
protected void uninstallListeners(JSlider slider)
uninstallListeners
in class BasicSliderUI
protected Dimension getThumbSize()
getThumbSize
in class BasicSliderUI
public Dimension getPreferredHorizontalSize()
getPreferredHorizontalSize
in class BasicSliderUI
public Dimension getPreferredVerticalSize()
getPreferredVerticalSize
in class BasicSliderUI
public Dimension getMinimumHorizontalSize()
getMinimumHorizontalSize
in class BasicSliderUI
public Dimension getMinimumVerticalSize()
getMinimumVerticalSize
in class BasicSliderUI
protected void calculateThumbLocation()
calculateThumbLocation
in class BasicSliderUI
protected Icon getThumbIcon()
public void paintThumb(Graphics g)
paintThumb
in class BasicSliderUI
public void paintTrack(Graphics g)
paintTrack
in class BasicSliderUI
public void paintTicks(Graphics g)
paintTicks
in class BasicSliderUI
protected void paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
paintMajorTickForHorizSlider
in class BasicSliderUI
protected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
paintMinorTickForHorizSlider
in class BasicSliderUI
protected void paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
paintMinorTickForVertSlider
in class BasicSliderUI
protected void paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
paintMajorTickForVertSlider
in class BasicSliderUI
public void paintFocus(Graphics g)
paintFocus
in class BasicSliderUI
public void paintColorTrack(Graphics g, int x, int y, int width, int height, int buffer)
protected void calculateTrackRect()
calculateTrackRect
in class BasicSliderUI
protected void calculateTickRect()
calculateTickRect
in class BasicSliderUI
protected int getTickLength()
getTickLength
in class BasicSliderUI
protected PropertyChangeListener createPropertyChangeListener(JSlider slider)
createPropertyChangeListener
in class BasicSliderUI
protected BasicSliderUI.TrackListener createTrackListener(JSlider slider)
createTrackListener
in class BasicSliderUI
public StateTransitionTracker getTransitionTracker()
TransitionAwareUI
getTransitionTracker
in interface TransitionAwareUI
public boolean isInside(MouseEvent me)
TransitionAwareUI
isInside
in interface TransitionAwareUI
me
- Mouse event.true
if the mouse position of the specified event
lies inside the area of the component designated for transition
effects, false
otherwise.