Package com.bric.multislider
Class VistaMultiThumbSliderUI<T>
java.lang.Object
javax.swing.plaf.ComponentUI
com.bric.multislider.MultiThumbSliderUi<T>
com.bric.multislider.DefaultMultiThumbSliderUi<T>
com.bric.multislider.VistaMultiThumbSliderUI<T>
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class com.bric.multislider.MultiThumbSliderUi
MultiThumbSliderUi.State, MultiThumbSliderUi.Thumb
-
Field Summary
Fields inherited from class com.bric.multislider.DefaultMultiThumbSliderUi
FOCUS_PADDING, trackHighlightColor
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
Return the typical height of a horizontally oriented slider, or the width of the vertically oriented slider.protected Dimension
getThumbSize
(int thumbIndex) protected Shape
protected void
protected void
paintThumb
(Graphics2D g, int thumbIndex, float selected) protected void
Methods inherited from class com.bric.multislider.DefaultMultiThumbSliderUi
calculateTrackRect, isTrackHighlightActive, paintThumbs, paintTick, paintTrackHighlight
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, validatePositions
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
Constructor Details
-
VistaMultiThumbSliderUI
- Parameters:
slider
- the slider
-
-
Method Details
-
getPreferredComponentDepth
protected int getPreferredComponentDepth()Description copied from class:MultiThumbSliderUi
Return the typical height of a horizontally oriented slider, or the width of the vertically oriented slider.- Overrides:
getPreferredComponentDepth
in classDefaultMultiThumbSliderUi<T>
- Returns:
- the typical height of a horizontally oriented slider, or the width of the vertically oriented slider.
-
paintFocus
- Overrides:
paintFocus
in classDefaultMultiThumbSliderUi<T>
-
getThumbSize
- Overrides:
getThumbSize
in classDefaultMultiThumbSliderUi<T>
-
paintTrack
- Overrides:
paintTrack
in classDefaultMultiThumbSliderUi<T>
-
getTrackOutline
- Overrides:
getTrackOutline
in classDefaultMultiThumbSliderUi<T>
-
paintThumb
- Overrides:
paintThumb
in classDefaultMultiThumbSliderUi<T>
-