com.incors.plaf.kunststoff
Class KunststoffScrollBarUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ScrollBarUI
          extended byjavax.swing.plaf.basic.BasicScrollBarUI
              extended byjavax.swing.plaf.metal.MetalScrollBarUI
                  extended bycom.incors.plaf.kunststoff.KunststoffScrollBarUI
All Implemented Interfaces:
java.awt.LayoutManager, javax.swing.SwingConstants

public class KunststoffScrollBarUI
extends javax.swing.plaf.metal.MetalScrollBarUI


Nested Class Summary
 
Nested classes inherited from class javax.swing.plaf.metal.MetalScrollBarUI
 
Nested classes inherited from class javax.swing.plaf.basic.BasicScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener, javax.swing.plaf.basic.BasicScrollBarUI.ModelListener, javax.swing.plaf.basic.BasicScrollBarUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener, javax.swing.plaf.basic.BasicScrollBarUI.TrackListener
 
Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalScrollBarUI
bumps, decreaseButton, FREE_STANDING_PROP, increaseButton, isFreeStanding, scrollBarWidth
 
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, thumbDarkShadowColor, 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
KunststoffScrollBarUI()
           
 
Method Summary
protected  javax.swing.JButton createDecreaseButton(int orientation)
           
protected  javax.swing.JButton createIncreaseButton(int orientation)
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void paintThumb(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle thumbBounds)
          Calls the super classes paint(Graphics g) method and then paints two gradients.
 
Methods inherited from class javax.swing.plaf.metal.MetalScrollBarUI
configureScrollBarColors, createPropertyChangeListener, getMinimumThumbSize, getPreferredSize, installDefaults, installListeners, paintTrack, setThumbBounds
 
Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI
addLayoutComponent, createArrowButtonListener, createModelListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumSize, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, installUI, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KunststoffScrollBarUI

public KunststoffScrollBarUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

createDecreaseButton

protected javax.swing.JButton createDecreaseButton(int orientation)

createIncreaseButton

protected javax.swing.JButton createIncreaseButton(int orientation)

paintThumb

protected void paintThumb(java.awt.Graphics g,
                          javax.swing.JComponent c,
                          java.awt.Rectangle thumbBounds)
Calls the super classes paint(Graphics g) method and then paints two gradients. The direction of the gradients depends on the direction of the scrollbar.