API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.metal. MetalScrollBarUI View Source
Author(s)
Tom Santos
Steve Wilson
Since
Version
1.21 08/26/98
Serial
Hierarchy
 Object
      ComponentUI
          ScrollBarUI
              BasicScrollBarUI
                  MetalScrollBarUI
Implements
Subclasses
Description
public class MetalScrollBarUI
  Implementation of ScrollBarUI for the Metal Look and Feel
See also:   
Constructors
public MetalScrollBarUI ()
Methods
Hide/Show inherited methods
public void addLayoutComponent (String name, Component child) [Inherited From BasicScrollBarUI]
protected void configureScrollBarColors () [Overrides BasicScrollBarUI]
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 () [Inherited From BasicScrollBarUI]
protected JButton createDecreaseButton (int orientation) [Overrides BasicScrollBarUI]
Returns the view that represents the decrease view.
protected JButton createIncreaseButton (int orientation) [Overrides BasicScrollBarUI]
Returns the view that represents the increase view.
protected ModelListener createModelListener () [Inherited From BasicScrollBarUI]
protected PropertyChangeListener createPropertyChangeListener () [Overrides BasicScrollBarUI]
protected ScrollListener createScrollListener () [Inherited From BasicScrollBarUI]
protected TrackListener createTrackListener () [Inherited From BasicScrollBarUI]
publicstatic ComponentUI createUI (JComponent c) [Overrides BasicScrollBarUI]
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) [Inherited From BasicScrollBarUI]
 
protected Dimension getMaximumThumbSize () [Inherited From BasicScrollBarUI]
  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 () [Overrides BasicScrollBarUI]
public Dimension getPreferredSize (JComponent c) [Overrides BasicScrollBarUI]
public boolean getSupportsAbsolutePositioning () [Inherited From BasicScrollBarUI]
  Indicates whether the user can absolutely position the thumb with a mouse gesture (usually the middle mouse button).
protected Rectangle getThumbBounds () [Inherited From BasicScrollBarUI]
  Return the current size/location of the thumb.
protected Rectangle getTrackBounds () [Inherited From BasicScrollBarUI]
  Returns the current bounds of the track, i.e.
protected void installComponents () [Inherited From BasicScrollBarUI]
protected void installDefaults () [Overrides BasicScrollBarUI]
protected void installKeyboardActions () [Inherited From BasicScrollBarUI]
protected void installListeners () [Overrides BasicScrollBarUI]
public void installUI (JComponent c) [Inherited From BasicScrollBarUI]
public boolean isThumbRollover () [Inherited From BasicScrollBarUI]
  Returns true if the mouse is currently over the thumb.
public void layoutContainer (Container scrollbarContainer) [Inherited From BasicScrollBarUI]
protected void layoutHScrollbar (JScrollBar sb) [Inherited From BasicScrollBarUI]
protected void layoutVScrollbar (JScrollBar sb) [Inherited From BasicScrollBarUI]
public Dimension minimumLayoutSize (Container scrollbarContainer) [Inherited From BasicScrollBarUI]
public void paint (Graphics g, JComponent c) [Inherited From BasicScrollBarUI]
protected void paintDecreaseHighlight (Graphics g) [Inherited From BasicScrollBarUI]
protected void paintIncreaseHighlight (Graphics g) [Inherited From BasicScrollBarUI]
protected void paintThumb (Graphics g, JComponent c, Rectangle thumbBounds) [Overrides BasicScrollBarUI]
protected void paintTrack (Graphics g, JComponent c, Rectangle trackBounds) [Overrides BasicScrollBarUI]
public Dimension preferredLayoutSize (Container scrollbarContainer) [Inherited From BasicScrollBarUI]
public void removeLayoutComponent (Component child) [Inherited From BasicScrollBarUI]
protected void scrollByBlock (int direction) [Inherited From BasicScrollBarUI]
protected void scrollByUnit (int direction) [Inherited From BasicScrollBarUI]
protected void setThumbBounds (int x, int y, int width, int height) [Overrides BasicScrollBarUI]
  This is overridden only to increase the invalid area.
protected void setThumbRollover (boolean active) [Inherited From BasicScrollBarUI]
  Sets whether or not the mouse is currently over the thumb.
protected void uninstallComponents () [Inherited From BasicScrollBarUI]
protected void uninstallDefaults () [Inherited From BasicScrollBarUI]
protected void uninstallKeyboardActions () [Inherited From BasicScrollBarUI]
protected void uninstallListeners () [Inherited From BasicScrollBarUI]
public void uninstallUI (JComponent c) [Inherited From BasicScrollBarUI]
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
protected MetalBumps bumps
protected ArrowButtonListener buttonListener [Inherited From BasicScrollBarUI]
protected JButton decrButton [Inherited From BasicScrollBarUI]
protectedfinalstatic int DECREASE_HIGHLIGHT = "1" [Inherited From BasicScrollBarUI]
protected MetalScrollButton decreaseButton
publicfinalstatic String FREE_STANDING_PROP = "JScrollBar.isFreeStanding"
protected JButton incrButton [Inherited From BasicScrollBarUI]
protectedfinalstatic int INCREASE_HIGHLIGHT = "2" [Inherited From BasicScrollBarUI]
protected MetalScrollButton increaseButton
protected boolean isDragging [Inherited From BasicScrollBarUI]
protected boolean isFreeStanding
protected Dimension maximumThumbSize [Inherited From BasicScrollBarUI]
protected Dimension minimumThumbSize [Inherited From BasicScrollBarUI]
protected ModelListener modelListener [Inherited From BasicScrollBarUI]
protectedfinalstatic int NO_HIGHLIGHT = "0" [Inherited From BasicScrollBarUI]
protected PropertyChangeListener propertyChangeListener [Inherited From BasicScrollBarUI]
protected JScrollBar scrollbar [Inherited From BasicScrollBarUI]
protected int scrollBarWidth
protected ScrollListener scrollListener [Inherited From BasicScrollBarUI]
protected Timer scrollTimer [Inherited From BasicScrollBarUI]
protected Color thumbColor [Inherited From BasicScrollBarUI]
protected Color thumbDarkShadowColor [Inherited From BasicScrollBarUI]
protected Color thumbHighlightColor [Inherited From BasicScrollBarUI]
protected Color thumbLightShadowColor [Inherited From BasicScrollBarUI]
protected Rectangle thumbRect [Inherited From BasicScrollBarUI]
protected Color trackColor [Inherited From BasicScrollBarUI]
protected int trackHighlight [Inherited From BasicScrollBarUI]
protected Color trackHighlightColor [Inherited From BasicScrollBarUI]
protected TrackListener trackListener [Inherited From BasicScrollBarUI]
protected Rectangle trackRect [Inherited From BasicScrollBarUI]
Nested Classes
  MetalScrollBarUI.ScrollBarListener
  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