APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifScrollBarUI

extends BasicScrollBarUI
Class Inheritance
Imports
java.awt.Dimension, .Graphics, .Insets, .Rectangle, javax.swing.JButton, .JComponent, .JScrollBar, javax.swing.plaf.ComponentUI, javax.swing.plaf.basic.BasicScrollBarUI

Implementation of ScrollBarUI for the Motif Look and Feel
Authors
Rich Schiavi, Hans Muller

Field Summary

Inherited from javax.swing.plaf.basic.BasicScrollBarUI:
buttonListenerdecrButtonDECREASE_HIGHLIGHTdecrGapincrButtonINCREASE_HIGHLIGHTincrGapisDraggingmaximumThumbSizeminimumThumbSizemodelListenerNO_HIGHLIGHTpropertyChangeListenerscrollbarscrollBarWidthscrollListenerscrollTimerthumbColorthumbDarkShadowColorthumbHighlightColorthumbLightShadowColorthumbRecttrackColortrackHighlighttrackHighlightColortrackListenertrackRect

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected JButton
createDecreaseButton(int orientation)

Overrides javax.swing.plaf.basic.BasicScrollBarUI.createDecreaseButton.

Creates a decrease button.

protected JButton
createIncreaseButton(int orientation)

Overrides javax.swing.plaf.basic.BasicScrollBarUI.createIncreaseButton.

Creates an increase button.

public static ComponentUI
public Dimension
getPreferredSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicScrollBarUI.getPreferredSize.

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.

public void
public void
Inherited from javax.swing.plaf.basic.BasicScrollBarUI:
addLayoutComponentconfigureScrollBarColorscreateArrowButtonListenercreateModelListenercreatePropertyChangeListenercreateScrollListenercreateTrackListenergetMaximumSizegetMaximumThumbSizegetMinimumThumbSizegetSupportsAbsolutePositioninggetThumbBoundsgetTrackBoundsinstallComponentsinstallDefaultsinstallKeyboardActionsinstallListenersinstallUIisThumbRolloverlayoutContainerlayoutHScrollbarlayoutVScrollbarminimumLayoutSizepaintpaintDecreaseHighlightpaintIncreaseHighlightpreferredLayoutSizeremoveLayoutComponentscrollByBlockscrollByUnitsetThumbBoundssetThumbRolloveruninstallComponentsuninstallDefaultsuninstallKeyboardActionsuninstallListenersuninstallUI

Constructor Detail

MotifScrollBarUIback to summary
public MotifScrollBarUI()

Method Detail

createDecreaseButtonback to summary
protected JButton createDecreaseButton(int orientation)

Overrides javax.swing.plaf.basic.BasicScrollBarUI.createDecreaseButton.

Doc from javax.swing.plaf.basic.BasicScrollBarUI.createDecreaseButton.

Creates a decrease button.

Annotations
@Override
createIncreaseButtonback to summary
protected JButton createIncreaseButton(int orientation)

Overrides javax.swing.plaf.basic.BasicScrollBarUI.createIncreaseButton.

Doc from javax.swing.plaf.basic.BasicScrollBarUI.createIncreaseButton.

Creates an increase button.

Annotations
@Override
createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicScrollBarUI.createUI.

Doc from javax.swing.plaf.basic.BasicScrollBarUI.createUI.

Creates the UI.

getPreferredSizeback to summary
public Dimension getPreferredSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicScrollBarUI.getPreferredSize.

Doc from javax.swing.plaf.basic.BasicScrollBarUI.getPreferredSize.

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.

Annotations
@Override
paintThumbback to summary
public void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)

Overrides javax.swing.plaf.basic.BasicScrollBarUI.paintThumb.

Doc from javax.swing.plaf.basic.BasicScrollBarUI.paintThumb.

Paints the thumb.

Annotations
@Override
paintTrackback to summary
public void paintTrack(Graphics g, JComponent c, Rectangle trackBounds)

Overrides javax.swing.plaf.basic.BasicScrollBarUI.paintTrack.

Doc from javax.swing.plaf.basic.BasicScrollBarUI.paintTrack.

Paints the track.

Annotations
@Override