Package com.bric.multislider
Class AquaMultiThumbSliderUI<T>
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- com.bric.multislider.MultiThumbSliderUI<T>
-
- com.bric.multislider.DefaultMultiThumbSliderUI<T>
-
- com.bric.multislider.AquaMultiThumbSliderUI<T>
-
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
public class AquaMultiThumbSliderUI<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 AquaMultiThumbSliderUI(MultiThumbSlider<T> slider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Rectangle
calculateTrackRect()
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 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
getTrackOutline, 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
-
AquaMultiThumbSliderUI
public AquaMultiThumbSliderUI(MultiThumbSlider<T> 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>
-
calculateTrackRect
protected Rectangle calculateTrackRect()
- Overrides:
calculateTrackRect
in classDefaultMultiThumbSliderUI<T>
-
paintThumb
protected void paintThumb(Graphics2D g, int thumbIndex, float selected)
- Overrides:
paintThumb
in classDefaultMultiThumbSliderUI<T>
-
-