All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.motif.MotifScrollBarUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.ScrollBarUI
                    |
                    +----java.awt.swing.basic.BasicScrollBarUI
                            |
                            +----java.awt.swing.motif.MotifScrollBarUI

public class MotifScrollBarUI
extends BasicScrollBarUI
Implementation of ScrollBarUI for the Motif Look and Feel


Constructor Index

 o MotifScrollBarUI()

Method Index

 o configureScrollBarColors()
Initialize the private static colors used by paintKnob() and paintTrack().
 o createDecreaseButton(int)
 o createIncreaseButton(int)
 o createUI(JComponent)
 o getMaximumThumbSize()
Return the smallest acceptable size for the thumb.
 o getMinimumThumbSize()
Return the smallest acceptable size for the thumb.
 o getPreferredSize(JComponent)
A vertical scrollbars preferred width is the maximum of preferred widths of the (non null) increment/decrement buttons, and the minimum width of the thumb.
 o paintThumb(Graphics, JComponent, Rectangle)
 o paintTrack(Graphics, JComponent, Rectangle)

Constructors

 o MotifScrollBarUI
public MotifScrollBarUI()

Methods

 o createUI
public static ComponentUI createUI(JComponent c)
 o configureScrollBarColors
protected void configureScrollBarColors()
Initialize the private static colors used by paintKnob() and paintTrack().

Overrides:
configureScrollBarColors in class BasicScrollBarUI
 o getPreferredSize
public Dimension getPreferredSize(JComponent c)
A vertical scrollbars preferred width is the maximum of preferred widths of the (non null) increment/decrement buttons, and the minimum width of the thumb.

Overrides:
getPreferredSize in class BasicScrollBarUI
 o getMinimumThumbSize
protected Dimension getMinimumThumbSize()
Return the smallest acceptable size for the thumb.

Overrides:
getMinimumThumbSize in class BasicScrollBarUI
 o getMaximumThumbSize
protected Dimension getMaximumThumbSize()
Return the smallest acceptable size for the thumb.

Overrides:
getMaximumThumbSize in class BasicScrollBarUI
 o createDecreaseButton
protected JButton createDecreaseButton(int orientation)
Overrides:
createDecreaseButton in class BasicScrollBarUI
 o createIncreaseButton
protected JButton createIncreaseButton(int orientation)
Overrides:
createIncreaseButton in class BasicScrollBarUI
 o paintTrack
public void paintTrack(Graphics g,
                       JComponent c,
                       Rectangle trackBounds)
Overrides:
paintTrack in class BasicScrollBarUI
 o paintThumb
public void paintThumb(Graphics g,
                       JComponent c,
                       Rectangle thumbBounds)
Overrides:
paintThumb in class BasicScrollBarUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature