javax.swing.plaf.basic
Class BasicScrollBarUI

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.ScrollBarUI sample code for javax.swing.plaf.ScrollBarUI definition code for javax.swing.plaf.ScrollBarUI 
          extended by javax.swing.plaf.basic.BasicScrollBarUI
All Implemented Interfaces:
LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager , SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants
Direct Known Subclasses:
MetalScrollBarUI sample code for javax.swing.plaf.metal.MetalScrollBarUI definition code for javax.swing.plaf.metal.MetalScrollBarUI

public class BasicScrollBarUI
extends ScrollBarUI sample code for javax.swing.plaf.ScrollBarUI definition code for javax.swing.plaf.ScrollBarUI
implements LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager , SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants

Implementation of ScrollBarUI for the Basic Look and Feel


Nested Class Summary
protected  class BasicScrollBarUI.ArrowButtonListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener
          Listener for cursor keys.
protected  class BasicScrollBarUI.ModelListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener
          A listener to listen for model changes.
 class BasicScrollBarUI.PropertyChangeHandler sample code for javax.swing.plaf.basic.BasicScrollBarUI.PropertyChangeHandler definition code for javax.swing.plaf.basic.BasicScrollBarUI.PropertyChangeHandler
           
protected  class BasicScrollBarUI.ScrollListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener
          Listener for scrolling events initiated in the ScrollPane.
protected  class BasicScrollBarUI.TrackListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.TrackListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.TrackListener
          Track mouse drags.
 
Field Summary
protected  BasicScrollBarUI.ArrowButtonListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener buttonListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.buttonListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.buttonListener
           
protected  JButton sample code for javax.swing.JButton definition code for javax.swing.JButton decrButton sample code for javax.swing.plaf.basic.BasicScrollBarUI.decrButton definition code for javax.swing.plaf.basic.BasicScrollBarUI.decrButton
           
protected static int DECREASE_HIGHLIGHT sample code for javax.swing.plaf.basic.BasicScrollBarUI.DECREASE_HIGHLIGHT definition code for javax.swing.plaf.basic.BasicScrollBarUI.DECREASE_HIGHLIGHT
           
protected  JButton sample code for javax.swing.JButton definition code for javax.swing.JButton incrButton sample code for javax.swing.plaf.basic.BasicScrollBarUI.incrButton definition code for javax.swing.plaf.basic.BasicScrollBarUI.incrButton
           
protected static int INCREASE_HIGHLIGHT sample code for javax.swing.plaf.basic.BasicScrollBarUI.INCREASE_HIGHLIGHT definition code for javax.swing.plaf.basic.BasicScrollBarUI.INCREASE_HIGHLIGHT
           
protected  boolean isDragging sample code for javax.swing.plaf.basic.BasicScrollBarUI.isDragging definition code for javax.swing.plaf.basic.BasicScrollBarUI.isDragging
           
protected  Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension maximumThumbSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.maximumThumbSize definition code for javax.swing.plaf.basic.BasicScrollBarUI.maximumThumbSize
           
protected  Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension minimumThumbSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.minimumThumbSize definition code for javax.swing.plaf.basic.BasicScrollBarUI.minimumThumbSize
           
protected  BasicScrollBarUI.ModelListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener modelListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.modelListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.modelListener
           
protected static int NO_HIGHLIGHT sample code for javax.swing.plaf.basic.BasicScrollBarUI.NO_HIGHLIGHT definition code for javax.swing.plaf.basic.BasicScrollBarUI.NO_HIGHLIGHT
           
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener propertyChangeListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.propertyChangeListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.propertyChangeListener
           
protected  JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar scrollbar sample code for javax.swing.plaf.basic.BasicScrollBarUI.scrollbar definition code for javax.swing.plaf.basic.BasicScrollBarUI.scrollbar
           
protected  BasicScrollBarUI.ScrollListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener scrollListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.scrollListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.scrollListener
           
