JIDE 3.5.15

com.jidesoft.plaf.windows
Class WindowsRangeSliderUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.SliderUI
          extended by javax.swing.plaf.basic.BasicSliderUI
              extended by com.sun.java.swing.plaf.windows.WindowsSliderUI
                  extended by com.jidesoft.plaf.windows.WindowsRangeSliderUI

public class WindowsRangeSliderUI
extends com.sun.java.swing.plaf.windows.WindowsSliderUI

WindowsRangeSliderUI implementation


Nested Class Summary
protected  class WindowsRangeSliderUI.RangeTrackListener
           
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicSliderUI
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener
 
Field Summary
protected  boolean hover
           
protected static int MOUSE_HANDLE_BOTH
           
protected static int MOUSE_HANDLE_LOWER
           
protected static int MOUSE_HANDLE_MAX
           
protected static int MOUSE_HANDLE_MIDDLE
           
protected static int MOUSE_HANDLE_MIN
           
protected static int MOUSE_HANDLE_NONE
           
protected static int MOUSE_HANDLE_UPPER
           
protected  boolean pressed1
           
protected  boolean pressed2
           
protected  boolean rollover1
           
protected  boolean rollover2
           
protected  boolean second
           
 
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
 
Constructor Summary
WindowsRangeSliderUI(JSlider slider)
           
 
Method Summary
protected  void adjustSnapHighValue()
           
protected  Point adjustThumbForHighValue()
           
protected  void calculateThumbLocation()
           
protected  BasicSliderUI.TrackListener createTrackListener(JSlider slider)
           
static ComponentUI createUI(JComponent slider)
           
protected  int getMouseHandle(int x, int y)
           
 void paint(Graphics g, JComponent c)
           
 void paintThumb(Graphics g)
           
protected  void restoreThumbForLowValue(Point p)
           
 void scrollByBlock(int direction)
           
 void scrollByUnit(int direction)
           
protected  void setMousePressed(int handle)
           
protected  void setMouseReleased(int handle)
           
protected  void setMouseRollover(int handle)
           
 
Methods inherited from class com.sun.java.swing.plaf.windows.WindowsSliderUI
getThumbSize, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTrack
 
Methods inherited from class javax.swing.plaf.basic.BasicSliderUI
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbSize, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, createComponentListener, createFocusListener, createPropertyChangeListener, createScrollListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getTickLength, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, installUI, isDragging, labelsHaveSameBaselines, paintFocus, paintHorizontalLabel, paintLabels, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollDueToClickInTrack, setThumbLocation, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValue
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MOUSE_HANDLE_NONE

protected static final int MOUSE_HANDLE_NONE
See Also:
Constant Field Values

MOUSE_HANDLE_MIN

protected static final int MOUSE_HANDLE_MIN
See Also:
Constant Field Values

MOUSE_HANDLE_MAX

protected static final int MOUSE_HANDLE_MAX
See Also:
Constant Field Values

MOUSE_HANDLE_MIDDLE

protected static final int MOUSE_HANDLE_MIDDLE
See Also:
Constant Field Values

MOUSE_HANDLE_LOWER

protected static final int MOUSE_HANDLE_LOWER
See Also:
Constant Field Values

MOUSE_HANDLE_UPPER

protected static final int MOUSE_HANDLE_UPPER
See Also:
Constant Field Values

MOUSE_HANDLE_BOTH

protected static final int MOUSE_HANDLE_BOTH
See Also:
Constant Field Values

hover

protected boolean hover

second

protected boolean second

rollover1

protected boolean rollover1

pressed1

protected boolean pressed1

rollover2

protected boolean rollover2

pressed2

protected boolean pressed2
Constructor Detail

WindowsRangeSliderUI

public WindowsRangeSliderUI(JSlider slider)
Method Detail

createUI

public static ComponentUI createUI(JComponent slider)

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class BasicSliderUI

restoreThumbForLowValue

protected void restoreThumbForLowValue(Point p)

adjustThumbForHighValue

protected Point adjustThumbForHighValue()

adjustSnapHighValue

protected void adjustSnapHighValue()

calculateThumbLocation

protected void calculateThumbLocation()
Overrides:
calculateThumbLocation in class BasicSliderUI

createTrackListener

protected BasicSliderUI.TrackListener createTrackListener(JSlider slider)
Overrides:
createTrackListener in class com.sun.java.swing.plaf.windows.WindowsSliderUI

getMouseHandle

protected int getMouseHandle(int x,
                             int y)

paintThumb

public void paintThumb(Graphics g)
Overrides:
paintThumb in class com.sun.java.swing.plaf.windows.WindowsSliderUI

setMouseRollover

protected void setMouseRollover(int handle)

setMousePressed

protected void setMousePressed(int handle)

setMouseReleased

protected void setMouseReleased(int handle)

scrollByBlock

public void scrollByBlock(int direction)
Overrides:
scrollByBlock in class BasicSliderUI

scrollByUnit

public void scrollByUnit(int direction)
Overrides:
scrollByUnit in class BasicSliderUI

JIDE 3.5.15