jsky.util.gui
Class BasicRangeSliderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SliderUI
javax.swing.plaf.basic.BasicSliderUI
jsky.util.gui.BasicRangeSliderUI
- All Implemented Interfaces:
- RangeSliderUI
- Direct Known Subclasses:
- MetalRangeSliderUI
public class BasicRangeSliderUI
- extends BasicSliderUI
- implements RangeSliderUI
The core repaints for our RangeSlider
Fields inherited from class javax.swing.plaf.basic.BasicSliderUI |
changeListener, componentListener, contentRect, focusInsets, focusListener, focusRect, insetCache, labelRect, leftToRightCache, MAX_SCROLL, MIN_SCROLL, NEGATIVE_SCROLL, POSITIVE_SCROLL, propertyChangeListener, scrollListener, scrollTimer, slider, thumbRect, tickRect, trackBuffer, trackListener, trackRect |
Methods inherited from class javax.swing.plaf.basic.BasicSliderUI |
calculateContentRect, calculateFocusRect, calculateThumbLocation, calculateThumbSize, createComponentListener, createFocusListener, createScrollListener, drawInverted, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValueLabel, getHighlightColor, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredVerticalSize, getShadowColor, getThumbSize, getTickLength, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, isDragging, paintFocus, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTicks, paintTrack, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, scrollDueToClickInTrack, setThumbLocation, uninstallKeyboardActions, uninstallListeners, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
extRect
protected Rectangle extRect
isDraggingThumb
protected transient boolean isDraggingThumb
isDraggingExtent
protected transient boolean isDraggingExtent
showExtent
protected transient boolean showExtent
BasicRangeSliderUI
public BasicRangeSliderUI(JSlider b,
boolean showe)
createUI
public static ComponentUI createUI(JComponent c)
calculateLabelRect
protected void calculateLabelRect()
- Overrides:
calculateLabelRect
in class BasicSliderUI
calculateTickRect
protected void calculateTickRect()
- Overrides:
calculateTickRect
in class BasicSliderUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in class BasicSliderUI
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in class BasicSliderUI
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUI
in class BasicSliderUI
calculateGeometry
protected void calculateGeometry()
- Overrides:
calculateGeometry
in class BasicSliderUI
calculateExtentSize
protected void calculateExtentSize()
getExtentSize
protected Dimension getExtentSize()
getRangeRight
protected int getRangeRight()
setRangeMax
protected void setRangeMax(int value)
getRangeLeft
protected int getRangeLeft()
setRangeMin
protected void setRangeMin(int value)
calculateExtentLocation
protected void calculateExtentLocation()
calculateTrackBuffer
protected void calculateTrackBuffer()
- Overrides:
calculateTrackBuffer
in class BasicSliderUI
calculateTrackRect
protected void calculateTrackRect()
- Overrides:
calculateTrackRect
in class BasicSliderUI
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener(JSlider slider)
- Overrides:
createPropertyChangeListener
in class BasicSliderUI
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
paint
in class BasicSliderUI
paintThumb
public void paintThumb(Graphics g)
- Overrides:
paintThumb
in class BasicSliderUI
paintThumbLocal
public void paintThumbLocal(Graphics g)
paintExtent
public void paintExtent(Graphics g)
paintThumb
public void paintThumb(Graphics g,
Rectangle knobBounds,
double theta)
- still relies on "parent" paintThumb
setExtentLocation
public void setExtentLocation(int x,
int y)
createChangeListener
protected ChangeListener createChangeListener(JSlider slider)
- Data model listener.
This inner class is marked "public" due to a compiler bug.
This class should be treated as a "protected" inner class.
Instantiate it only within subclasses of .
- Overrides:
createChangeListener
in class BasicSliderUI
createTrackListener
protected BasicSliderUI.TrackListener createTrackListener(JSlider slider)
- Track mouse movements.
This inner class is marked "public" due to a compiler bug.
This class should be treated as a "protected" inner class.
Instantiate it only within subclasses of .
- Overrides:
createTrackListener
in class BasicSliderUI
thumbContains
public boolean thumbContains(int x,
int y)
- Specified by:
thumbContains
in interface RangeSliderUI
extentContains
public boolean extentContains(int x,
int y)
- Specified by:
extentContains
in interface RangeSliderUI
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.