protected  Timer sample code for javax.swing.Timer definition code for javax.swing.Timer scrollTimer sample code for javax.swing.plaf.basic.BasicScrollBarUI.scrollTimer definition code for javax.swing.plaf.basic.BasicScrollBarUI.scrollTimer
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color thumbColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.thumbColor definition code for javax.swing.plaf.basic.BasicScrollBarUI.thumbColor
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color thumbDarkShadowColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.thumbDarkShadowColor definition code for javax.swing.plaf.basic.BasicScrollBarUI.thumbDarkShadowColor
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color thumbHighlightColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.thumbHighlightColor definition code for javax.swing.plaf.basic.BasicScrollBarUI.thumbHighlightColor
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color thumbLightShadowColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.thumbLightShadowColor definition code for javax.swing.plaf.basic.BasicScrollBarUI.thumbLightShadowColor
           
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle thumbRect sample code for javax.swing.plaf.basic.BasicScrollBarUI.thumbRect definition code for javax.swing.plaf.basic.BasicScrollBarUI.thumbRect
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color trackColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.trackColor definition code for javax.swing.plaf.basic.BasicScrollBarUI.trackColor
           
protected  int trackHighlight sample code for javax.swing.plaf.basic.BasicScrollBarUI.trackHighlight definition code for javax.swing.plaf.basic.BasicScrollBarUI.trackHighlight
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color trackHighlightColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.trackHighlightColor definition code for javax.swing.plaf.basic.BasicScrollBarUI.trackHighlightColor
           
protected  BasicScrollBarUI.TrackListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.TrackListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.TrackListener trackListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.trackListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.trackListener
           
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle trackRect sample code for javax.swing.plaf.basic.BasicScrollBarUI.trackRect definition code for javax.swing.plaf.basic.BasicScrollBarUI.trackRect
           
 
Fields inherited from interface javax.swing.SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants
BOTTOM sample code for javax.swing.SwingConstants.BOTTOM definition code for javax.swing.SwingConstants.BOTTOM , CENTER sample code for javax.swing.SwingConstants.CENTER definition code for javax.swing.SwingConstants.CENTER , EAST sample code for javax.swing.SwingConstants.EAST definition code for javax.swing.SwingConstants.EAST , HORIZONTAL sample code for javax.swing.SwingConstants.HORIZONTAL definition code for javax.swing.SwingConstants.HORIZONTAL , LEADING sample code for javax.swing.SwingConstants.LEADING definition code for javax.swing.SwingConstants.LEADING , LEFT sample code for javax.swing.SwingConstants.LEFT definition code for javax.swing.SwingConstants.LEFT , NEXT sample code for javax.swing.SwingConstants.NEXT definition code for javax.swing.SwingConstants.NEXT , NORTH sample code for javax.swing.SwingConstants.NORTH definition code for javax.swing.SwingConstants.NORTH , NORTH_EAST sample code for javax.swing.SwingConstants.NORTH_EAST definition code for javax.swing.SwingConstants.NORTH_EAST , NORTH_WEST sample code for javax.swing.SwingConstants.NORTH_WEST definition code for javax.swing.SwingConstants.NORTH_WEST , PREVIOUS sample code for javax.swing.SwingConstants.PREVIOUS definition code for javax.swing.SwingConstants.PREVIOUS , RIGHT sample code for javax.swing.SwingConstants.RIGHT definition code for javax.swing.SwingConstants.RIGHT , SOUTH sample code for javax.swing.SwingConstants.SOUTH definition code for javax.swing.SwingConstants.SOUTH , SOUTH_EAST sample code for javax.swing.SwingConstants.SOUTH_EAST definition code for javax.swing.SwingConstants.SOUTH_EAST , SOUTH_WEST sample code for javax.swing.SwingConstants.SOUTH_WEST definition code for javax.swing.SwingConstants.SOUTH_WEST , TOP sample code for javax.swing.SwingConstants.TOP definition code for javax.swing.SwingConstants.TOP , TRAILING sample code for javax.swing.SwingConstants.TRAILING definition code for javax.swing.SwingConstants.TRAILING , VERTICAL sample code for javax.swing.SwingConstants.VERTICAL definition code for javax.swing.SwingConstants.VERTICAL , WEST sample code for javax.swing.SwingConstants.WEST definition code for javax.swing.SwingConstants.WEST
 
