All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.jlf.JLFScrollBarUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.ScrollBarUI
                    |
                    +----java.awt.swing.basic.BasicScrollBarUI
                            |
                            +----java.awt.swing.jlf.JLFScrollBarUI

public class JLFScrollBarUI
extends BasicScrollBarUI
implements MouseListener
Implementation of ScrollBarUI for the Java Look and Feel


Variable Index

 o isRollover
 o scrollBarWidth

Constructor Index

 o JLFScrollBarUI()

Method Index

 o configureScrollBarColors()
Initialize the private static colors used by paintKnob() and paintTrack().
 o createDecreaseButton(int)
Returns the view that represents the decrease view.
 o createIncreaseButton(int)
Returns the view that represents the increase view.
 o createUI(JComponent)
 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 installUI(JComponent)
 o mouseClicked(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paintThumb(Graphics, JComponent, Rectangle)
 o paintTrack(Graphics, JComponent, Rectangle)
 o uninstallUI(JComponent)

Variables

 o scrollBarWidth
protected static int scrollBarWidth
 o isRollover
protected boolean isRollover

Constructors

 o JLFScrollBarUI
public JLFScrollBarUI()

Methods

 o createUI
public static ComponentUI createUI(JComponent c)
 o installUI
public void installUI(JComponent c)
Overrides:
installUI in class BasicScrollBarUI
 o uninstallUI
public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class BasicScrollBarUI
 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 createDecreaseButton
protected JButton createDecreaseButton(int orientation)
Returns the view that represents the decrease view.

Overrides:
createDecreaseButton in class BasicScrollBarUI
 o createIncreaseButton
protected JButton createIncreaseButton(int orientation)
Returns the view that represents the increase view.

Overrides:
createIncreaseButton in class BasicScrollBarUI
 o paintTrack
protected void paintTrack(Graphics g,
                          JComponent c,
                          Rectangle trackBounds)
Overrides:
paintTrack in class BasicScrollBarUI
 o paintThumb
protected void paintThumb(Graphics g,
                          JComponent c,
                          Rectangle thumbBounds)
Overrides:
paintThumb in class BasicScrollBarUI
 o getMinimumThumbSize
protected Dimension getMinimumThumbSize()
Return the smallest acceptable size for the thumb.

Overrides:
getMinimumThumbSize in class BasicScrollBarUI
 o mouseEntered
public void mouseEntered(MouseEvent e)
 o mouseExited
public void mouseExited(MouseEvent e)
 o mouseClicked
public void mouseClicked(MouseEvent e)
 o mousePressed
public void mousePressed(MouseEvent e)
 o mouseReleased
public void mouseReleased(MouseEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature