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
public class VistaMultiThumbSliderUI<T> extends DefaultMultiThumbSliderUI<T>
-
-
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
Constructors Constructor Description VistaMultiThumbSliderUI(MultiThumbSlider<T> slider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getPreferredComponentDepth()
Return the typical height of a horizontally oriented slider, or the width of the vertically oriented slider.protected Dimension
getThumbSize(int thumbIndex)
protected Shape
getTrackOutline()
protected void
paintFocus(Graphics2D g)
protected void
paintThumb(Graphics2D g, int thumbIndex, float selected)
protected void
paintTrack(Graphics2D g)
-
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 Detail
-
VistaMultiThumbSliderUI
public VistaMultiThumbSliderUI(MultiThumbSlider<T> slider)
- Parameters:
slider
- the slider
-
-
Method Detail
-
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
protected void paintFocus(Graphics2D g)
- Overrides:
paintFocus
in classDefaultMultiThumbSliderUI<T>
-
getThumbSize
protected Dimension getThumbSize(int thumbIndex)
- Overrides:
getThumbSize
in classDefaultMultiThumbSliderUI<T>
-
paintTrack
protected void paintTrack(Graphics2D g)
- Overrides:
paintTrack
in classDefaultMultiThumbSliderUI<T>
-
getTrackOutline
protected Shape getTrackOutline()
- Overrides:
getTrackOutline
in classDefaultMultiThumbSliderUI<T>
-
paintThumb
protected void paintThumb(Graphics2D g, int thumbIndex, float selected)
- Overrides:
paintThumb
in classDefaultMultiThumbSliderUI<T>
-
-