net.sourceforge.mlf.metouia
Class MetouiaScrollBarUI

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 bynet.sourceforge.mlf.metouia.MetouiaScrollBarUI
All Implemented Interfaces:
java.awt.LayoutManager, javax.swing.SwingConstants

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

This class represents the UI delegate for the JScrollBar component.


Nested Class Summary
 
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
protected  MetouiaDots dots
          The reference of the metouia dots used for the thumb.
 
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
MetouiaScrollBarUI()
           
 
Method Summary
protected  void configureScrollBarColors()
          Initializes the scrollbar color from the current theme.
protected  javax.swing.JButton createDecreaseButton(int orientation)
          Creates the decrease button of the scrollbar.
protected  javax.swing.JButton createIncreaseButton(int orientation)
          Creates the increase button of the scrollbar.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates the UI delegate for the given component.
protected  void installDefaults()
          Installs some default values.
protected  void paintThumb(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle thumbBounds)
          Paints the scrollbar's thumb.
protected  void paintTrack(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle trackBounds)
          Paints the scrollbar's track.
 
Methods inherited from class javax.swing.plaf.metal.MetalScrollBarUI
createPropertyChangeListener, getMinimumThumbSize, getPreferredSize, installListeners, 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
 

Field Detail

dots

protected MetouiaDots dots
The reference of the metouia dots used for the thumb.

Constructor Detail

MetouiaScrollBarUI

public MetouiaScrollBarUI()
Method Detail

installDefaults

protected void installDefaults()
Installs some default values. Initializes the metouia dots used for the thumb.


createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates the UI delegate for the given component.

Parameters:
c - The component to create its UI delegate.
Returns:
The UI delegate for the given component.

createDecreaseButton

protected javax.swing.JButton createDecreaseButton(int orientation)
Creates the decrease button of the scrollbar.

Parameters:
orientation - The button's orientation.
Returns:
The created button.

createIncreaseButton

protected javax.swing.JButton createIncreaseButton(int orientation)
Creates the increase button of the scrollbar.

Parameters:
orientation - The button's orientation.
Returns:
The created button.

paintThumb

protected void paintThumb(java.awt.Graphics g,
                          javax.swing.JComponent c,
                          java.awt.Rectangle thumbBounds)
Paints the scrollbar's thumb.

Parameters:
g - The graphics context to use.
c - The component to paint.
thumbBounds - The track bounds.

configureScrollBarColors

protected void configureScrollBarColors()
Initializes the scrollbar color from the current theme.


paintTrack

protected void paintTrack(java.awt.Graphics g,
                          javax.swing.JComponent c,
                          java.awt.Rectangle trackBounds)
Paints the scrollbar's track.

Parameters:
g - The graphics context to use.
c - The component to paint.
trackBounds - The track bounds.