API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.basic. BasicScrollBarUI View Source
Author(s)
Rich Schiavi
David Kloba
Hans Muller
Since
Version
1.87 11/17/05
Serial
Hierarchy
 Object
      ComponentUI
          ScrollBarUI
              BasicScrollBarUI
Implements
 LayoutManager
 SwingConstants
Subclasses
Description
public class BasicScrollBarUI
Implementation of ScrollBarUI for the Basic Look and Feel
See also:   
Constructors
public BasicScrollBarUI ()
Methods
Hide/Show inherited methods
public void addLayoutComponent (String name, Component child) [Specified in LayoutManager]
protected void configureScrollBarColors ()
public boolean contains (JComponent c, int x, int y) [Inherited From ComponentUI]
  Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
protected ArrowButtonListener createArrowButtonListener ()
protected JButton createDecreaseButton (int orientation)
protected JButton createIncreaseButton (int orientation)
protected ModelListener createModelListener ()
protected PropertyChangeListener createPropertyChangeListener ()
protected ScrollListener createScrollListener ()
protected TrackListener createTrackListener ()
publicstatic ComponentUI createUI (JComponent c) [Overrides ComponentUI]
public Accessible getAccessibleChild (JComponent c, int i) [Inherited From ComponentUI]
  Returns the ith Accessible child of the object.
public int getAccessibleChildrenCount (JComponent c) [Inherited From ComponentUI]
  Returns the number of accessible children in the object.
public int getBaseline (JComponent c, int width, int height) [Inherited From ComponentUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Inherited From ComponentUI]
  Returns an enum indicating how the baseline of he component changes as the size changes.
public Dimension getMaximumSize (JComponent c) [Overrides ComponentUI]
 
protected Dimension getMaximumThumbSize ()
  Return the largest acceptable size for the thumb.
public Dimension getMinimumSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's minimum size appropriate for the look and feel.
protected Dimension getMinimumThumbSize ()
  Return the smallest acceptable size for the thumb.
public Dimension getPreferredSize (JComponent c) [Overrides ComponentUI]
  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.
public boolean getSupportsAbsolutePositioning ()
  Indicates whether the user can absolutely position the thumb with a mouse gesture (usually the middle mouse button).
protected Rectangle getThumbBounds ()
  Return the current size/location of the thumb.
protected Rectangle getTrackBounds ()
  Returns the current bounds of the track, i.e.
protected void installComponents ()
protected void installDefaults ()
protected void installKeyboardActions ()
protected void installListeners ()
public void installUI (JComponent c) [Overrides ComponentUI]
public boolean isThumbRollover ()
  Returns true if the mouse is currently over the thumb.
public void layoutContainer (Container scrollbarContainer) [Specified in LayoutManager]
protected void layoutHScrollbar (JScrollBar sb)
protected void layoutVScrollbar (JScrollBar sb)
pack-privatestatic void loadActionMap (LazyActionMap map)
public Dimension minimumLayoutSize (Container scrollbarContainer) [Specified in LayoutManager]
public void paint (Graphics g, JComponent c) [Overrides ComponentUI]
protected void paintDecreaseHighlight (Graphics g)
protected void paintIncreaseHighlight (Graphics g)
protected void paintThumb (Graphics g, JComponent c, Rectangle thumbBounds)
protected void paintTrack (Graphics g, JComponent c, Rectangle trackBounds)
public Dimension preferredLayoutSize (Container scrollbarContainer) [Specified in LayoutManager]
public void removeLayoutComponent (Component child) [Specified in LayoutManager]
protected void scrollByBlock (int direction)
pack-privatestatic void scrollByBlock (JScrollBar scrollbar, int direction)
protected void scrollByUnit (int direction)
pack-privatestatic void scrollByUnits (JScrollBar scrollbar, int direction, int units, boolean limitToBlock)
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.
protected void setThumbRollover (boolean active)
  Sets whether or not the mouse is currently over the thumb.
