org.jhotdraw.gui.plaf.palette
Class PaletteSliderUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.SliderUI
          extended by javax.swing.plaf.basic.BasicSliderUI
              extended by org.jhotdraw.gui.plaf.palette.PaletteSliderUI

public class PaletteSliderUI
extends javax.swing.plaf.basic.BasicSliderUI

PaletteSliderUI.

Author:
Werner Randelshofer  @version $Id: PaletteSliderUI.java 591 2009-12-18 22:54:10Z rawcoder $

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicSliderUI
javax.swing.plaf.basic.BasicSliderUI.ActionScroller, javax.swing.plaf.basic.BasicSliderUI.ChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ComponentHandler, javax.swing.plaf.basic.BasicSliderUI.FocusHandler, javax.swing.plaf.basic.BasicSliderUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ScrollListener, javax.swing.plaf.basic.BasicSliderUI.TrackListener
 
Field Summary
private static java.awt.Color[] disabledStopColors
           
private static float[] disabledStops
           
private static java.awt.Color[] enabledStopColors
           
private static float[] enabledStops
           
private static java.awt.Color[] selectedStopColors
           
private static float[] selectedStops
           
 
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
PaletteSliderUI(javax.swing.JSlider slider)
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
           
 java.awt.Dimension getPreferredHorizontalSize()
           
 java.awt.Dimension getPreferredVerticalSize()
           
protected  java.awt.Dimension getThumbSize()
           
protected  void installDefaults(javax.swing.JSlider slider)
           
 void paint(java.awt.Graphics gr, javax.swing.JComponent c)
           
 void paintFocus(java.awt.Graphics g)
           
 void paintThumb(java.awt.Graphics gr)
           
 void paintTrack(java.awt.Graphics g)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicSliderUI
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbLocation, calculateThumbSize, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, createComponentListener, createFocusListener, createPropertyChangeListener, createScrollListener, createTrackListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredSize, getShadowColor, getTickLength, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installKeyboardActions, installListeners, installUI, isDragging, labelsHaveSameBaselines, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, 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

enabledStops

private static final float[] enabledStops

enabledStopColors

private static final java.awt.Color[] enabledStopColors

disabledStops

private static final float[] disabledStops

disabledStopColors

private static final java.awt.Color[] disabledStopColors

selectedStops

private static final float[] selectedStops

selectedStopColors

private static final java.awt.Color[] selectedStopColors
Constructor Detail

PaletteSliderUI

public PaletteSliderUI(javax.swing.JSlider slider)
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)

installDefaults

protected void installDefaults(javax.swing.JSlider slider)
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicSliderUI

getPreferredHorizontalSize

public java.awt.Dimension getPreferredHorizontalSize()
Overrides:
getPreferredHorizontalSize in class javax.swing.plaf.basic.BasicSliderUI

getPreferredVerticalSize

public java.awt.Dimension getPreferredVerticalSize()
Overrides:
getPreferredVerticalSize in class javax.swing.plaf.basic.BasicSliderUI

paint

public void paint(java.awt.Graphics gr,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.basic.BasicSliderUI

paintFocus

public void paintFocus(java.awt.Graphics g)
Overrides:
paintFocus in class javax.swing.plaf.basic.BasicSliderUI

paintTrack

public void paintTrack(java.awt.Graphics g)
Overrides:
paintTrack in class javax.swing.plaf.basic.BasicSliderUI

paintThumb

public void paintThumb(java.awt.Graphics gr)
Overrides:
paintThumb in class javax.swing.plaf.basic.BasicSliderUI

getThumbSize

protected java.awt.Dimension getThumbSize()
Overrides:
getThumbSize in class javax.swing.plaf.basic.BasicSliderUI