public class

MotifButtonUI

extends BasicButtonUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.ButtonUI
       ↳ javax.swing.plaf.basic.BasicButtonUI
         ↳ com.sun.java.swing.plaf.motif.MotifButtonUI

Class Overview

MotifButton implementation

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

Fields
protected Color selectColor
[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicButtonUI
Public Constructors
MotifButtonUI()
Public Methods
static ComponentUI createUI(JComponent c)
void installDefaults(AbstractButton b)
void paint(Graphics g, JComponent c)
Paints the specified component appropriate for the look and feel.
Protected Methods
BasicButtonListener createButtonListener(AbstractButton b)
void fillContentArea(Graphics g, AbstractButton b, Color fillColor)
Color getSelectColor()
void paintButtonPressed(Graphics g, AbstractButton b)
void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
void paintIcon(Graphics g, JComponent c, Rectangle iconRect)
void uninstallDefaults(AbstractButton b)
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicButtonUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Fields

protected Color selectColor

Public Constructors

public MotifButtonUI ()

Public Methods

public static ComponentUI createUI (JComponent c)

public void installDefaults (AbstractButton b)

public void paint (Graphics g, JComponent c)

Paints the specified component appropriate 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.

Parameters
g the Graphics context in which to paint
c the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

Protected Methods

protected BasicButtonListener createButtonListener (AbstractButton b)

protected void fillContentArea (Graphics g, AbstractButton b, Color fillColor)

protected Color getSelectColor ()

protected void paintButtonPressed (Graphics g, AbstractButton b)

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

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

protected void uninstallDefaults (AbstractButton b)