protected void uninstallComponents ()
protected void uninstallDefaults ()
protected void uninstallKeyboardActions ()
protected void uninstallListeners ()
public void uninstallUI (JComponent c) [Overrides ComponentUI]
public void update (Graphics g, JComponent c) [Inherited From ComponentUI]
  Notifies this UI delegate that it's time to paint the specified component.
Fields
Hide/Show inherited fields
publicfinalstatic int BOTTOM = "3" [Inherited From SwingConstants]
Box-orientation constant used to specify the bottom of a box.
protected ArrowButtonListener buttonListener
publicfinalstatic int CENTER = "0" [Inherited From SwingConstants]
  The central position in an area.
protected JButton decrButton
protectedfinalstatic int DECREASE_HIGHLIGHT = "1"
publicfinalstatic int EAST = "3" [Inherited From SwingConstants]
Compass-direction east (right).
publicfinalstatic int HORIZONTAL = "0" [Inherited From SwingConstants]
  Horizontal orientation.
protected JButton incrButton
protectedfinalstatic int INCREASE_HIGHLIGHT = "2"
protected boolean isDragging
publicfinalstatic int LEADING = "10" [Inherited From SwingConstants]
  Identifies the leading edge of text for use with left-to-right and right-to-left languages.
publicfinalstatic int LEFT = "2" [Inherited From SwingConstants]
Box-orientation constant used to specify the left side of a box.
protected Dimension maximumThumbSize
protected Dimension minimumThumbSize
protected ModelListener modelListener
publicfinalstatic int NEXT = "12" [Inherited From SwingConstants]
  Identifies the next direction in a sequence.
protectedfinalstatic int NO_HIGHLIGHT = "0"
publicfinalstatic int NORTH = "1" [Inherited From SwingConstants]
Compass-direction North (up).
publicfinalstatic int NORTH_EAST = "2" [Inherited From SwingConstants]
Compass-direction north-east (upper right).
publicfinalstatic int NORTH_WEST = "8" [Inherited From SwingConstants]
Compass-direction north west (upper left).
publicfinalstatic int PREVIOUS = "13" [Inherited From SwingConstants]
  Identifies the previous direction in a sequence.
protected PropertyChangeListener propertyChangeListener
publicfinalstatic int RIGHT = "4" [Inherited From SwingConstants]
Box-orientation constant used to specify the right side of a box.
protected JScrollBar scrollbar
protected ScrollListener scrollListener
protected Timer scrollTimer
publicfinalstatic int SOUTH = "5" [Inherited From SwingConstants]
Compass-direction south (down).
publicfinalstatic int SOUTH_EAST = "4" [Inherited From SwingConstants]
Compass-direction south-east (lower right).
publicfinalstatic int SOUTH_WEST = "6" [Inherited From SwingConstants]
Compass-direction south-west (lower left).
protected Color thumbColor
protected Color thumbDarkShadowColor
protected Color thumbHighlightColor
protected Color thumbLightShadowColor
protected Rectangle thumbRect
publicfinalstatic int TOP = "1" [Inherited From SwingConstants]
Box-orientation constant used to specify the top of a box.
protected Color trackColor
protected int trackHighlight
protected Color trackHighlightColor
protected TrackListener trackListener
protected Rectangle trackRect
publicfinalstatic int TRAILING = "11" [Inherited From SwingConstants]
  Identifies the trailing edge of text for use with left-to-right and right-to-left languages.
publicfinalstatic int VERTICAL = "1" [Inherited From SwingConstants]
  Vertical orientation.
publicfinalstatic int WEST = "7" [Inherited From SwingConstants]
Compass-direction west (left).
Nested Classes
  BasicScrollBarUI.ModelListener
A listener to listen for model changes.
  BasicScrollBarUI.TrackListener
Track mouse drags.
  BasicScrollBarUI.ArrowButtonListener
Listener for cursor keys.
  BasicScrollBarUI.ScrollListener
Listener for scrolling events initiated in the ScrollPane.
  BasicScrollBarUI.PropertyChangeHandler
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar