Package com.bric.multislider
Class DefaultMultiThumbSliderUi<T>
java.lang.Object
javax.swing.plaf.ComponentUI
com.bric.multislider.MultiThumbSliderUi<T>
com.bric.multislider.DefaultMultiThumbSliderUi<T>
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener
- Direct Known Subclasses:
AquaMultiThumbSliderUi,VistaMultiThumbSliderUI
-
Nested Class Summary
Nested classes/interfaces inherited from class com.bric.multislider.MultiThumbSliderUi
MultiThumbSliderUi.State, MultiThumbSliderUi.Thumb -
Field Summary
FieldsFields inherited from class com.bric.multislider.MultiThumbSliderUi
animatingRunnable, animatingThread, compListener, DEPTH, focusListener, indication, keyListener, MAX_LENGTH, MIN_LENGTH, mouseInside, mouseIsDown, PREF_LENGTH, propertyListener, slider, THUMB_SHAPE_PROPERTY, thumbIndications, thumbPositions, thumbShapeListener, trackRect -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Rectangleprotected intReturn the typical height of a horizontally oriented slider, or the width of the vertically oriented slider.protected DimensiongetThumbSize(int thumbIndex) protected Shapeprotected booleanprotected voidprotected voidpaintThumb(Graphics2D g, int thumbIndex, float selected) protected voidprotected voidpaintTick(Graphics2D g, float f, int d1, int d2, boolean mirror) protected voidprotected voidThis optional method highlights the space on the track (by simply adding a shadow) between two thumbs.Methods inherited from class com.bric.multislider.MultiThumbSliderUi
addThumb, calculateGeometry, getMaximumSize, getMinimumSize, getPreferredSize, getProperty, getThumb, getThumbCenter, getThumbCenter, getThumbShape, getThumbShape, installUI, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, uninstallUI, updateIndication, validatePositionsMethods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
Field Details
-
FOCUS_PADDING
protected int FOCUS_PADDING -
trackHighlightColor
-
-
Constructor Details
-
DefaultMultiThumbSliderUi
-
-
Method Details
-
isTrackHighlightActive
protected boolean isTrackHighlightActive() -
getPreferredComponentDepth
protected int getPreferredComponentDepth()Description copied from class:MultiThumbSliderUiReturn the typical height of a horizontally oriented slider, or the width of the vertically oriented slider.- Specified by:
getPreferredComponentDepthin classMultiThumbSliderUi<T>- Returns:
- the typical height of a horizontally oriented slider, or the width of the vertically oriented slider.
-
getThumbSize
- Overrides:
getThumbSizein classMultiThumbSliderUi<T>
-
paintTrack
- Specified by:
paintTrackin classMultiThumbSliderUi<T>
-
paintTrackHighlight
This optional method highlights the space on the track (by simply adding a shadow) between two thumbs.- Parameters:
g- graphics
-
paintTick
-
paintFocus
- Specified by:
paintFocusin classMultiThumbSliderUi<T>
-
calculateTrackRect
- Overrides:
calculateTrackRectin classMultiThumbSliderUi<T>
-
getTrackOutline
-
paintThumbs
- Specified by:
paintThumbsin classMultiThumbSliderUi<T>
-
paintThumb
-