uic.themes
Class UICScrollBarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ScrollBarUI
          extended by javax.swing.plaf.basic.BasicScrollBarUI
              extended by uic.themes.UICScrollBarUI
All Implemented Interfaces:
LayoutManager, SwingConstants

public class UICScrollBarUI
extends BasicScrollBarUI

Improved look for the scrollbars

Since:
2.0

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollBarUI
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicScrollBarUI
buttonListener, decrButton, DECREASE_HIGHLIGHT, incrButton, INCREASE_HIGHLIGHT, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRect
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
UICScrollBarUI()
           
 
Method Summary
protected  BasicScrollBarUI.ArrowButtonListener createArrowButtonListener()
           
protected  JButton createDecreaseButton(int orientation)
           
protected  JButton createIncreaseButton(int orientation)
           
static ComponentUI createUI(JComponent c)
           
 Dimension getPreferredSize(JComponent c)
          Override the default preferred size.
protected  void installComponents()
           
protected  void paintHorizontalThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  void paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void paintVerticalThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI
addLayoutComponent, configureScrollBarColors, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMinimumSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UICScrollBarUI

public UICScrollBarUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

paintTrack

protected void paintTrack(Graphics g,
                          JComponent c,
                          Rectangle trackBounds)
Overrides:
paintTrack in class BasicScrollBarUI

paintThumb

protected void paintThumb(Graphics g,
                          JComponent c,
                          Rectangle thumbBounds)
Overrides:
paintThumb in class BasicScrollBarUI

paintVerticalThumb

protected void paintVerticalThumb(Graphics g,
                                  JComponent c,
                                  Rectangle thumbBounds)

paintHorizontalThumb

protected void paintHorizontalThumb(Graphics g,
                                    JComponent c,
                                    Rectangle thumbBounds)

installComponents

protected void installComponents()
Overrides:
installComponents in class BasicScrollBarUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Override the default preferred size. Override the default preferred size to be dependant on the label font as set in the UIManager to make the scrollbars scale

Overrides:
getPreferredSize in class BasicScrollBarUI

createArrowButtonListener

protected BasicScrollBarUI.ArrowButtonListener createArrowButtonListener()
Overrides:
createArrowButtonListener in class BasicScrollBarUI

createIncreaseButton

protected JButton createIncreaseButton(int orientation)
Overrides:
createIncreaseButton in class BasicScrollBarUI

createDecreaseButton

protected JButton createDecreaseButton(int orientation)
Overrides:
createDecreaseButton in class BasicScrollBarUI


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence