Package ca.phon.ui
Class DefaultRangeSliderUI
java.lang.Object
javax.swing.plaf.ComponentUI
ca.phon.ui.RangeSliderUI
ca.phon.ui.DefaultRangeSliderUI
- All Implemented Interfaces:
SwingConstants
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
-
Field Summary
Modifier and TypeFieldDescriptionprotected ChangeListener
protected ComponentListener
protected Rectangle
protected Rectangle
protected Rectangle
protected static final Color
protected Rectangle
protected Insets
protected FocusListener
protected Rectangle
Gemometryprotected Insets
protected boolean
protected PropertyChangeListener
protected JRangeSlider
The component this UI is installed onprotected Rectangle
protected Rectangle
protected DefaultRangeSliderUI.ThumbListener
Listenersprotected Rectangle
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected ChangeListener
createChangeListener
(JRangeSlider slider) protected ComponentListener
createComponentListener
(JRangeSlider slider) protected FocusListener
createFocusListener
(JRangeSlider slider) protected PropertyChangeListener
protected DefaultRangeSliderUI.ThumbListener
createThumbListener
(JRangeSlider slider) static ComponentUI
UI Implementationprotected String
getMaximumSize
(JComponent comp) protected Dimension
getMinimumSize
(int orientation) getMinimumSize
(JComponent comp) protected Dimension
getPreferredSize
(int orientation) Calculate preferred, min and max sizesgetPreferredSize
(JComponent comp) protected String
int
getValueForX
(int x) int
getValueForY
(int y) protected int
getXForValue
(int value) protected int
getYForValue
(int value) protected void
installListeners
(JRangeSlider slider) void
installUI
(JComponent comp) boolean
boolean
boolean
void
paint
(Graphics g, JComponent comp) void
void
void
void
void
void
void
protected void
protected void
void
setExtentThumbLocation
(int x, int y) void
setStartThumbLocation
(int x, int y) protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
uninstallListeners
(JRangeSlider slider) void
uninstallUI
(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:
installUI
in classComponentUI
-
createThumbListener
-
createChangeListener
-
createComponentListener
-
createFocusListener
-
createPropertyChangeListener
-
installListeners
-
uninstallListeners
-
uninstallUI
- Overrides:
uninstallUI
in classComponentUI
-
getPreferredSize
Calculate preferred, min and max sizes -
getPreferredSize
- Overrides:
getPreferredSize
in classComponentUI
-
getMinimumSize
-
getMinimumSize
- Overrides:
getMinimumSize
in classComponentUI
-
getMaximumSize
- Overrides:
getMaximumSize
in 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:
paint
in classComponentUI
-
recalculateIfInsetsChanged
protected void recalculateIfInsetsChanged() -
recalculateIfOrientationChanged
protected void recalculateIfOrientationChanged() -
paintFocus
-
paintTrack
-
paintFilledTrack
-
paintStartThumb
-
paintExtentThumb
-
paintStartLabel
-
paintExtentLabel
-