Constructor Summary
BasicScrollBarUI sample code for javax.swing.plaf.basic.BasicScrollBarUI.BasicScrollBarUI() definition code for javax.swing.plaf.basic.BasicScrollBarUI.BasicScrollBarUI() ()
           
 
Method Summary
 void addLayoutComponent sample code for javax.swing.plaf.basic.BasicScrollBarUI.addLayoutComponent(java.lang.String, java.awt.Component) definition code for javax.swing.plaf.basic.BasicScrollBarUI.addLayoutComponent(java.lang.String, java.awt.Component) (String sample code for java.lang.String definition code for java.lang.String  name, Component sample code for java.awt.Component definition code for java.awt.Component  child)
          If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
protected  void configureScrollBarColors sample code for javax.swing.plaf.basic.BasicScrollBarUI.configureScrollBarColors() definition code for javax.swing.plaf.basic.BasicScrollBarUI.configureScrollBarColors() ()
           
protected  BasicScrollBarUI.ArrowButtonListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener createArrowButtonListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.createArrowButtonListener() definition code for javax.swing.plaf.basic.BasicScrollBarUI.createArrowButtonListener() ()
           
protected  JButton sample code for javax.swing.JButton definition code for javax.swing.JButton createDecreaseButton sample code for javax.swing.plaf.basic.BasicScrollBarUI.createDecreaseButton(int) definition code for javax.swing.plaf.basic.BasicScrollBarUI.createDecreaseButton(int) (int orientation)
           
protected  JButton sample code for javax.swing.JButton definition code for javax.swing.JButton createIncreaseButton sample code for javax.swing.plaf.basic.BasicScrollBarUI.createIncreaseButton(int) definition code for javax.swing.plaf.basic.BasicScrollBarUI.createIncreaseButton(int) (int orientation)
           
protected  BasicScrollBarUI.ModelListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener createModelListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.createModelListener() definition code for javax.swing.plaf.basic.BasicScrollBarUI.createModelListener() ()
           
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.createPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicScrollBarUI.createPropertyChangeListener() ()
           
protected  BasicScrollBarUI.ScrollListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener createScrollListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.createScrollListener() definition code for javax.swing.plaf.basic.BasicScrollBarUI.createScrollListener() ()
           
protected  BasicScrollBarUI.TrackListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.TrackListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.TrackListener createTrackListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.createTrackListener() definition code for javax.swing.plaf.basic.BasicScrollBarUI.createTrackListener() ()
           
static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI createUI sample code for javax.swing.plaf.basic.BasicScrollBarUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.createUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
           
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMaximumSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.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.
protected  Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMaximumThumbSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.getMaximumThumbSize() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getMaximumThumbSize() ()
          Return the largest acceptable size for the thumb.
