public class BasicRangeSliderUI extends BasicSliderUI implements RangeSliderUI
Modifier and Type | Class and Description |
---|---|
class |
BasicRangeSliderUI.RangeSliderChangeListener |
class |
BasicRangeSliderUI.RangeSliderTrackListener |
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
extRect |
protected boolean |
isDraggingExtent |
protected boolean |
isDraggingThumb |
protected boolean |
showExtent |
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
Constructor and Description |
---|
BasicRangeSliderUI(JSlider b,
boolean showe) |
calculateContentRect, calculateFocusRect, calculateThumbLocation, calculateThumbSize, createComponentListener, createFocusListener, createScrollListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredVerticalSize, getShadowColor, getThumbSize, getTickLength, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, isDragging, labelsHaveSameBaselines, paintFocus, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTicks, paintTrack, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, scrollDueToClickInTrack, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValue
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected Rectangle extRect
protected transient boolean isDraggingThumb
protected transient boolean isDraggingExtent
protected transient boolean showExtent
public BasicRangeSliderUI(JSlider b, boolean showe)
public static ComponentUI createUI(JComponent c)
protected void calculateLabelRect()
calculateLabelRect
in class BasicSliderUI
protected void calculateTickRect()
calculateTickRect
in class BasicSliderUI
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class BasicSliderUI
public void installUI(JComponent c)
installUI
in class BasicSliderUI
public void uninstallUI(JComponent c)
uninstallUI
in class BasicSliderUI
protected void calculateGeometry()
calculateGeometry
in class BasicSliderUI
protected void calculateExtentSize()
protected Dimension getExtentSize()
protected int getRangeRight()
protected void setRangeMax(int value)
protected int getRangeLeft()
protected void setRangeMin(int value)
protected void calculateExtentLocation()
protected void calculateTrackBuffer()
calculateTrackBuffer
in class BasicSliderUI
protected void calculateTrackRect()
calculateTrackRect
in class BasicSliderUI
protected PropertyChangeListener createPropertyChangeListener(JSlider slider)
createPropertyChangeListener
in class BasicSliderUI
public void paint(Graphics g, JComponent c)
paint
in class BasicSliderUI
public void paintThumb(Graphics g)
paintThumb
in class BasicSliderUI
public void paintThumbLocal(Graphics g)
public void paintExtent(Graphics g)
public void paintThumb(Graphics g, Rectangle knobBounds, double theta)
public void setExtentLocation(int x, int y)
protected ChangeListener createChangeListener(JSlider slider)
createChangeListener
in class BasicSliderUI
protected BasicSliderUI.TrackListener createTrackListener(JSlider slider)
createTrackListener
in class BasicSliderUI
public boolean thumbContains(int x, int y)
thumbContains
in interface RangeSliderUI
public boolean extentContains(int x, int y)
extentContains
in interface RangeSliderUI
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.