public class

MotifScrollBarUI

extends BasicScrollBarUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.ScrollBarUI
       ↳ javax.swing.plaf.basic.BasicScrollBarUI
         ↳ com.sun.java.swing.plaf.motif.MotifScrollBarUI

Class Overview

Implementation of ScrollBarUI for the Motif Look and Feel

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.

Summary

[Expand]
Inherited Constants
From class javax.swing.plaf.basic.BasicScrollBarUI
From interface javax.swing.SwingConstants
[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicScrollBarUI
Public Constructors
MotifScrollBarUI()
Public Methods
static ComponentUI createUI(JComponent c)
Dimension getPreferredSize(JComponent c)
A vertical scrollbar's preferred width is the maximum of preferred widths of the (non null) increment/decrement buttons, and the minimum width of the thumb.
void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
void paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
Protected Methods
JButton createDecreaseButton(int orientation)
JButton createIncreaseButton(int orientation)
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicScrollBarUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object
From interface java.awt.LayoutManager

Public Constructors

public MotifScrollBarUI ()

Public Methods

public static ComponentUI createUI (JComponent c)

public Dimension getPreferredSize (JComponent c)

A vertical scrollbar's preferred width is the maximum of preferred widths of the (non null) increment/decrement buttons, and the minimum width of the thumb. The preferred height is the sum of the preferred heights of the same parts. The basis for the preferred size of a horizontal scrollbar is similar.

The preferredSize is only computed once, subsequent calls to this method just return a cached size.

Parameters
c the JScrollBar that's delegating this method to us
Returns
  • the preferred size of a Basic JScrollBar

public void paintThumb (Graphics g, JComponent c, Rectangle thumbBounds)

public void paintTrack (Graphics g, JComponent c, Rectangle trackBounds)

Protected Methods

protected JButton createDecreaseButton (int orientation)

protected JButton createIncreaseButton (int orientation)