protected  Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMinimumThumbSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.getMinimumThumbSize() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getMinimumThumbSize() ()
          Return the smallest acceptable size for the thumb.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getPreferredSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.getPreferredSize(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          A vertical scrollbar's preferred width is the maximum of preferred widths of the (non null) increment/decrement buttons, and the minimum width of the thumb.
 boolean getSupportsAbsolutePositioning sample code for javax.swing.plaf.basic.BasicScrollBarUI.getSupportsAbsolutePositioning() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getSupportsAbsolutePositioning() ()
          Indicates whether the user can absolutely position the thumb with a mouse gesture (usually the middle mouse button).
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getThumbBounds sample code for javax.swing.plaf.basic.BasicScrollBarUI.getThumbBounds() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getThumbBounds() ()
          Return the current size/location of the thumb.
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getTrackBounds sample code for javax.swing.plaf.basic.BasicScrollBarUI.getTrackBounds() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getTrackBounds() ()
          Returns the current bounds of the track, i.e.
protected  void installComponents sample code for javax.swing.plaf.basic.BasicScrollBarUI.installComponents() definition code for javax.swing.plaf.basic.BasicScrollBarUI.installComponents() ()
           
protected  void installDefaults sample code for javax.swing.plaf.basic.BasicScrollBarUI.installDefaults() definition code for javax.swing.plaf.basic.BasicScrollBarUI.installDefaults() ()
           
protected  void installKeyboardActions sample code for javax.swing.plaf.basic.BasicScrollBarUI.installKeyboardActions() definition code for javax.swing.plaf.basic.BasicScrollBarUI.installKeyboardActions() ()
           
protected  void installListeners sample code for javax.swing.plaf.basic.BasicScrollBarUI.installListeners() definition code for javax.swing.plaf.basic.BasicScrollBarUI.installListeners() ()
           
 void installUI sample code for javax.swing.plaf.basic.BasicScrollBarUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.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.
 boolean isThumbRollover sample code for javax.swing.plaf.basic.BasicScrollBarUI.isThumbRollover() definition code for javax.swing.plaf.basic.BasicScrollBarUI.isThumbRollover() ()
          Returns true if the mouse is currently over the thumb.
 void layoutContainer sample code for javax.swing.plaf.basic.BasicScrollBarUI.layoutContainer(java.awt.Container) definition code for javax.swing.plaf.basic.BasicScrollBarUI.layoutContainer(java.awt.Container) (Container sample code for java.awt.Container definition code for java.awt.Container  scrollbarContainer)
          Lays out the specified container.
protected  void layoutHScrollbar sample code for javax.swing.plaf.basic.BasicScrollBarUI.layoutHScrollbar(javax.swing.JScrollBar) definition code for javax.swing.plaf.basic.BasicScrollBarUI.layoutHScrollbar(javax.swing.JScrollBar) (JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  sb)
           
protected  void layoutVScrollbar sample code for javax.swing.plaf.basic.BasicScrollBarUI.layoutVScrollbar(javax.swing.JScrollBar) definition code for javax.swing.plaf.basic.BasicScrollBarUI.layoutVScrollbar(javax.swing.JScrollBar) (JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  sb)
           
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension minimumLayoutSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.minimumLayoutSize(java.awt.Container) definition code for javax.swing.plaf.basic.BasicScrollBarUI.minimumLayoutSize(java.awt.Container) (Container sample code for java.awt.Container definition code for java.awt.Container  scrollbarContainer)
          Calculates the minimum size dimensions for the specified container, given the components it contains.
 void paint sample code for javax.swing.plaf.basic.BasicScrollBarUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.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.
protected  void paintDecreaseHighlight sample code for javax.swing.plaf.basic.BasicScrollBarUI.paintDecreaseHighlight(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicScrollBarUI.paintDecreaseHighlight(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
           
protected  void paintIncreaseHighlight sample code for javax.swing.plaf.basic.BasicScrollBarUI.paintIncreaseHighlight(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicScrollBarUI.paintIncreaseHighlight(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
           
protected  void paintThumb sample code for javax.swing.plaf.basic.BasicScrollBarUI.paintThumb(java.awt.Graphics, javax.swing.JComponent, java.awt.Rectangle) definition code for javax.swing.plaf.basic.BasicScrollBarUI.paintThumb(java.awt.Graphics, javax.swing.JComponent, java.awt.Rectangle) (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, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  thumbBounds)
           
protected  void paintTrack sample code for javax.swing.plaf.basic.BasicScrollBarUI.paintTrack(java.awt.Graphics, javax.swing.JComponent, java.awt.Rectangle) definition code for javax.swing.plaf.basic.BasicScrollBarUI.paintTrack(java.awt.Graphics, javax.swing.JComponent, java.awt.Rectangle) (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, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  trackBounds)
           
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension preferredLayoutSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.preferredLayoutSize(java.awt.Container) definition code for javax.swing.plaf.basic.BasicScrollBarUI.preferredLayoutSize(java.awt.Container) (Container sample code for java.awt.Container definition code for java.awt.Container  scrollbarContainer)
          Calculates the preferred size dimensions for the specified container, given the components it contains.
 void removeLayoutComponent sample code for javax.swing.plaf.basic.BasicScrollBarUI.removeLayoutComponent(java.awt.Component) definition code for javax.swing.plaf.basic.BasicScrollBarUI.removeLayoutComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  child)
          Removes the specified component from the layout.
protected  void scrollByBlock sample code for javax.swing.plaf.basic.BasicScrollBarUI.scrollByBlock(int) definition code for javax.swing.plaf.basic.BasicScrollBarUI.scrollByBlock(int) (int direction)
           
protected  void scrollByUnit sample code for javax.swing.plaf.basic.BasicScrollBarUI.scrollByUnit(int) definition code for javax.swing.plaf.basic.BasicScrollBarUI.scrollByUnit(int) (int direction)
           
protected  void setThumbBounds sample code for javax.swing.plaf.basic.BasicScrollBarUI.setThumbBounds(int, int, int, int) definition code for javax.swing.plaf.basic.BasicScrollBarUI.setThumbBounds(int, int, int, int) (int x, int y, int width, int height)
          Set the bounds of the thumb and force a repaint that includes the old thumbBounds and the new one.
protected  void setThumbRollover sample code for javax.swing.plaf.basic.BasicScrollBarUI.setThumbRollover(boolean) definition code for javax.swing.plaf.basic.BasicScrollBarUI.setThumbRollover(boolean) (boolean active)
          Sets whether or not the mouse is currently over the thumb.
protected  void uninstallComponents sample code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallComponents() definition code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallComponents() ()
           
protected  void uninstallDefaults sample code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallDefaults() ()
           
protected  void uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallKeyboardActions() definition code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallKeyboardActions() ()
           
protected  void uninstallListeners sample code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallListeners() definition code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallListeners() ()
           
 void uninstallUI sample code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.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.
 
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) , getMinimumSize sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(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

minimumThumbSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.minimumThumbSize

protected Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  minimumThumbSize

maximumThumbSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.maximumThumbSize

protected Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  maximumThumbSize

thumbHighlightColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.thumbHighlightColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  thumbHighlightColor

thumbLightShadowColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.thumbLightShadowColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  thumbLightShadowColor

thumbDarkShadowColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.thumbDarkShadowColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  thumbDarkShadowColor

thumbColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.thumbColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  thumbColor

trackColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.trackColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  trackColor

trackHighlightColor sample code for javax.swing.plaf.basic.BasicScrollBarUI.trackHighlightColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  trackHighlightColor

scrollbar sample code for javax.swing.plaf.basic.BasicScrollBarUI.scrollbar

protected JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  scrollbar

incrButton sample code for javax.swing.plaf.basic.BasicScrollBarUI.incrButton

protected JButton sample code for javax.swing.JButton definition code for javax.swing.JButton  incrButton

decrButton sample code for javax.swing.plaf.basic.BasicScrollBarUI.decrButton

protected JButton sample code for javax.swing.JButton definition code for javax.swing.JButton  decrButton

isDragging sample code for javax.swing.plaf.basic.BasicScrollBarUI.isDragging

protected boolean isDragging

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

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

buttonListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.buttonListener

protected BasicScrollBarUI.ArrowButtonListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener  buttonListener

modelListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.modelListener

protected BasicScrollBarUI.ModelListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener  modelListener

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

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

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

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

trackHighlight sample code for javax.swing.plaf.basic.BasicScrollBarUI.trackHighlight

protected int trackHighlight

NO_HIGHLIGHT sample code for javax.swing.plaf.basic.BasicScrollBarUI.NO_HIGHLIGHT

protected static final int NO_HIGHLIGHT
See Also:
Constant Field Values

DECREASE_HIGHLIGHT sample code for javax.swing.plaf.basic.BasicScrollBarUI.DECREASE_HIGHLIGHT

protected static final int DECREASE_HIGHLIGHT
See Also:
Constant Field Values

INCREASE_HIGHLIGHT sample code for javax.swing.plaf.basic.BasicScrollBarUI.INCREASE_HIGHLIGHT

protected static final int INCREASE_HIGHLIGHT
See Also:
Constant Field Values

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

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

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

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

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

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

BasicScrollBarUI sample code for javax.swing.plaf.basic.BasicScrollBarUI() definition code for javax.swing.plaf.basic.BasicScrollBarUI()

public BasicScrollBarUI()
Method Detail

createUI sample code for javax.swing.plaf.basic.BasicScrollBarUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.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  c)

configureScrollBarColors sample code for javax.swing.plaf.basic.BasicScrollBarUI.configureScrollBarColors() definition code for javax.swing.plaf.basic.BasicScrollBarUI.configureScrollBarColors()

protected void configureScrollBarColors()

installUI sample code for javax.swing.plaf.basic.BasicScrollBarUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.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.BasicScrollBarUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.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.BasicScrollBarUI.installDefaults() definition code for javax.swing.plaf.basic.BasicScrollBarUI.installDefaults()

protected void installDefaults()

installComponents sample code for javax.swing.plaf.basic.BasicScrollBarUI.installComponents() definition code for javax.swing.plaf.basic.BasicScrollBarUI.installComponents()

protected void installComponents()

uninstallComponents sample code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallComponents() definition code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallComponents()

protected void uninstallComponents()

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

protected void installListeners()

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

protected void installKeyboardActions()

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

protected void uninstallKeyboardActions()

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

protected void uninstallListeners()

uninstallDefaults sample code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicScrollBarUI.uninstallDefaults()

protected void uninstallDefaults()

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

protected BasicScrollBarUI.TrackListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.TrackListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.TrackListener  createTrackListener()

createArrowButtonListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.createArrowButtonListener() definition code for javax.swing.plaf.basic.BasicScrollBarUI.createArrowButtonListener()

protected BasicScrollBarUI.ArrowButtonListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener  createArrowButtonListener()

createModelListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.createModelListener() definition code for javax.swing.plaf.basic.BasicScrollBarUI.createModelListener()

protected BasicScrollBarUI.ModelListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener  createModelListener()

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

protected BasicScrollBarUI.ScrollListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener  createScrollListener()

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

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  createPropertyChangeListener()

setThumbRollover sample code for javax.swing.plaf.basic.BasicScrollBarUI.setThumbRollover(boolean) definition code for javax.swing.plaf.basic.BasicScrollBarUI.setThumbRollover(boolean)

protected void setThumbRollover(boolean active)
Sets whether or not the mouse is currently over the thumb.

Parameters:
active - True indicates the thumb is currently active.
Since:
1.5

isThumbRollover sample code for javax.swing.plaf.basic.BasicScrollBarUI.isThumbRollover() definition code for javax.swing.plaf.basic.BasicScrollBarUI.isThumbRollover()

public boolean isThumbRollover()
Returns true if the mouse is currently over the thumb.

Returns:
true if the thumb is currently active
Since:
1.5

paint sample code for javax.swing.plaf.basic.BasicScrollBarUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.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)

getPreferredSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.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)
A vertical scrollbar's preferred width is the maximum of preferred widths of the (non null) increment/decrement buttons, and the minimum width of the thumb. The preferred height is the sum of the preferred heights of the same parts. The basis for the preferred size of a horizontal scrollbar is similar.

The preferredSize is only computed once, subsequent calls to this method just return a cached size.

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 JScrollBar that's delegating this method to us
Returns:
the preferred size of a Basic JScrollBar
See Also:
getMaximumSize(javax.swing.JComponent) sample code for javax.swing.plaf.basic.BasicScrollBarUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.getMaximumSize(javax.swing.JComponent) , ComponentUI.getMinimumSize(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent)

getMaximumSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.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 JScrollBar that's delegating this method to us.
Returns:
new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
See Also:
ComponentUI.getMinimumSize(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) , getPreferredSize(javax.swing.JComponent) sample code for javax.swing.plaf.basic.BasicScrollBarUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollBarUI.getPreferredSize(javax.swing.JComponent)

createDecreaseButton sample code for javax.swing.plaf.basic.BasicScrollBarUI.createDecreaseButton(int) definition code for javax.swing.plaf.basic.BasicScrollBarUI.createDecreaseButton(int)

protected JButton sample code for javax.swing.JButton definition code for javax.swing.JButton  createDecreaseButton(int orientation)

createIncreaseButton sample code for javax.swing.plaf.basic.BasicScrollBarUI.createIncreaseButton(int) definition code for javax.swing.plaf.basic.BasicScrollBarUI.createIncreaseButton(int)

protected JButton sample code for javax.swing.JButton definition code for javax.swing.JButton  createIncreaseButton(int orientation)

paintDecreaseHighlight sample code for javax.swing.plaf.basic.BasicScrollBarUI.paintDecreaseHighlight(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicScrollBarUI.paintDecreaseHighlight(java.awt.Graphics)

protected void paintDecreaseHighlight(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)

paintIncreaseHighlight sample code for javax.swing.plaf.basic.BasicScrollBarUI.paintIncreaseHighlight(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicScrollBarUI.paintIncreaseHighlight(java.awt.Graphics)

protected void paintIncreaseHighlight(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)

paintTrack sample code for javax.swing.plaf.basic.BasicScrollBarUI.paintTrack(java.awt.Graphics, javax.swing.JComponent, java.awt.Rectangle) definition code for javax.swing.plaf.basic.BasicScrollBarUI.paintTrack(java.awt.Graphics, javax.swing.JComponent, java.awt.Rectangle)

protected void paintTrack(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,
                          Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  trackBounds)

paintThumb sample code for javax.swing.plaf.basic.BasicScrollBarUI.paintThumb(java.awt.Graphics, javax.swing.JComponent, java.awt.Rectangle) definition code for javax.swing.plaf.basic.BasicScrollBarUI.paintThumb(java.awt.Graphics, javax.swing.JComponent, java.awt.Rectangle)

protected void paintThumb(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,
                          Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  thumbBounds)

getMinimumThumbSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.getMinimumThumbSize() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getMinimumThumbSize()

protected Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMinimumThumbSize()
Return the smallest acceptable size for the thumb. If the scrollbar becomes so small that this size isn't available, the thumb will be hidden.

Warning : the value returned by this method should not be be modified, it's a shared static constant.

Returns:
The smallest acceptable size for the thumb.
See Also:
getMaximumThumbSize() sample code for javax.swing.plaf.basic.BasicScrollBarUI.getMaximumThumbSize() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getMaximumThumbSize()

getMaximumThumbSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.getMaximumThumbSize() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getMaximumThumbSize()

protected Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMaximumThumbSize()
Return the largest acceptable size for the thumb. To create a fixed size thumb one make this method and getMinimumThumbSize return the same value.

Warning : the value returned by this method should not be be modified, it's a shared static constant.

Returns:
The largest acceptable size for the thumb.
See Also:
getMinimumThumbSize() sample code for javax.swing.plaf.basic.BasicScrollBarUI.getMinimumThumbSize() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getMinimumThumbSize()

addLayoutComponent sample code for javax.swing.plaf.basic.BasicScrollBarUI.addLayoutComponent(java.lang.String, java.awt.Component) definition code for javax.swing.plaf.basic.BasicScrollBarUI.addLayoutComponent(java.lang.String, java.awt.Component)

public void addLayoutComponent(String sample code for java.lang.String definition code for java.lang.String  name,
                               Component sample code for java.awt.Component definition code for java.awt.Component  child)
Description copied from interface: LayoutManager sample code for java.awt.LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component) definition code for java.awt.LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component)
If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

Specified by:
addLayoutComponent sample code for java.awt.LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component) definition code for java.awt.LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component) in interface LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager
Parameters:
name - the string to be associated with the component
child - the component to be added

removeLayoutComponent sample code for javax.swing.plaf.basic.BasicScrollBarUI.removeLayoutComponent(java.awt.Component) definition code for javax.swing.plaf.basic.BasicScrollBarUI.removeLayoutComponent(java.awt.Component)

public void removeLayoutComponent(Component sample code for java.awt.Component definition code for java.awt.Component  child)
Description copied from interface: LayoutManager sample code for java.awt.LayoutManager.removeLayoutComponent(java.awt.Component) definition code for java.awt.LayoutManager.removeLayoutComponent(java.awt.Component)
Removes the specified component from the layout.

Specified by:
removeLayoutComponent sample code for java.awt.LayoutManager.removeLayoutComponent(java.awt.Component) definition code for java.awt.LayoutManager.removeLayoutComponent(java.awt.Component) in interface LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager
Parameters:
child - the component to be removed

preferredLayoutSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.preferredLayoutSize(java.awt.Container) definition code for javax.swing.plaf.basic.BasicScrollBarUI.preferredLayoutSize(java.awt.Container)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  preferredLayoutSize(Container sample code for java.awt.Container definition code for java.awt.Container  scrollbarContainer)
Description copied from interface: LayoutManager sample code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container)
Calculates the preferred size dimensions for the specified container, given the components it contains.

