javax.swing.plaf.basic
Class BasicSliderUI

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI 
      extended by javax.swing.plaf.SliderUI sample code for javax.swing.plaf.SliderUI definition code for javax.swing.plaf.SliderUI 
          extended by javax.swing.plaf.basic.BasicSliderUI
Direct Known Subclasses:
MetalSliderUI sample code for javax.swing.plaf.metal.MetalSliderUI definition code for javax.swing.plaf.metal.MetalSliderUI

public class BasicSliderUI
extends SliderUI sample code for javax.swing.plaf.SliderUI definition code for javax.swing.plaf.SliderUI

A Basic L&F implementation of SliderUI.


Nested Class Summary
 class BasicSliderUI.ActionScroller sample code for javax.swing.plaf.basic.BasicSliderUI.ActionScroller definition code for javax.swing.plaf.basic.BasicSliderUI.ActionScroller
          As of Java 2 platform v1.3 this undocumented class is no longer used.
 class BasicSliderUI.ChangeHandler sample code for javax.swing.plaf.basic.BasicSliderUI.ChangeHandler definition code for javax.swing.plaf.basic.BasicSliderUI.ChangeHandler
          Data model listener.
 class BasicSliderUI.ComponentHandler sample code for javax.swing.plaf.basic.BasicSliderUI.ComponentHandler definition code for javax.swing.plaf.basic.BasicSliderUI.ComponentHandler
          Listener for resizing events.
 class BasicSliderUI.FocusHandler sample code for javax.swing.plaf.basic.BasicSliderUI.FocusHandler definition code for javax.swing.plaf.basic.BasicSliderUI.FocusHandler
          Focus-change listener.
 class BasicSliderUI.PropertyChangeHandler sample code for javax.swing.plaf.basic.BasicSliderUI.PropertyChangeHandler definition code for javax.swing.plaf.basic.BasicSliderUI.PropertyChangeHandler
           
 class BasicSliderUI.ScrollListener sample code for javax.swing.plaf.basic.BasicSliderUI.ScrollListener definition code for javax.swing.plaf.basic.BasicSliderUI.ScrollListener
          Scroll-event listener.
 class BasicSliderUI.TrackListener sample code for javax.swing.plaf.basic.BasicSliderUI.TrackListener definition code for javax.swing.plaf.basic.BasicSliderUI.TrackListener
          Track mouse movements.
 
Field Summary
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener changeListener sample code for javax.swing.plaf.basic.BasicSliderUI.changeListener definition code for javax.swing.plaf.basic.BasicSliderUI.changeListener
           
protected  ComponentListener sample code for java.awt.event.ComponentListener definition code for java.awt.event.ComponentListener componentListener sample code for javax.swing.plaf.basic.BasicSliderUI.componentListener definition code for javax.swing.plaf.basic.BasicSliderUI.componentListener
           
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle contentRect sample code for javax.swing.plaf.basic.BasicSliderUI.contentRect definition code for javax.swing.plaf.basic.BasicSliderUI.contentRect
           
protected  Insets sample code for java.awt.Insets definition code for java.awt.Insets focusInsets sample code for javax.swing.plaf.basic.BasicSliderUI.focusInsets definition code for javax.swing.plaf.basic.BasicSliderUI.focusInsets
           
protected  FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener focusListener sample code for javax.swing.plaf.basic.BasicSliderUI.focusListener definition code for javax.swing.plaf.basic.BasicSliderUI.focusListener
           
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle focusRect sample code for javax.swing.plaf.basic.BasicSliderUI.focusRect definition code for javax.swing.plaf.basic.BasicSliderUI.focusRect
           
protected  Insets sample code for java.awt.Insets definition code for java.awt.Insets insetCache sample code for javax.swing.plaf.basic.BasicSliderUI.insetCache definition code for javax.swing.plaf.basic.BasicSliderUI.insetCache
           
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle labelRect sample code for javax.swing.plaf.basic.BasicSliderUI.labelRect definition code for javax.swing.plaf.basic.BasicSliderUI.labelRect
           
protected  boolean leftToRightCache sample code for javax.swing.plaf.basic.BasicSliderUI.leftToRightCache definition code for javax.swing.plaf.basic.BasicSliderUI.leftToRightCache
           
static int MAX_SCROLL sample code for javax.swing.plaf.basic.BasicSliderUI.MAX_SCROLL definition code for javax.swing.plaf.basic.BasicSliderUI.MAX_SCROLL
           
static int MIN_SCROLL sample code for javax.swing.plaf.basic.BasicSliderUI.MIN_SCROLL definition code for javax.swing.plaf.basic.BasicSliderUI.MIN_SCROLL
           
static int NEGATIVE_SCROLL sample code for javax.swing.plaf.basic.BasicSliderUI.NEGATIVE_SCROLL definition code for javax.swing.plaf.basic.BasicSliderUI.NEGATIVE_SCROLL
           
static int POSITIVE_SCROLL sample code for javax.swing.plaf.basic.BasicSliderUI.POSITIVE_SCROLL definition code for javax.swing.plaf.basic.BasicSliderUI.POSITIVE_SCROLL
           
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener propertyChangeListener sample code for javax.swing.plaf.basic.BasicSliderUI.propertyChangeListener definition code for javax.swing.plaf.basic.BasicSliderUI.propertyChangeListener
           
protected  BasicSliderUI.ScrollListener sample code for javax.swing.plaf.basic.BasicSliderUI.ScrollListener definition code for javax.swing.plaf.basic.BasicSliderUI.ScrollListener scrollListener sample code for javax.swing.plaf.basic.BasicSliderUI.scrollListener definition code for javax.swing.plaf.basic.BasicSliderUI.scrollListener
           
protected  Timer sample code for javax.swing.Timer definition code for javax.swing.Timer scrollTimer sample code for javax.swing.plaf.basic.BasicSliderUI.scrollTimer definition code for javax.swing.plaf.basic.BasicSliderUI.scrollTimer
           
protected  JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider slider sample code for javax.swing.plaf.basic.BasicSliderUI.slider definition code for javax.swing.plaf.basic.BasicSliderUI.slider
           
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle thumbRect sample code for javax.swing.plaf.basic.BasicSliderUI.thumbRect definition code for javax.swing.plaf.basic.BasicSliderUI.thumbRect
           
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle tickRect sample code for javax.swing.plaf.basic.BasicSliderUI.tickRect definition code for javax.swing.plaf.basic.BasicSliderUI.tickRect
           
protected  int trackBuffer sample code for javax.swing.plaf.basic.BasicSliderUI.trackBuffer definition code for javax.swing.plaf.basic.BasicSliderUI.trackBuffer
           
protected  BasicSliderUI.TrackListener sample code for javax.swing.plaf.basic.BasicSliderUI.TrackListener definition code for javax.swing.plaf.basic.BasicSliderUI.TrackListener trackListener sample code for javax.swing.plaf.basic.BasicSliderUI.trackListener definition code for javax.swing.plaf.basic.BasicSliderUI.trackListener
           
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle trackRect sample code for javax.swing.plaf.basic.BasicSliderUI.trackRect definition code for javax.swing.plaf.basic.BasicSliderUI.trackRect
           
 
Constructor Summary
BasicSliderUI sample code for javax.swing.plaf.basic.BasicSliderUI.BasicSliderUI(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.BasicSliderUI(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  b)
           
 
Method Summary
protected  void calculateContentRect sample code for javax.swing.plaf.basic.BasicSliderUI.calculateContentRect() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateContentRect() ()
           
protected  void calculateFocusRect sample code for javax.swing.plaf.basic.BasicSliderUI.calculateFocusRect() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateFocusRect() ()
           
protected  void calculateGeometry sample code for javax.swing.plaf.basic.BasicSliderUI.calculateGeometry() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateGeometry() ()
           
protected  void calculateLabelRect sample code for javax.swing.plaf.basic.BasicSliderUI.calculateLabelRect() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateLabelRect() ()
           
protected  void calculateThumbLocation sample code for javax.swing.plaf.basic.BasicSliderUI.calculateThumbLocation() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateThumbLocation() ()
           
protected  void calculateThumbSize sample code for javax.swing.plaf.basic.BasicSliderUI.calculateThumbSize() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateThumbSize() ()
           
protected  void calculateTickRect sample code for javax.swing.plaf.basic.BasicSliderUI.calculateTickRect() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateTickRect() ()
           
protected  void calculateTrackBuffer sample code for javax.swing.plaf.basic.BasicSliderUI.calculateTrackBuffer() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateTrackBuffer() ()
           
protected  void calculateTrackRect sample code for javax.swing.plaf.basic.BasicSliderUI.calculateTrackRect() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateTrackRect() ()
           
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener createChangeListener sample code for javax.swing.plaf.basic.BasicSliderUI.createChangeListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createChangeListener(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
protected  ComponentListener sample code for java.awt.event.ComponentListener definition code for java.awt.event.ComponentListener createComponentListener sample code for javax.swing.plaf.basic.BasicSliderUI.createComponentListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createComponentListener(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
protected  FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener createFocusListener sample code for javax.swing.plaf.basic.BasicSliderUI.createFocusListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createFocusListener(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicSliderUI.createPropertyChangeListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createPropertyChangeListener(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
protected  BasicSliderUI.ScrollListener sample code for javax.swing.plaf.basic.BasicSliderUI.ScrollListener definition code for javax.swing.plaf.basic.BasicSliderUI.ScrollListener createScrollListener sample code for javax.swing.plaf.basic.BasicSliderUI.createScrollListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createScrollListener(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
protected  BasicSliderUI.TrackListener sample code for javax.swing.plaf.basic.BasicSliderUI.TrackListener definition code for javax.swing.plaf.basic.BasicSliderUI.TrackListener createTrackListener sample code for javax.swing.plaf.basic.BasicSliderUI.createTrackListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createTrackListener(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI createUI sample code for javax.swing.plaf.basic.BasicSliderUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.createUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  b)
           
protected  boolean drawInverted sample code for javax.swing.plaf.basic.BasicSliderUI.drawInverted() definition code for javax.swing.plaf.basic.BasicSliderUI.drawInverted() ()
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color getFocusColor sample code for javax.swing.plaf.basic.BasicSliderUI.getFocusColor() definition code for javax.swing.plaf.basic.BasicSliderUI.getFocusColor() ()
           
protected  int getHeightOfHighValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfHighValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfHighValueLabel() ()
           
protected  int getHeightOfLowValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfLowValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfLowValueLabel() ()
           
protected  int getHeightOfTallestLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfTallestLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfTallestLabel() ()
           
protected  Component sample code for java.awt.Component definition code for java.awt.Component getHighestValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getHighestValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getHighestValueLabel() ()
          Returns the label that corresponds to the lowest slider value in the label table.
protected  Color sample code for java.awt.Color definition code for java.awt.Color getHighlightColor sample code for javax.swing.plaf.basic.BasicSliderUI.getHighlightColor() definition code for javax.swing.plaf.basic.BasicSliderUI.getHighlightColor() ()
           
protected  Component sample code for java.awt.Component definition code for java.awt.Component getLowestValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getLowestValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getLowestValueLabel() ()
          Returns the label that corresponds to the highest slider value in the label table.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMaximumSize sample code for javax.swing.plaf.basic.BasicSliderUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.getMaximumSize(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Returns the specified component's maximum size appropriate for the look and feel.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMinimumHorizontalSize sample code for javax.swing.plaf.basic.BasicSliderUI.getMinimumHorizontalSize() definition code for javax.swing.plaf.basic.BasicSliderUI.getMinimumHorizontalSize() ()
           
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMinimumSize sample code for javax.swing.plaf.basic.BasicSliderUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.getMinimumSize(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Returns the specified component's minimum size appropriate for the look and feel.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMinimumVerticalSize sample code for javax.swing.plaf.basic.BasicSliderUI.getMinimumVerticalSize() definition code for javax.swing.plaf.basic.BasicSliderUI.getMinimumVerticalSize() ()
           
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getPreferredHorizontalSize sample code for javax.swing.plaf.basic.BasicSliderUI.getPreferredHorizontalSize() definition code for javax.swing.plaf.basic.BasicSliderUI.getPreferredHorizontalSize() ()
           
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getPreferredSize sample code for javax.swing.plaf.basic.BasicSliderUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.getPreferredSize(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Returns the specified component's preferred size appropriate for the look and feel.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getPreferredVerticalSize sample code for javax.swing.plaf.basic.BasicSliderUI.getPreferredVerticalSize() definition code for javax.swing.plaf.basic.BasicSliderUI.getPreferredVerticalSize() ()
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color getShadowColor sample code for javax.swing.plaf.basic.BasicSliderUI.getShadowColor() definition code for javax.swing.plaf.basic.BasicSliderUI.getShadowColor() ()
           
protected  Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getThumbSize sample code for javax.swing.plaf.basic.BasicSliderUI.getThumbSize() definition code for javax.swing.plaf.basic.BasicSliderUI.getThumbSize() ()
           
protected  int getTickLength sample code for javax.swing.plaf.basic.BasicSliderUI.getTickLength() definition code for javax.swing.plaf.basic.BasicSliderUI.getTickLength() ()
          Gets the height of the tick area for horizontal sliders and the width of the tick area for vertical sliders.
protected  int getWidthOfHighValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfHighValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfHighValueLabel() ()
           
protected  int getWidthOfLowValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfLowValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfLowValueLabel() ()
           
protected  int getWidthOfWidestLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfWidestLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfWidestLabel() ()
           
protected  void installDefaults sample code for javax.swing.plaf.basic.BasicSliderUI.installDefaults(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.installDefaults(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
protected  void installKeyboardActions sample code for javax.swing.plaf.basic.BasicSliderUI.installKeyboardActions(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.installKeyboardActions(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
protected  void installListeners sample code for javax.swing.plaf.basic.BasicSliderUI.installListeners(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.installListeners(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
 void installUI sample code for javax.swing.plaf.basic.BasicSliderUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.installUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Configures the specified component appropriate for the look and feel.
protected  boolean isDragging sample code for javax.swing.plaf.basic.BasicSliderUI.isDragging() definition code for javax.swing.plaf.basic.BasicSliderUI.isDragging() ()
          Returns true if the user is dragging the slider.
 void paint sample code for javax.swing.plaf.basic.BasicSliderUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.paint(java.awt.Graphics, javax.swing.JComponent) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Paints the specified component appropriate for the look and feel.
 void paintFocus sample code for javax.swing.plaf.basic.BasicSliderUI.paintFocus(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicSliderUI.paintFocus(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
           
protected  void paintHorizontalLabel sample code for javax.swing.plaf.basic.BasicSliderUI.paintHorizontalLabel(java.awt.Graphics, int, java.awt.Component) definition code for javax.swing.plaf.basic.BasicSliderUI.paintHorizontalLabel(java.awt.Graphics, int, java.awt.Component) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int value, Component sample code for java.awt.Component definition code for java.awt.Component  label)
          Called for every label in the label table.
 void paintLabels sample code for javax.swing.plaf.basic.BasicSliderUI.paintLabels(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicSliderUI.paintLabels(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
           
protected  void paintMajorTickForHorizSlider sample code for javax.swing.plaf.basic.BasicSliderUI.paintMajorTickForHorizSlider(java.awt.Graphics, java.awt.Rectangle, int) definition code for javax.swing.plaf.basic.BasicSliderUI.paintMajorTickForHorizSlider(java.awt.Graphics, java.awt.Rectangle, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tickBounds, int x)
           
protected  void paintMajorTickForVertSlider sample code for javax.swing.plaf.basic.BasicSliderUI.paintMajorTickForVertSlider(java.awt.Graphics, java.awt.Rectangle, int) definition code for javax.swing.plaf.basic.BasicSliderUI.paintMajorTickForVertSlider(java.awt.Graphics, java.awt.Rectangle, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tickBounds, int y)
           
protected  void paintMinorTickForHorizSlider sample code for javax.swing.plaf.basic.BasicSliderUI.paintMinorTickForHorizSlider(java.awt.Graphics, java.awt.Rectangle, int) definition code for javax.swing.plaf.basic.BasicSliderUI.paintMinorTickForHorizSlider(java.awt.Graphics, java.awt.Rectangle, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tickBounds, int x)
           
protected  void paintMinorTickForVertSlider sample code for javax.swing.plaf.basic.BasicSliderUI.paintMinorTickForVertSlider(java.awt.Graphics, java.awt.Rectangle, int) definition code for javax.swing.plaf.basic.BasicSliderUI.paintMinorTickForVertSlider(java.awt.Graphics, java.awt.Rectangle, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tickBounds, int y)
           
 void paintThumb sample code for javax.swing.plaf.basic.BasicSliderUI.paintThumb(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicSliderUI.paintThumb(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
           
 void paintTicks sample code for javax.swing.plaf.basic.BasicSliderUI.paintTicks(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicSliderUI.paintTicks(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
           
 void paintTrack sample code for javax.swing.plaf.basic.BasicSliderUI.paintTrack(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicSliderUI.paintTrack(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
           
protected  void paintVerticalLabel sample code for javax.swing.plaf.basic.BasicSliderUI.paintVerticalLabel(java.awt.Graphics, int, java.awt.Component) definition code for javax.swing.plaf.basic.BasicSliderUI.paintVerticalLabel(java.awt.Graphics, int, java.awt.Component) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int value, Component sample code for java.awt.Component definition code for java.awt.Component  label)
          Called for every label in the label table.
protected  void recalculateIfInsetsChanged sample code for javax.swing.plaf.basic.BasicSliderUI.recalculateIfInsetsChanged() definition code for javax.swing.plaf.basic.BasicSliderUI.recalculateIfInsetsChanged() ()
           
protected  void recalculateIfOrientationChanged sample code for javax.swing.plaf.basic.BasicSliderUI.recalculateIfOrientationChanged() definition code for javax.swing.plaf.basic.BasicSliderUI.recalculateIfOrientationChanged() ()
           
 void scrollByBlock sample code for javax.swing.plaf.basic.BasicSliderUI.scrollByBlock(int) definition code for javax.swing.plaf.basic.BasicSliderUI.scrollByBlock(int) (int direction)
           
 void scrollByUnit sample code for javax.swing.plaf.basic.BasicSliderUI.scrollByUnit(int) definition code for javax.swing.plaf.basic.BasicSliderUI.scrollByUnit(int) (int direction)
           
protected  void scrollDueToClickInTrack sample code for javax.swing.plaf.basic.BasicSliderUI.scrollDueToClickInTrack(int) definition code for javax.swing.plaf.basic.BasicSliderUI.scrollDueToClickInTrack(int) (int dir)
          This function is called when a mousePressed was detected in the track, not in the thumb.
 void setThumbLocation sample code for javax.swing.plaf.basic.BasicSliderUI.setThumbLocation(int, int) definition code for javax.swing.plaf.basic.BasicSliderUI.setThumbLocation(int, int) (int x, int y)
           
protected  void uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicSliderUI.uninstallKeyboardActions(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.uninstallKeyboardActions(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
protected  void uninstallListeners sample code for javax.swing.plaf.basic.BasicSliderUI.uninstallListeners(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.uninstallListeners(javax.swing.JSlider) (JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)
           
 void uninstallUI sample code for javax.swing.plaf.basic.BasicSliderUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.uninstallUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Reverses configuration which was done on the specified component during installUI.
 int valueForXPosition sample code for javax.swing.plaf.basic.BasicSliderUI.valueForXPosition(int) definition code for javax.swing.plaf.basic.BasicSliderUI.valueForXPosition(int) (int xPos)
          Returns a value give an x position.
 int valueForYPosition sample code for javax.swing.plaf.basic.BasicSliderUI.valueForYPosition(int) definition code for javax.swing.plaf.basic.BasicSliderUI.valueForYPosition(int) (int yPos)
          Returns a value give a y position.
protected  int xPositionForValue sample code for javax.swing.plaf.basic.BasicSliderUI.xPositionForValue(int) definition code for javax.swing.plaf.basic.BasicSliderUI.xPositionForValue(int) (int value)
           
protected  int yPositionForValue sample code for javax.swing.plaf.basic.BasicSliderUI.yPositionForValue(int) definition code for javax.swing.plaf.basic.BasicSliderUI.yPositionForValue(int) (int value)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
contains sample code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) definition code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) , getAccessibleChild sample code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) definition code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) , getAccessibleChildrenCount sample code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) , update sample code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

POSITIVE_SCROLL sample code for javax.swing.plaf.basic.BasicSliderUI.POSITIVE_SCROLL

public static final int POSITIVE_SCROLL
See Also:
Constant Field Values

NEGATIVE_SCROLL sample code for javax.swing.plaf.basic.BasicSliderUI.NEGATIVE_SCROLL

public static final int NEGATIVE_SCROLL
See Also:
Constant Field Values

MIN_SCROLL sample code for javax.swing.plaf.basic.BasicSliderUI.MIN_SCROLL

public static final int MIN_SCROLL
See Also:
Constant Field Values

MAX_SCROLL sample code for javax.swing.plaf.basic.BasicSliderUI.MAX_SCROLL

public static final int MAX_SCROLL
See Also:
Constant Field Values

scrollTimer sample code for javax.swing.plaf.basic.BasicSliderUI.scrollTimer

protected Timer sample code for javax.swing.Timer definition code for javax.swing.Timer  scrollTimer

slider sample code for javax.swing.plaf.basic.BasicSliderUI.slider

protected JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider

focusInsets sample code for javax.swing.plaf.basic.BasicSliderUI.focusInsets

protected Insets sample code for java.awt.Insets definition code for java.awt.Insets  focusInsets

insetCache sample code for javax.swing.plaf.basic.BasicSliderUI.insetCache

protected Insets sample code for java.awt.Insets definition code for java.awt.Insets  insetCache

leftToRightCache sample code for javax.swing.plaf.basic.BasicSliderUI.leftToRightCache

protected boolean leftToRightCache

focusRect sample code for javax.swing.plaf.basic.BasicSliderUI.focusRect

protected Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  focusRect

contentRect sample code for javax.swing.plaf.basic.BasicSliderUI.contentRect

protected Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  contentRect

labelRect sample code for javax.swing.plaf.basic.BasicSliderUI.labelRect

protected Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  labelRect

tickRect sample code for javax.swing.plaf.basic.BasicSliderUI.tickRect

protected Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tickRect

trackRect sample code for javax.swing.plaf.basic.BasicSliderUI.trackRect

protected Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  trackRect

thumbRect sample code for javax.swing.plaf.basic.BasicSliderUI.thumbRect

protected Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  thumbRect

trackBuffer sample code for javax.swing.plaf.basic.BasicSliderUI.trackBuffer

protected int trackBuffer

trackListener sample code for javax.swing.plaf.basic.BasicSliderUI.trackListener

protected BasicSliderUI.TrackListener sample code for javax.swing.plaf.basic.BasicSliderUI.TrackListener definition code for javax.swing.plaf.basic.BasicSliderUI.TrackListener  trackListener

changeListener sample code for javax.swing.plaf.basic.BasicSliderUI.changeListener

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  changeListener

componentListener sample code for javax.swing.plaf.basic.BasicSliderUI.componentListener

protected ComponentListener sample code for java.awt.event.ComponentListener definition code for java.awt.event.ComponentListener  componentListener

focusListener sample code for javax.swing.plaf.basic.BasicSliderUI.focusListener

protected FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  focusListener

scrollListener sample code for javax.swing.plaf.basic.BasicSliderUI.scrollListener

protected BasicSliderUI.ScrollListener sample code for javax.swing.plaf.basic.BasicSliderUI.ScrollListener definition code for javax.swing.plaf.basic.BasicSliderUI.ScrollListener  scrollListener

propertyChangeListener sample code for javax.swing.plaf.basic.BasicSliderUI.propertyChangeListener

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  propertyChangeListener
Constructor Detail

BasicSliderUI sample code for javax.swing.plaf.basic.BasicSliderUI(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI(javax.swing.JSlider)

public BasicSliderUI(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  b)
Method Detail

getShadowColor sample code for javax.swing.plaf.basic.BasicSliderUI.getShadowColor() definition code for javax.swing.plaf.basic.BasicSliderUI.getShadowColor()

protected Color sample code for java.awt.Color definition code for java.awt.Color  getShadowColor()

getHighlightColor sample code for javax.swing.plaf.basic.BasicSliderUI.getHighlightColor() definition code for javax.swing.plaf.basic.BasicSliderUI.getHighlightColor()

protected Color sample code for java.awt.Color definition code for java.awt.Color  getHighlightColor()

getFocusColor sample code for javax.swing.plaf.basic.BasicSliderUI.getFocusColor() definition code for javax.swing.plaf.basic.BasicSliderUI.getFocusColor()

protected Color sample code for java.awt.Color definition code for java.awt.Color  getFocusColor()

isDragging sample code for javax.swing.plaf.basic.BasicSliderUI.isDragging() definition code for javax.swing.plaf.basic.BasicSliderUI.isDragging()

protected boolean isDragging()
Returns true if the user is dragging the slider.

Returns:
true if the user is dragging the slider
Since:
1.5

createUI sample code for javax.swing.plaf.basic.BasicSliderUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.createUI(javax.swing.JComponent)

public static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI  createUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  b)

installUI sample code for javax.swing.plaf.basic.BasicSliderUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.installUI(javax.swing.JComponent)

public void installUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent)
Configures the specified component appropriate for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:
  1. Install any default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
  2. Install a LayoutManager on the component if necessary.
  3. Create/add any required sub-components to the component.
  4. Create/install event listeners on the component.
  5. Create/install a PropertyChangeListener on the component in order to detect and respond to component property changes appropriately.
  6. Install keyboard UI (mnemonics, traversal, etc.) on the component.
  7. Initialize any appropriate instance data.

Overrides:
installUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component where this UI delegate is being installed
See Also:
ComponentUI.uninstallUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) , JComponent.setUI(javax.swing.plaf.ComponentUI) sample code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) definition code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

uninstallUI sample code for javax.swing.plaf.basic.BasicSliderUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.uninstallUI(javax.swing.JComponent)

public void uninstallUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent)
Reverses configuration which was done on the specified component during installUI. This method is invoked when this UIComponent instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in installUI, being careful to leave the JComponent instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:
  1. Remove any UI-set borders from the component.
  2. Remove any UI-set layout managers on the component.
  3. Remove any UI-added sub-components from the component.
  4. Remove any UI-added event/property listeners from the component.
  5. Remove any UI-installed keyboard UI from the component.
  6. Nullify any allocated instance data objects to allow for GC.

Overrides:
uninstallUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.installUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

installDefaults sample code for javax.swing.plaf.basic.BasicSliderUI.installDefaults(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.installDefaults(javax.swing.JSlider)

protected void installDefaults(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

createTrackListener sample code for javax.swing.plaf.basic.BasicSliderUI.createTrackListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createTrackListener(javax.swing.JSlider)

protected BasicSliderUI.TrackListener sample code for javax.swing.plaf.basic.BasicSliderUI.TrackListener definition code for javax.swing.plaf.basic.BasicSliderUI.TrackListener  createTrackListener(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

createChangeListener sample code for javax.swing.plaf.basic.BasicSliderUI.createChangeListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createChangeListener(javax.swing.JSlider)

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  createChangeListener(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

createComponentListener sample code for javax.swing.plaf.basic.BasicSliderUI.createComponentListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createComponentListener(javax.swing.JSlider)

protected ComponentListener sample code for java.awt.event.ComponentListener definition code for java.awt.event.ComponentListener  createComponentListener(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

createFocusListener sample code for javax.swing.plaf.basic.BasicSliderUI.createFocusListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createFocusListener(javax.swing.JSlider)

protected FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  createFocusListener(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

createScrollListener sample code for javax.swing.plaf.basic.BasicSliderUI.createScrollListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createScrollListener(javax.swing.JSlider)

protected BasicSliderUI.ScrollListener sample code for javax.swing.plaf.basic.BasicSliderUI.ScrollListener definition code for javax.swing.plaf.basic.BasicSliderUI.ScrollListener  createScrollListener(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicSliderUI.createPropertyChangeListener(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.createPropertyChangeListener(javax.swing.JSlider)

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  createPropertyChangeListener(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

installListeners sample code for javax.swing.plaf.basic.BasicSliderUI.installListeners(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.installListeners(javax.swing.JSlider)

protected void installListeners(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

uninstallListeners sample code for javax.swing.plaf.basic.BasicSliderUI.uninstallListeners(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.uninstallListeners(javax.swing.JSlider)

protected void uninstallListeners(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

installKeyboardActions sample code for javax.swing.plaf.basic.BasicSliderUI.installKeyboardActions(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.installKeyboardActions(javax.swing.JSlider)

protected void installKeyboardActions(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicSliderUI.uninstallKeyboardActions(javax.swing.JSlider) definition code for javax.swing.plaf.basic.BasicSliderUI.uninstallKeyboardActions(javax.swing.JSlider)

protected void uninstallKeyboardActions(JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider  slider)

getPreferredHorizontalSize sample code for javax.swing.plaf.basic.BasicSliderUI.getPreferredHorizontalSize() definition code for javax.swing.plaf.basic.BasicSliderUI.getPreferredHorizontalSize()

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getPreferredHorizontalSize()

getPreferredVerticalSize sample code for javax.swing.plaf.basic.BasicSliderUI.getPreferredVerticalSize() definition code for javax.swing.plaf.basic.BasicSliderUI.getPreferredVerticalSize()

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getPreferredVerticalSize()

getMinimumHorizontalSize sample code for javax.swing.plaf.basic.BasicSliderUI.getMinimumHorizontalSize() definition code for javax.swing.plaf.basic.BasicSliderUI.getMinimumHorizontalSize()

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMinimumHorizontalSize()

getMinimumVerticalSize sample code for javax.swing.plaf.basic.BasicSliderUI.getMinimumVerticalSize() definition code for javax.swing.plaf.basic.BasicSliderUI.getMinimumVerticalSize()

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMinimumVerticalSize()

getPreferredSize sample code for javax.swing.plaf.basic.BasicSliderUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.getPreferredSize(javax.swing.JComponent)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getPreferredSize(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent)
Returns the specified component's preferred size appropriate for the look and feel. If null is returned, the preferred size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method returns null.

Overrides:
getPreferredSize sample code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
JComponent.getPreferredSize() sample code for javax.swing.JComponent.getPreferredSize() definition code for javax.swing.JComponent.getPreferredSize() , LayoutManager.preferredLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container)

getMinimumSize sample code for javax.swing.plaf.basic.BasicSliderUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.getMinimumSize(javax.swing.JComponent)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMinimumSize(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent)
Returns the specified component's minimum size appropriate for the look and feel. If null is returned, the minimum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.

Overrides:
getMinimumSize sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Returns:
a Dimension object or null
See Also:
JComponent.getMinimumSize() sample code for javax.swing.JComponent.getMinimumSize() definition code for javax.swing.JComponent.getMinimumSize() , LayoutManager.minimumLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) , ComponentUI.getPreferredSize(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent)

getMaximumSize sample code for javax.swing.plaf.basic.BasicSliderUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.getMaximumSize(javax.swing.JComponent)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMaximumSize(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent)
Returns the specified component's maximum size appropriate for the look and feel. If null is returned, the maximum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.

Overrides:
getMaximumSize sample code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Returns:
a Dimension object or null
See Also:
JComponent.getMaximumSize() sample code for javax.swing.JComponent.getMaximumSize() definition code for javax.swing.JComponent.getMaximumSize() , LayoutManager2.maximumLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager2.maximumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager2.maximumLayoutSize(java.awt.Container)

calculateGeometry sample code for javax.swing.plaf.basic.BasicSliderUI.calculateGeometry() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateGeometry()

protected void calculateGeometry()

calculateFocusRect sample code for javax.swing.plaf.basic.BasicSliderUI.calculateFocusRect() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateFocusRect()

protected void calculateFocusRect()

calculateThumbSize sample code for javax.swing.plaf.basic.BasicSliderUI.calculateThumbSize() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateThumbSize()

protected void calculateThumbSize()

calculateContentRect sample code for javax.swing.plaf.basic.BasicSliderUI.calculateContentRect() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateContentRect()

protected void calculateContentRect()

calculateThumbLocation sample code for javax.swing.plaf.basic.BasicSliderUI.calculateThumbLocation() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateThumbLocation()

protected void calculateThumbLocation()

calculateTrackBuffer sample code for javax.swing.plaf.basic.BasicSliderUI.calculateTrackBuffer() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateTrackBuffer()

protected void calculateTrackBuffer()

calculateTrackRect sample code for javax.swing.plaf.basic.BasicSliderUI.calculateTrackRect() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateTrackRect()

protected void calculateTrackRect()

getTickLength sample code for javax.swing.plaf.basic.BasicSliderUI.getTickLength() definition code for javax.swing.plaf.basic.BasicSliderUI.getTickLength()

protected int getTickLength()
Gets the height of the tick area for horizontal sliders and the width of the tick area for vertical sliders. BasicSliderUI uses the returned value to determine the tick area rectangle. If you want to give your ticks some room, make this larger than you need and paint your ticks away from the sides in paintTicks().


calculateTickRect sample code for javax.swing.plaf.basic.BasicSliderUI.calculateTickRect() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateTickRect()

protected void calculateTickRect()

calculateLabelRect sample code for javax.swing.plaf.basic.BasicSliderUI.calculateLabelRect() definition code for javax.swing.plaf.basic.BasicSliderUI.calculateLabelRect()

protected void calculateLabelRect()

getThumbSize sample code for javax.swing.plaf.basic.BasicSliderUI.getThumbSize() definition code for javax.swing.plaf.basic.BasicSliderUI.getThumbSize()

protected Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getThumbSize()

getWidthOfWidestLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfWidestLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfWidestLabel()

protected int getWidthOfWidestLabel()

getHeightOfTallestLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfTallestLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfTallestLabel()

protected int getHeightOfTallestLabel()

getWidthOfHighValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfHighValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfHighValueLabel()

protected int getWidthOfHighValueLabel()

getWidthOfLowValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfLowValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getWidthOfLowValueLabel()

protected int getWidthOfLowValueLabel()

getHeightOfHighValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfHighValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfHighValueLabel()

protected int getHeightOfHighValueLabel()

getHeightOfLowValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfLowValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getHeightOfLowValueLabel()

protected int getHeightOfLowValueLabel()

drawInverted sample code for javax.swing.plaf.basic.BasicSliderUI.drawInverted() definition code for javax.swing.plaf.basic.BasicSliderUI.drawInverted()

protected boolean drawInverted()

getLowestValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getLowestValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getLowestValueLabel()

protected Component sample code for java.awt.Component definition code for java.awt.Component  getLowestValueLabel()
Returns the label that corresponds to the highest slider value in the label table.

See Also:
JSlider.setLabelTable(java.util.Dictionary) sample code for javax.swing.JSlider.setLabelTable(java.util.Dictionary) definition code for javax.swing.JSlider.setLabelTable(java.util.Dictionary)

getHighestValueLabel sample code for javax.swing.plaf.basic.BasicSliderUI.getHighestValueLabel() definition code for javax.swing.plaf.basic.BasicSliderUI.getHighestValueLabel()

protected Component sample code for java.awt.Component definition code for java.awt.Component  getHighestValueLabel()
Returns the label that corresponds to the lowest slider value in the label table.

See Also:
JSlider.setLabelTable(java.util.Dictionary) sample code for javax.swing.JSlider.setLabelTable(java.util.Dictionary) definition code for javax.swing.JSlider.setLabelTable(java.util.Dictionary)

paint sample code for javax.swing.plaf.basic.BasicSliderUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicSliderUI.paint(java.awt.Graphics, javax.swing.JComponent)

public void paint(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                  JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
Paints the specified component appropriate for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.

Overrides:
paint sample code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
g - the Graphics context in which to paint
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)

recalculateIfInsetsChanged sample code for javax.swing.plaf.basic.BasicSliderUI.recalculateIfInsetsChanged() definition code for javax.swing.plaf.basic.BasicSliderUI.recalculateIfInsetsChanged()

protected void recalculateIfInsetsChanged()

recalculateIfOrientationChanged sample code for javax.swing.plaf.basic.BasicSliderUI.recalculateIfOrientationChanged() definition code for javax.swing.plaf.basic.BasicSliderUI.recalculateIfOrientationChanged()

protected void recalculateIfOrientationChanged()

paintFocus sample code for javax.swing.plaf.basic.BasicSliderUI.paintFocus(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicSliderUI.paintFocus(java.awt.Graphics)

public void paintFocus(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)

paintTrack sample code for javax.swing.plaf.basic.BasicSliderUI.paintTrack(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicSliderUI.paintTrack(java.awt.Graphics)

public void paintTrack(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)

paintTicks sample code for javax.swing.plaf.basic.BasicSliderUI.paintTicks(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicSliderUI.paintTicks(java.awt.Graphics)

public void paintTicks(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)

paintMinorTickForHorizSlider sample code for javax.swing.plaf.basic.BasicSliderUI.paintMinorTickForHorizSlider(java.awt.Graphics, java.awt.Rectangle, int) definition code for javax.swing.plaf.basic.BasicSliderUI.paintMinorTickForHorizSlider(java.awt.Graphics, java.awt.Rectangle, int)

protected void paintMinorTickForHorizSlider(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                            Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tickBounds,
                                            int x)

paintMajorTickForHorizSlider sample code for javax.swing.plaf.basic.BasicSliderUI.paintMajorTickForHorizSlider(java.awt.Graphics, java.awt.Rectangle, int) definition code for javax.swing.plaf.basic.BasicSliderUI.paintMajorTickForHorizSlider(java.awt.Graphics, java.awt.Rectangle, int)

protected void paintMajorTickForHorizSlider(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                            Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tickBounds,
                                            int x)

paintMinorTickForVertSlider sample code for javax.swing.plaf.basic.BasicSliderUI.paintMinorTickForVertSlider(java.awt.Graphics, java.awt.Rectangle, int) definition code for javax.swing.plaf.basic.BasicSliderUI.paintMinorTickForVertSlider(java.awt.Graphics, java.awt.Rectangle, int)

protected void paintMinorTickForVertSlider(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                           Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tickBounds,
                                           int y)

paintMajorTickForVertSlider sample code for javax.swing.plaf.basic.BasicSliderUI.paintMajorTickForVertSlider(java.awt.Graphics, java.awt.Rectangle, int) definition code for javax.swing.plaf.basic.BasicSliderUI.paintMajorTickForVertSlider(java.awt.Graphics, java.awt.Rectangle, int)

protected void paintMajorTickForVertSlider(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                           Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tickBounds,
                                           int y)

paintLabels sample code for javax.swing.plaf.basic.BasicSliderUI.paintLabels(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicSliderUI.paintLabels(java.awt.Graphics)

public void paintLabels(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)

paintHorizontalLabel sample code for javax.swing.plaf.basic.BasicSliderUI.paintHorizontalLabel(java.awt.Graphics, int, java.awt.Component) definition code for javax.swing.plaf.basic.BasicSliderUI.paintHorizontalLabel(java.awt.Graphics, int, java.awt.Component)

protected void paintHorizontalLabel(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                    int value,
                                    Component sample code for java.awt.Component definition code for java.awt.Component  label)
Called for every label in the label table. Used to draw the labels for horizontal sliders. The graphics have been translated to labelRect.y already.

See Also:
JSlider.setLabelTable(java.util.Dictionary) sample code for javax.swing.JSlider.setLabelTable(java.util.Dictionary) definition code for javax.swing.JSlider.setLabelTable(java.util.Dictionary)

paintVerticalLabel sample code for javax.swing.plaf.basic.BasicSliderUI.paintVerticalLabel(java.awt.Graphics, int, java.awt.Component) definition code for javax.swing.plaf.basic.BasicSliderUI.paintVerticalLabel(java.awt.Graphics, int, java.awt.Component)

protected void paintVerticalLabel(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                  int value,
                                  Component sample code for java.awt.Component definition code for java.awt.Component  label)
Called for every label in the label table. Used to draw the labels for vertical sliders. The graphics have been translated to labelRect.x already.

See Also:
JSlider.setLabelTable(java.util.Dictionary) sample code for javax.swing.JSlider.setLabelTable(java.util.Dictionary) definition code for javax.swing.JSlider.setLabelTable(java.util.Dictionary)

paintThumb sample code for javax.swing.plaf.basic.BasicSliderUI.paintThumb(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicSliderUI.paintThumb(java.awt.Graphics)

public void paintThumb(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)

setThumbLocation sample code for javax.swing.plaf.basic.BasicSliderUI.setThumbLocation(int, int) definition code for javax.swing.plaf.basic.BasicSliderUI.setThumbLocation(int, int)

public void setThumbLocation(int x,
                             int y)

scrollByBlock sample code for javax.swing.plaf.basic.BasicSliderUI.scrollByBlock(int) definition code for javax.swing.plaf.basic.BasicSliderUI.scrollByBlock(int)

public void scrollByBlock(int direction)

scrollByUnit sample code for javax.swing.plaf.basic.BasicSliderUI.scrollByUnit(int) definition code for javax.swing.plaf.basic.BasicSliderUI.scrollByUnit(int)

public void scrollByUnit(int direction)

scrollDueToClickInTrack sample code for javax.swing.plaf.basic.BasicSliderUI.scrollDueToClickInTrack(int) definition code for javax.swing.plaf.basic.BasicSliderUI.scrollDueToClickInTrack(int)

protected void scrollDueToClickInTrack(int dir)
This function is called when a mousePressed was detected in the track, not in the thumb. The default behavior is to scroll by block. You can override this method to stop it from scrolling or to add additional behavior.


xPositionForValue sample code for javax.swing.plaf.basic.BasicSliderUI.xPositionForValue(int) definition code for javax.swing.plaf.basic.BasicSliderUI.xPositionForValue(int)

protected int xPositionForValue(int value)

yPositionForValue sample code for javax.swing.plaf.basic.BasicSliderUI.yPositionForValue(int) definition code for javax.swing.plaf.basic.BasicSliderUI.yPositionForValue(int)

protected int yPositionForValue(int value)

valueForYPosition sample code for javax.swing.plaf.basic.BasicSliderUI.valueForYPosition(int) definition code for javax.swing.plaf.basic.BasicSliderUI.valueForYPosition(int)

public int valueForYPosition(int yPos)
Returns a value give a y position. If yPos is past the track at the top or the bottom it will set the value to the min or max of the slider, depending if the slider is inverted or not.


valueForXPosition sample code for javax.swing.plaf.basic.BasicSliderUI.valueForXPosition(int) definition code for javax.swing.plaf.basic.BasicSliderUI.valueForXPosition(int)

public int valueForXPosition(int xPos)
Returns a value give an x position. If xPos is past the track at the left or the right it will set the value to the min or max of the slider, depending if the slider is inverted or not.