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

public Class MotifButtonUI

extends BasicButtonUI
Class Inheritance
Imports
java.awt.Color, .Dimension, .Graphics, .Insets, .Rectangle, .Shape, javax.swing.AbstractButton, .JComponent, .LookAndFeel, .SwingUtilities, .UIManager, javax.swing.border.AbstractBorder, javax.swing.plaf.ComponentUI, javax.swing.plaf.basic.BasicButtonListener, .BasicButtonUI

MotifButton implementation
Author
Rich Schiavi

Field Summary

Modifier and TypeField and Description
private boolean
protected Color
private static final ComponentUI
Inherited from javax.swing.plaf.basic.BasicButtonUI:
defaultTextIconGapdefaultTextShiftOffset

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected BasicButtonListener
createButtonListener(AbstractButton b)

Overrides javax.swing.plaf.basic.BasicButtonUI.createButtonListener.

Returns a new instance of BasicButtonListener.

public static ComponentUI
createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicButtonUI.createUI.

Returns an instance of BasicButtonUI.

protected void
protected Color
public void
public void
paint(Graphics g, JComponent c)

Overrides javax.swing.plaf.basic.BasicButtonUI.paint.

Paints the specified component appropriately for the look and feel.

protected void
protected void
paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)

Overrides javax.swing.plaf.basic.BasicButtonUI.paintFocus.

Paints a focused button.

protected void
paintIcon(Graphics g, JComponent c, Rectangle iconRect)

Overrides javax.swing.plaf.basic.BasicButtonUI.paintIcon.

Paints an icon of the current button.

protected void
Inherited from javax.swing.plaf.basic.BasicButtonUI:
clearTextShiftOffsetgetBaselinegetBaselineResizeBehaviorgetDefaultTextIconGapgetMaximumSizegetMinimumSizegetPreferredSizegetPropertyPrefixgetTextShiftOffsetinstallKeyboardActionsinstallListenersinstallUIpaintTextpaintTextsetTextShiftOffsetuninstallKeyboardActionsuninstallListenersuninstallUI

Field Detail

defaults_initializedback to summary
private boolean defaults_initialized
selectColorback to summary
protected Color selectColor
UIback to summary
private static final ComponentUI UI

Hides javax.swing.plaf.basic.BasicButtonUI.UI.

Constructor Detail

MotifButtonUIback to summary
public MotifButtonUI()

Method Detail

createButtonListenerback to summary
protected BasicButtonListener createButtonListener(AbstractButton b)

Overrides javax.swing.plaf.basic.BasicButtonUI.createButtonListener.

Doc from javax.swing.plaf.basic.BasicButtonUI.createButtonListener.

Returns a new instance of BasicButtonListener.

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

Hides javax.swing.plaf.basic.BasicButtonUI.createUI.

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

Returns an instance of BasicButtonUI.

fillContentAreaback to summary
protected void fillContentArea(Graphics g, AbstractButton b, Color fillColor)
getSelectColorback to summary
protected Color getSelectColor()
installDefaultsback to summary
public void installDefaults(AbstractButton b)

Overrides javax.swing.plaf.basic.BasicButtonUI.installDefaults.

Doc from javax.swing.plaf.basic.BasicButtonUI.installDefaults.

Installs default properties.

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

Overrides javax.swing.plaf.basic.BasicButtonUI.paint.

Doc from javax.swing.plaf.ComponentUI.paint.

Paints the specified component appropriately for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.

Annotations
@Override
paintButtonPressedback to summary
protected void paintButtonPressed(Graphics g, AbstractButton b)

Overrides javax.swing.plaf.basic.BasicButtonUI.paintButtonPressed.

Doc from javax.swing.plaf.basic.BasicButtonUI.paintButtonPressed.

Paints a pressed button.

Annotations
@Override
paintFocusback to summary
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)

Overrides javax.swing.plaf.basic.BasicButtonUI.paintFocus.

Doc from javax.swing.plaf.basic.BasicButtonUI.paintFocus.

Paints a focused button.

Annotations
@Override
paintIconback to summary
protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect)

Overrides javax.swing.plaf.basic.BasicButtonUI.paintIcon.

Doc from javax.swing.plaf.basic.BasicButtonUI.paintIcon.

Paints an icon of the current button.

Annotations
@Override
uninstallDefaultsback to summary
protected void uninstallDefaults(AbstractButton b)

Overrides javax.swing.plaf.basic.BasicButtonUI.uninstallDefaults.

Doc from javax.swing.plaf.basic.BasicButtonUI.uninstallDefaults.

Uninstalls default properties.

Annotations
@Override