Specified by:
preferredLayoutSize sample code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container) in interface LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager
Parameters:
scrollbarContainer - the container to be laid out
See Also:
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)

minimumLayoutSize sample code for javax.swing.plaf.basic.BasicScrollBarUI.minimumLayoutSize(java.awt.Container) definition code for javax.swing.plaf.basic.BasicScrollBarUI.minimumLayoutSize(java.awt.Container)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  minimumLayoutSize(Container sample code for java.awt.Container definition code for java.awt.Container  scrollbarContainer)
Description copied from interface: LayoutManager sample code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container)
Calculates the minimum size dimensions for the specified container, given the components it contains.

Specified by:
minimumLayoutSize sample code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) in interface LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager
Parameters:
scrollbarContainer - the component to be laid out
See Also:
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)

layoutVScrollbar sample code for javax.swing.plaf.basic.BasicScrollBarUI.layoutVScrollbar(javax.swing.JScrollBar) definition code for javax.swing.plaf.basic.BasicScrollBarUI.layoutVScrollbar(javax.swing.JScrollBar)

protected void layoutVScrollbar(JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  sb)

layoutHScrollbar sample code for javax.swing.plaf.basic.BasicScrollBarUI.layoutHScrollbar(javax.swing.JScrollBar) definition code for javax.swing.plaf.basic.BasicScrollBarUI.layoutHScrollbar(javax.swing.JScrollBar)

