public abstract class TLcdBasicRangeSliderUI extends ComponentUI
Modifier and Type | Class and Description |
---|---|
protected class |
TLcdBasicRangeSliderUI.ChangeHandler |
protected class |
TLcdBasicRangeSliderUI.ComponentHandler |
protected class |
TLcdBasicRangeSliderUI.DefaultMouseMotionListener |
protected class |
TLcdBasicRangeSliderUI.PropertyChangeHandler |
Modifier and Type | Field and Description |
---|---|
protected Icon |
fBottomSliderIcon |
protected ChangeListener |
fChange |
protected ComponentListener |
fComponent |
protected Rectangle |
fContentRect |
protected static Color |
fDarkShadowColor |
protected boolean |
fDragMax |
protected boolean |
fDragMin |
protected boolean |
fDragRange |
protected FocusListener |
fFocus |
protected Color |
fFocusColor |
protected Insets |
fFocusInsets |
protected Rectangle |
fFocusRect |
protected Color |
fHighlightColor |
protected Insets |
fInsetCache |
protected Rectangle |
fLabelRect |
protected Icon |
fLeftSliderIcon |
protected Rectangle |
fMaxThumb
The rectangle in which the maximum value thumb is rendered.
|
protected Rectangle |
fMinThumb
The rectangle in which the minimum value thumb is rendered.
|
protected MouseMotionListener |
fMotion |
protected MouseListener |
fMouse |
protected boolean |
fMoveCursor |
protected PropertyChangeListener |
fProperty |
protected Rectangle |
fRangeRect
The rectangle in which the range between the minimum and maximum thumb is rendered.
|
protected Icon |
fRightSliderIcon |
protected Color |
fShadowColor |
protected TLcdRangeSlider |
fSlider |
protected Rectangle |
fSliderRect |
protected int |
fTickLength |
protected Rectangle |
fTickRect
The rectangle in which the ticks should be rendered.
|
protected Icon |
fTopSliderIcon |
protected int |
fTrackBuffer |
protected Rectangle |
fTrackRect |
protected int |
leftSpace |
protected static int |
RANGE_LEFT |
protected static int |
RANGE_MAX_DOWN |
protected static int |
RANGE_MAX_DOWN_ADJUST_MIN |
protected static int |
RANGE_MAX_UP |
protected static int |
RANGE_MAX_UP_ADJUST_MIN |
protected static int |
RANGE_MIN_DOWN |
protected static int |
RANGE_MIN_DOWN_ADJUST_MAX |
protected static int |
RANGE_MIN_UP |
protected static int |
RANGE_MIN_UP_ADJUST_MAX |
protected static int |
RANGE_RIGHT |
protected int |
rightSpace |
protected static int |
TRACK_TICK_SPACING |
Constructor and Description |
---|
TLcdBasicRangeSliderUI() |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateContentRect()
Calculates and sets the content rectangle, i.e. the area in which the components elements can be rendered.
|
protected void |
calculateFocusRect()
Calculates and sets the rectangle to paint the focus line.
|
protected void |
calculateGeometry() |
protected void |
calculateLabelRect() |
protected void |
calculateRangeRect() |
protected void |
calculateSliderRect() |
protected void |
calculateThumbLocation() |
protected void |
calculateThumbSize() |
protected void |
calculateTickRect() |
protected void |
calculateTrackBuffer() |
protected void |
calculateTrackRect() |
Color |
getFocusColor() |
protected int |
getHeightOfTallestLabel() |
protected Component |
getHighestValueLabel() |
Color |
getHighlightColor() |
Dimension |
getMinimumSize(JComponent c) |
Dimension |
getPreferredSize(JComponent c) |
Color |
getShadowColor() |
protected Dimension |
getThumbSize() |
protected int |
getTickLength() |
protected int |
getWidthOfHighValueLabel() |
protected int |
getWidthOfWidestLabel() |
protected void |
installDefaults(TLcdRangeSlider slider) |
protected void |
installKeyboardActions(TLcdRangeSlider slider) |
protected void |
installListeners(TLcdRangeSlider s) |
void |
installUI(JComponent c) |
void |
paint(Graphics g,
JComponent c) |
void |
paintFocus(Graphics g) |
protected void |
paintHorizontalLabel(Graphics g,
double value,
Component label)
Called for every label in the label table.
|
void |
paintLabels(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) |
protected abstract void |
paintRange(Graphics g) |
protected void |
paintThumbs(Graphics g) |
protected void |
paintTicks(Graphics g) |
protected void |
paintTrack(Graphics g) |
protected void |
paintVerticalLabel(Graphics g,
double value,
Component label)
Called for every label in the label table.
|
protected void |
recalculateIfInsetsChanged() |
protected void |
uninstallKeyboardActions(TLcdRangeSlider slider) |
protected void |
uninstallListeners(TLcdRangeSlider s) |
void |
uninstallUI(JComponent c) |
protected int |
xPositionForValue(double value) |
protected int |
yPositionForValue(double value) |
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, update
protected TLcdRangeSlider fSlider
protected static Color fDarkShadowColor
protected final int fTickLength
protected static final int RANGE_MIN_DOWN
protected static final int RANGE_MIN_DOWN_ADJUST_MAX
protected static final int RANGE_MIN_UP
protected static final int RANGE_MIN_UP_ADJUST_MAX
protected static final int RANGE_MAX_DOWN
protected static final int RANGE_MAX_DOWN_ADJUST_MIN
protected static final int RANGE_MAX_UP
protected static final int RANGE_MAX_UP_ADJUST_MIN
protected static final int RANGE_LEFT
protected static final int RANGE_RIGHT
protected static final int TRACK_TICK_SPACING
protected final FocusListener fFocus
protected final MouseListener fMouse
protected Rectangle fTickRect
protected Rectangle fMinThumb
protected Rectangle fMaxThumb
protected Rectangle fRangeRect
protected Rectangle fFocusRect
protected Rectangle fContentRect
protected Rectangle fLabelRect
protected Rectangle fTrackRect
protected Rectangle fSliderRect
protected Insets fFocusInsets
protected Insets fInsetCache
protected Icon fLeftSliderIcon
protected Icon fRightSliderIcon
protected Icon fTopSliderIcon
protected Icon fBottomSliderIcon
protected final MouseMotionListener fMotion
protected final ChangeListener fChange
protected final ComponentListener fComponent
protected final PropertyChangeListener fProperty
protected boolean fMoveCursor
protected boolean fDragMin
protected boolean fDragMax
protected boolean fDragRange
protected int leftSpace
protected int rightSpace
protected int fTrackBuffer
protected Color fShadowColor
protected Color fHighlightColor
protected Color fFocusColor
public void installUI(JComponent c)
installUI
in class ComponentUI
protected void installDefaults(TLcdRangeSlider slider)
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
public Color getFocusColor()
public Color getHighlightColor()
public Color getShadowColor()
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class ComponentUI
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class ComponentUI
protected void recalculateIfInsetsChanged()
public void paintFocus(Graphics g)
public void paintLabels(Graphics g)
protected void paintHorizontalLabel(Graphics g, double value, Component label)
protected void paintVerticalLabel(Graphics g, double value, Component label)
protected void installListeners(TLcdRangeSlider s)
protected void uninstallListeners(TLcdRangeSlider s)
protected void calculateGeometry()
protected void calculateLabelRect()
protected void calculateRangeRect()
protected void calculateFocusRect()
protected void calculateContentRect()
protected void calculateThumbSize()
protected void calculateSliderRect()
protected Dimension getThumbSize()
protected void calculateThumbLocation()
protected void calculateTrackBuffer()
protected void calculateTrackRect()
protected void calculateTickRect()
protected int getTickLength()
protected int getHeightOfTallestLabel()
protected int getWidthOfWidestLabel()
protected int getWidthOfHighValueLabel()
protected Component getHighestValueLabel()
protected int xPositionForValue(double value)
protected int yPositionForValue(double value)
protected void installKeyboardActions(TLcdRangeSlider slider)
protected void uninstallKeyboardActions(TLcdRangeSlider slider)
public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
protected void paintTrack(Graphics g)
protected void paintTicks(Graphics g)
protected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
protected void paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
protected void paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
protected void paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
protected abstract void paintRange(Graphics g)
protected void paintThumbs(Graphics g)