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

public Class MotifScrollBarButton

extends BasicArrowButton
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.awt.Color, .Dimension, .Graphics, javax.swing.UIManager, javax.swing.plaf.basic.BasicArrowButton

Motif scroll bar button.

Field Summary

Modifier and TypeField and Description
private Color
private Color
Inherited from javax.swing.plaf.basic.BasicArrowButton:
direction

Constructor Summary

AccessConstructor and Description
public
MotifScrollBarButton(int direction)

Method Summary

Modifier and TypeMethod and Description
public Dimension
getMaximumSize()

Overrides javax.swing.plaf.basic.BasicArrowButton.getMaximumSize.

Returns the maximum size of the BasicArrowButton.

public Dimension
getMinimumSize()

Overrides javax.swing.plaf.basic.BasicArrowButton.getMinimumSize.

Returns the minimum size of the BasicArrowButton.

public Dimension
getPreferredSize()

Overrides javax.swing.plaf.basic.BasicArrowButton.getPreferredSize.

Returns the preferred size of the BasicArrowButton.

public boolean
isFocusTraversable()

Overrides javax.swing.plaf.basic.BasicArrowButton.isFocusTraversable.

Returns whether the arrow button should get the focus.

public void
paint(Graphics g)

Overrides javax.swing.plaf.basic.BasicArrowButton.paint.

Invoked by Swing to draw components.

Inherited from javax.swing.plaf.basic.BasicArrowButton:
getDirectionpaintTrianglesetDirection

Field Detail

darkShadowback to summary
private Color darkShadow

Hides javax.swing.plaf.basic.BasicArrowButton.darkShadow.

lightShadowback to summary
private Color lightShadow

Constructor Detail

MotifScrollBarButtonback to summary
public MotifScrollBarButton(int direction)

Method Detail

getMaximumSizeback to summary
public Dimension getMaximumSize()

Overrides javax.swing.plaf.basic.BasicArrowButton.getMaximumSize.

Doc from javax.swing.plaf.basic.BasicArrowButton.getMaximumSize.

Returns the maximum size of the BasicArrowButton.

Annotations
@Override
getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides javax.swing.plaf.basic.BasicArrowButton.getMinimumSize.

Doc from javax.swing.plaf.basic.BasicArrowButton.getMinimumSize.

Returns the minimum size of the BasicArrowButton.

Annotations
@Override
getPreferredSizeback to summary
public Dimension getPreferredSize()

Overrides javax.swing.plaf.basic.BasicArrowButton.getPreferredSize.

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

Returns the preferred size of the BasicArrowButton.

Annotations
@Override
isFocusTraversableback to summary
public boolean isFocusTraversable()

Overrides javax.swing.plaf.basic.BasicArrowButton.isFocusTraversable.

Doc from javax.swing.plaf.basic.BasicArrowButton.isFocusTraversable.

Returns whether the arrow button should get the focus. BasicArrowButtons are used as a child component of composite components such as JScrollBar and JComboBox. Since the composite component typically gets the focus, this method is overridden to return false.

Annotations
@Override
paintback to summary
public void paint(Graphics g)

Overrides javax.swing.plaf.basic.BasicArrowButton.paint.

Doc from javax.swing.JComponent.paint.

Invoked by Swing to draw components. Applications should not invoke paint directly, but should instead use the repaint method to schedule the component for redrawing.

This method actually delegates the work of painting to three protected methods: paintComponent, paintBorder, and paintChildren. They're called in the order listed to ensure that children appear on top of component itself. Generally speaking, the component and its children should not paint in the insets area allocated to the border. Subclasses can just override this method, as always. A subclass that just wants to specialize the UI (look and feel) delegate's paint method should just override paintComponent.

Annotations
@Override