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 intgetPreferredComponentDepth()Return the typical height of a horizontally oriented slider, or the width of the vertically oriented slider.protected DimensiongetThumbSize(int thumbIndex)protected ShapegetTrackOutline()protected voidpaintFocus(Graphics2D g)protected voidpaintThumb(Graphics2D g, int thumbIndex, float selected)protected voidpaintTrack(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:MultiThumbSliderUIReturn the typical height of a horizontally oriented slider, or the width of the vertically oriented slider.- Overrides:
getPreferredComponentDepthin 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:
paintFocusin classDefaultMultiThumbSliderUI<T>
-
getThumbSize
protected Dimension getThumbSize(int thumbIndex)
- Overrides:
getThumbSizein classDefaultMultiThumbSliderUI<T>
-
paintTrack
protected void paintTrack(Graphics2D g)
- Overrides:
paintTrackin classDefaultMultiThumbSliderUI<T>
-
getTrackOutline
protected Shape getTrackOutline()
- Overrides:
getTrackOutlinein classDefaultMultiThumbSliderUI<T>
-
paintThumb
protected void paintThumb(Graphics2D g, int thumbIndex, float selected)
- Overrides:
paintThumbin classDefaultMultiThumbSliderUI<T>
-
-