Class DefaultRangeSliderUI
java.lang.Object
javax.swing.plaf.ComponentUI
ca.phon.ui.RangeSliderUI
ca.phon.ui.DefaultRangeSliderUI
- All Implemented Interfaces:
SwingConstants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChangeListenerprotected ComponentListenerprotected Rectangleprotected Rectangleprotected Rectangleprotected static final Colorprotected Rectangleprotected Insetsprotected FocusListenerprotected RectangleGemometryprotected Insetsprotected booleanprotected PropertyChangeListenerprotected JRangeSliderThe component this UI is installed onprotected Rectangleprotected Rectangleprotected DefaultRangeSliderUI.ThumbListenerListenersprotected RectangleFields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ChangeListenercreateChangeListener(JRangeSlider slider) protected ComponentListenercreateComponentListener(JRangeSlider slider) protected FocusListenercreateFocusListener(JRangeSlider slider) protected PropertyChangeListenerprotected DefaultRangeSliderUI.ThumbListenercreateThumbListener(JRangeSlider slider) static ComponentUIUI Implementationprotected StringgetMaximumSize(JComponent comp) protected DimensiongetMinimumSize(int orientation) getMinimumSize(JComponent comp) protected DimensiongetPreferredSize(int orientation) Calculate preferred, min and max sizesgetPreferredSize(JComponent comp) protected StringintgetValueForX(int x) intgetValueForY(int y) protected intgetXForValue(int value) protected intgetYForValue(int value) protected voidinstallListeners(JRangeSlider slider) voidinstallUI(JComponent comp) booleanbooleanbooleanvoidpaint(Graphics g, JComponent comp) voidvoidvoidvoidvoidvoidvoidprotected voidprotected voidvoidsetExtentThumbLocation(int x, int y) voidsetStartThumbLocation(int x, int y) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voiduninstallListeners(JRangeSlider slider) voiduninstallUI(JComponent comp) Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
Field Details
-
slider
The component this UI is installed on -
focusInsets
-
insetCache
-
leftToRightCache
protected boolean leftToRightCache -
focusRect
Gemometry -
contentRect
-
trackRect
-
filledTrackRect
-
startThumbRect
-
extentThumbRect
-
startLabelRect
-
extentLabelRect
-
thumbListener
Listeners -
changeListener
-
componentListener
-
focusListener
-
propertyChangeListener
-
filledTrackColor
-
-
Constructor Details
-
DefaultRangeSliderUI
Constructor
-
-
Method Details
-
isDragging
public boolean isDragging() -
isDraggingExtent
public boolean isDraggingExtent() -
isDraggingStart
public boolean isDraggingStart() -
createUI
UI Implementation -
installUI
- Overrides:
installUIin classComponentUI
-
createThumbListener
-
createChangeListener
-
createComponentListener
-
createFocusListener
-
createPropertyChangeListener
-
installListeners
-
uninstallListeners
-
uninstallUI
- Overrides:
uninstallUIin classComponentUI
-
getPreferredSize
Calculate preferred, min and max sizes -
getPreferredSize
- Overrides:
getPreferredSizein classComponentUI
-
getMinimumSize
-
getMinimumSize
- Overrides:
getMinimumSizein classComponentUI
-
getMaximumSize
- Overrides:
getMaximumSizein classComponentUI
-
setupGeom
protected void setupGeom() -
setupFocusRect
protected void setupFocusRect() -
setupContentRect
protected void setupContentRect() -
setupStartThumbRect
protected void setupStartThumbRect() -
setupExtentThumbRect
protected void setupExtentThumbRect() -
setupTrackRect
protected void setupTrackRect() -
setupFilledTrackRect
protected void setupFilledTrackRect() -
setupStartThumbLocation
protected void setupStartThumbLocation() -
setupExtentThumbLocation
protected void setupExtentThumbLocation() -
setupStartLabelRect
protected void setupStartLabelRect() -
setupExtentLabelRect
protected void setupExtentLabelRect() -
getStartLabelString
-
getExtentLabelString
-
getXForValue
protected int getXForValue(int value) -
getYForValue
protected int getYForValue(int value) -
getValueForX
public int getValueForX(int x) -
getValueForY
public int getValueForY(int y) -
setStartThumbLocation
public void setStartThumbLocation(int x, int y) -
setExtentThumbLocation
public void setExtentThumbLocation(int x, int y) -
paint
- Overrides:
paintin classComponentUI
-
recalculateIfInsetsChanged
protected void recalculateIfInsetsChanged() -
recalculateIfOrientationChanged
protected void recalculateIfOrientationChanged() -
paintFocus
-
paintTrack
-
paintFilledTrack
-
paintStartThumb
-
paintExtentThumb
-
paintStartLabel
-
paintExtentLabel
-