com.incors.plaf.kunststoff
Class KunststoffScrollBarUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.ScrollBarUI
              |
              +--javax.swing.plaf.basic.BasicScrollBarUI
                    |
                    +--javax.swing.plaf.metal.MetalScrollBarUI
                          |
                          +--com.incors.plaf.kunststoff.KunststoffScrollBarUI
All Implemented Interfaces:
java.awt.LayoutManager, javax.swing.SwingConstants

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


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, 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
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)
Overrides:
createDecreaseButton in class javax.swing.plaf.metal.MetalScrollBarUI

createIncreaseButton

protected javax.swing.JButton createIncreaseButton(int orientation)
Overrides:
createIncreaseButton in class javax.swing.plaf.metal.MetalScrollBarUI

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.

Overrides:
paintThumb in class javax.swing.plaf.metal.MetalScrollBarUI