protected void layoutHScrollbar(JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  sb)

layoutContainer sample code for javax.swing.plaf.basic.BasicScrollBarUI.layoutContainer(java.awt.Container) definition code for javax.swing.plaf.basic.BasicScrollBarUI.layoutContainer(java.awt.Container)

public void layoutContainer(Container sample code for java.awt.Container definition code for java.awt.Container  scrollbarContainer)
Description copied from interface: LayoutManager sample code for java.awt.LayoutManager.layoutContainer(java.awt.Container) definition code for java.awt.LayoutManager.layoutContainer(java.awt.Container)
Lays out the specified container.

Specified by:
layoutContainer sample code for java.awt.LayoutManager.layoutContainer(java.awt.Container) definition code for java.awt.LayoutManager.layoutContainer(java.awt.Container) in interface LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager
Parameters:
scrollbarContainer - the container to be laid out

setThumbBounds sample code for javax.swing.plaf.basic.BasicScrollBarUI.setThumbBounds(int, int, int, int) definition code for javax.swing.plaf.basic.BasicScrollBarUI.setThumbBounds(int, int, int, int)

protected void setThumbBounds(int x,
                              int y,
                              int width,
                              int height)
Set the bounds of the thumb and force a repaint that includes the old thumbBounds and the new one.

