public class ColorSliderUI
extends javax.swing.plaf.basic.BasicSliderUI
Modifier and Type | Class and Description |
---|---|
class |
ColorSliderUI.CSUIPropertyChangeHandler |
class |
ColorSliderUI.TrackListener |
javax.swing.plaf.basic.BasicSliderUI.ActionScroller, javax.swing.plaf.basic.BasicSliderUI.ChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ComponentHandler, javax.swing.plaf.basic.BasicSliderUI.FocusHandler, javax.swing.plaf.basic.BasicSliderUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ScrollListener
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 and Description |
---|
ColorSliderUI(javax.swing.JSlider b)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
calculateThumbLocation() |
protected void |
calculateTickRect() |
protected void |
calculateTrackRect() |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener(javax.swing.JSlider slider) |
protected ColorSliderUI.TrackListener |
createTrackListener(javax.swing.JSlider slider) |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent b) |
java.awt.Dimension |
getMinimumHorizontalSize() |
java.awt.Dimension |
getMinimumVerticalSize() |
java.awt.Dimension |
getPreferredHorizontalSize() |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
java.awt.Dimension |
getPreferredVerticalSize() |
protected javax.swing.Icon |
getThumbIcon() |
protected java.awt.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.
|
protected void |
installDefaults(javax.swing.JSlider slider) |
void |
paintColorTrack(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int buffer) |
void |
paintFocus(java.awt.Graphics g) |
protected void |
paintMajorTickForHorizSlider(java.awt.Graphics g,
java.awt.Rectangle tickBounds,
int x) |
protected void |
paintMajorTickForVertSlider(java.awt.Graphics g,
java.awt.Rectangle tickBounds,
int y) |
protected void |
paintMinorTickForHorizSlider(java.awt.Graphics g,
java.awt.Rectangle tickBounds,
int x) |
protected void |
paintMinorTickForVertSlider(java.awt.Graphics g,
java.awt.Rectangle tickBounds,
int y) |
void |
paintThumb(java.awt.Graphics g) |
void |
paintTicks(java.awt.Graphics g) |
void |
paintTrack(java.awt.Graphics g) |
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbSize, calculateTrackBuffer, createChangeListener, createComponentListener, createFocusListener, createScrollListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumSize, getShadowColor, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installKeyboardActions, installListeners, installUI, isDragging, labelsHaveSameBaselines, paint, paintHorizontalLabel, paintLabels, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, scrollDueToClickInTrack, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValue
public ColorSliderUI(javax.swing.JSlider b)
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
protected void installDefaults(javax.swing.JSlider slider)
installDefaults
in class javax.swing.plaf.basic.BasicSliderUI
protected java.awt.Dimension getThumbSize()
getThumbSize
in class javax.swing.plaf.basic.BasicSliderUI
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.basic.BasicSliderUI
public java.awt.Dimension getPreferredHorizontalSize()
getPreferredHorizontalSize
in class javax.swing.plaf.basic.BasicSliderUI
public java.awt.Dimension getPreferredVerticalSize()
getPreferredVerticalSize
in class javax.swing.plaf.basic.BasicSliderUI
public java.awt.Dimension getMinimumHorizontalSize()
getMinimumHorizontalSize
in class javax.swing.plaf.basic.BasicSliderUI
public java.awt.Dimension getMinimumVerticalSize()
getMinimumVerticalSize
in class javax.swing.plaf.basic.BasicSliderUI
protected void calculateThumbLocation()
calculateThumbLocation
in class javax.swing.plaf.basic.BasicSliderUI
protected javax.swing.Icon getThumbIcon()
public void paintThumb(java.awt.Graphics g)
paintThumb
in class javax.swing.plaf.basic.BasicSliderUI
public void paintTrack(java.awt.Graphics g)
paintTrack
in class javax.swing.plaf.basic.BasicSliderUI
public void paintTicks(java.awt.Graphics g)
paintTicks
in class javax.swing.plaf.basic.BasicSliderUI
protected void paintMajorTickForHorizSlider(java.awt.Graphics g, java.awt.Rectangle tickBounds, int x)
paintMajorTickForHorizSlider
in class javax.swing.plaf.basic.BasicSliderUI
protected void paintMinorTickForHorizSlider(java.awt.Graphics g, java.awt.Rectangle tickBounds, int x)
paintMinorTickForHorizSlider
in class javax.swing.plaf.basic.BasicSliderUI
protected void paintMinorTickForVertSlider(java.awt.Graphics g, java.awt.Rectangle tickBounds, int y)
paintMinorTickForVertSlider
in class javax.swing.plaf.basic.BasicSliderUI
protected void paintMajorTickForVertSlider(java.awt.Graphics g, java.awt.Rectangle tickBounds, int y)
paintMajorTickForVertSlider
in class javax.swing.plaf.basic.BasicSliderUI
public void paintFocus(java.awt.Graphics g)
paintFocus
in class javax.swing.plaf.basic.BasicSliderUI
public void paintColorTrack(java.awt.Graphics g, int x, int y, int width, int height, int buffer)
protected void calculateTrackRect()
calculateTrackRect
in class javax.swing.plaf.basic.BasicSliderUI
protected void calculateTickRect()
calculateTickRect
in class javax.swing.plaf.basic.BasicSliderUI
protected int getTickLength()
getTickLength
in class javax.swing.plaf.basic.BasicSliderUI
protected java.beans.PropertyChangeListener createPropertyChangeListener(javax.swing.JSlider slider)
createPropertyChangeListener
in class javax.swing.plaf.basic.BasicSliderUI
protected ColorSliderUI.TrackListener createTrackListener(javax.swing.JSlider slider)
createTrackListener
in class javax.swing.plaf.basic.BasicSliderUI