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
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Iconprotected final ChangeListenerprotected final ComponentListenerprotected Rectangleprotected static Colorprotected booleanprotected booleanprotected booleanprotected final FocusListenerprotected Colorprotected Insetsprotected Rectangleprotected Colorprotected Insetsprotected Rectangleprotected Iconprotected RectangleThe rectangle in which the maximum value thumb is rendered.protected RectangleThe rectangle in which the minimum value thumb is rendered.protected final MouseMotionListenerprotected final MouseListenerprotected booleanprotected final PropertyChangeListenerprotected RectangleThe rectangle in which the range between the minimum and maximum thumb is rendered.protected Iconprotected Colorprotected TLcdRangeSliderprotected Rectangleprotected final intprotected RectangleThe rectangle in which the ticks should be rendered.protected Iconprotected intprotected Rectangleprotected intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected intprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalculates and sets the content rectangle, i.e. the area in which the components elements can be rendered.protected voidCalculates and sets the rectangle to paint the focus line.protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected intprotected Componentprotected Dimensionprotected intprotected intprotected intprotected voidinstallDefaults(TLcdRangeSlider slider) protected voidprotected voidvoidvoidpaint(Graphics g, JComponent c) voidprotected voidpaintHorizontalLabel(Graphics g, double value, Component label) Called for every label in the label table.voidprotected voidpaintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) protected voidpaintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y) protected voidpaintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) protected voidpaintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y) protected abstract voidprotected voidprotected voidprotected voidprotected voidpaintVerticalLabel(Graphics g, double value, Component label) Called for every label in the label table.protected voidprotected voidprotected voidvoidprotected intxPositionForValue(double value) protected intyPositionForValue(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:
installUIin classComponentUI
-
installDefaults
-
uninstallUI
- Overrides:
uninstallUIin classComponentUI
-
getFocusColor
-
getHighlightColor
-
getShadowColor
-
getMinimumSize
- Overrides:
getMinimumSizein classComponentUI
-
getPreferredSize
- Overrides:
getPreferredSizein 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:
paintin classComponentUI
-
paintTrack
-
paintTicks
-
paintMinorTickForHorizSlider
-
paintMajorTickForHorizSlider
-
paintMinorTickForVertSlider
-
paintMajorTickForVertSlider
-
paintRange
-
paintThumbs
-