See Also:
getThumbBounds() sample code for javax.swing.plaf.basic.BasicScrollBarUI.getThumbBounds() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getThumbBounds()

getThumbBounds sample code for javax.swing.plaf.basic.BasicScrollBarUI.getThumbBounds() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getThumbBounds()

protected Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getThumbBounds()
Return the current size/location of the thumb.

Warning : the value returned by this method should not be be modified, it's a reference to the actual rectangle, not a copy.

Returns:
The current size/location of the thumb.
See Also:
setThumbBounds(int, int, int, int) sample code for javax.swing.plaf.basic.BasicScrollBarUI.setThumbBounds(int, int, int, int) definition code for javax.swing.plaf.basic.BasicScrollBarUI.setThumbBounds(int, int, int, int)

getTrackBounds sample code for javax.swing.plaf.basic.BasicScrollBarUI.getTrackBounds() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getTrackBounds()

protected Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getTrackBounds()
Returns the current bounds of the track, i.e. the space in between the increment and decrement buttons, less the insets. The value returned by this method is updated each time the scrollbar is laid out (validated).

Warning : the value returned by this method should not be be modified, it's a reference to the actual rectangle, not a copy.

Returns:
the current bounds of the scrollbar track
See Also:
layoutContainer(java.awt.Container) sample code for javax.swing.plaf.basic.BasicScrollBarUI.layoutContainer(java.awt.Container) definition code for javax.swing.plaf.basic.BasicScrollBarUI.layoutContainer(java.awt.Container)

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

protected void scrollByBlock(int direction)

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

protected void scrollByUnit(int direction)

getSupportsAbsolutePositioning sample code for javax.swing.plaf.basic.BasicScrollBarUI.getSupportsAbsolutePositioning() definition code for javax.swing.plaf.basic.BasicScrollBarUI.getSupportsAbsolutePositioning()

public boolean getSupportsAbsolutePositioning()
Indicates whether the user can absolutely position the thumb with a mouse gesture (usually the middle mouse button).

Returns:
true if a mouse gesture can absolutely position the thumb
Since:
1.5