Package com.luciad.gui.swing
Class TLcdBasicRangeSliderUI
java.lang.Object
javax.swing.plaf.ComponentUI
com.luciad.gui.swing.TLcdBasicRangeSliderUI
- Direct Known Subclasses:
TLcdAquaRangeSliderUI
,TLcdMetalRangeSliderUI
,TLcdMotifRangeSliderUI
,TLcdNimbusRangeSliderUI
,TLcdWindowsRangeSliderUI
,TLcdWindowsXPRangeSliderUI
TLcdBasicRangeSliderUI
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
protected class
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected Icon
protected final ChangeListener
protected final ComponentListener
protected Rectangle
protected static Color
protected boolean
protected boolean
protected boolean
protected final FocusListener
protected Color
protected Insets
protected Rectangle
protected Color
protected Insets
protected Rectangle
protected Icon
protected Rectangle
The rectangle in which the maximum value thumb is rendered.protected Rectangle
The rectangle in which the minimum value thumb is rendered.protected final MouseMotionListener
protected final MouseListener
protected boolean
protected final PropertyChangeListener
protected Rectangle
The rectangle in which the range between the minimum and maximum thumb is rendered.protected Icon
protected Color
protected TLcdRangeSlider
protected Rectangle
protected final int
protected Rectangle
The rectangle in which the ticks should be rendered.protected Icon
protected int
protected Rectangle
protected int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected int
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Calculates and sets the content rectangle, i.e. the area in which the components elements can be rendered.protected void
Calculates and sets the rectangle to paint the focus line.protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected int
protected Component
protected Dimension
protected int
protected int
protected int
protected void
installDefaults
(TLcdRangeSlider slider) protected void
protected void
void
void
paint
(Graphics g, JComponent c) void
protected void
paintHorizontalLabel
(Graphics g, double value, Component label) Called for every label in the label table.void
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
protected void
protected void
protected void
protected void
paintVerticalLabel
(Graphics g, double value, Component label) Called for every label in the label table.protected void
protected void
protected void
void
protected int
xPositionForValue
(double value) protected int
yPositionForValue
(double value) Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, update
-
Field Details
-
fSlider
-
fDarkShadowColor
-
fTickLength
protected final int fTickLength- See Also:
-
RANGE_MIN_DOWN
protected static final int RANGE_MIN_DOWN- See Also:
-
RANGE_MIN_DOWN_ADJUST_MAX
protected static final int RANGE_MIN_DOWN_ADJUST_MAX- See Also:
-
RANGE_MIN_UP
protected static final int RANGE_MIN_UP- See Also:
-
RANGE_MIN_UP_ADJUST_MAX
protected static final int RANGE_MIN_UP_ADJUST_MAX- See Also:
-
RANGE_MAX_DOWN
protected static final int RANGE_MAX_DOWN- See Also:
-
RANGE_MAX_DOWN_ADJUST_MIN
protected static final int RANGE_MAX_DOWN_ADJUST_MIN- See Also:
-
RANGE_MAX_UP
protected static final int RANGE_MAX_UP- See Also:
-
RANGE_MAX_UP_ADJUST_MIN
protected static final int RANGE_MAX_UP_ADJUST_MIN- See Also:
-
RANGE_LEFT
protected static final int RANGE_LEFT- See Also:
-
RANGE_RIGHT
protected static final int RANGE_RIGHT- See Also:
-
TRACK_TICK_SPACING
protected static final int TRACK_TICK_SPACING- See Also:
-
fFocus
-
fMouse
-
fTickRect
The rectangle in which the ticks should be rendered. -
fMinThumb
The rectangle in which the minimum value thumb is rendered. -
fMaxThumb
The rectangle in which the maximum value thumb is rendered. -
fRangeRect
The rectangle in which the range between the minimum and maximum thumb is rendered. -
fFocusRect
-
fContentRect
-
fLabelRect
-
fTrackRect
-
fSliderRect
-
fFocusInsets
-
fInsetCache
-
fLeftSliderIcon
-
fRightSliderIcon
-
fTopSliderIcon
-
fBottomSliderIcon
-
fMotion
-
fChange
-
fComponent
-
fProperty
-
fMoveCursor
protected boolean fMoveCursor -
fDragMin
protected boolean fDragMin -
fDragMax
protected boolean fDragMax -
fDragRange
protected boolean fDragRange -
leftSpace
protected int leftSpace -
rightSpace
protected int rightSpace -
fTrackBuffer
protected int fTrackBuffer -
fShadowColor
-
fHighlightColor
-
fFocusColor
-
-
Constructor Details
-
TLcdBasicRangeSliderUI
public TLcdBasicRangeSliderUI()
-
-
Method Details
-
installUI
- Overrides:
installUI
in classComponentUI
-
installDefaults
-
uninstallUI
- Overrides:
uninstallUI
in classComponentUI
-
getFocusColor
-
getHighlightColor
-
getShadowColor
-
getMinimumSize
- Overrides:
getMinimumSize
in classComponentUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classComponentUI
-
recalculateIfInsetsChanged
protected void recalculateIfInsetsChanged() -
paintFocus
-
paintLabels
-
paintHorizontalLabel
Called for every label in the label table. Used to draw the labels for horizontal sliders. The graphics have been translated to labelRect.y already.- See Also:
-
paintVerticalLabel
Called for every label in the label table. Used to draw the labels for vertical sliders. The graphics have been translated to labelRect.x already.- See Also:
-
installListeners
-
uninstallListeners
-
calculateGeometry
protected void calculateGeometry() -
calculateLabelRect
protected void calculateLabelRect() -
calculateRangeRect
protected void calculateRangeRect() -
calculateFocusRect
protected void calculateFocusRect()Calculates and sets the rectangle to paint the focus line. -
calculateContentRect
protected void calculateContentRect()Calculates and sets the content rectangle, i.e. the area in which the components elements can be rendered. -
calculateThumbSize
protected void calculateThumbSize() -
calculateSliderRect
protected void calculateSliderRect() -
getThumbSize
-
calculateThumbLocation
protected void calculateThumbLocation() -
calculateTrackBuffer
protected void calculateTrackBuffer() -
calculateTrackRect
protected void calculateTrackRect() -
calculateTickRect
protected void calculateTickRect() -
getTickLength
protected int getTickLength() -
getHeightOfTallestLabel
protected int getHeightOfTallestLabel() -
getWidthOfWidestLabel
protected int getWidthOfWidestLabel() -
getWidthOfHighValueLabel
protected int getWidthOfHighValueLabel() -
getHighestValueLabel
-
xPositionForValue
protected int xPositionForValue(double value) -
yPositionForValue
protected int yPositionForValue(double value) -
installKeyboardActions
-
uninstallKeyboardActions
-
paint
- Overrides:
paint
in classComponentUI
-
paintTrack
-
paintTicks
-
paintMinorTickForHorizSlider
-
paintMajorTickForHorizSlider
-
paintMinorTickForVertSlider
-
paintMajorTickForVertSlider
-
paintRange
-
paintThumbs
-