net.sourceforge.mlf.metouia
Class MetouiaButtonUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ButtonUI
          extended byjavax.swing.plaf.basic.BasicButtonUI
              extended byjavax.swing.plaf.metal.MetalButtonUI
                  extended bynet.sourceforge.mlf.metouia.MetouiaButtonUI

public class MetouiaButtonUI
extends javax.swing.plaf.metal.MetalButtonUI

This class represents the UI delegate for the JButton component.


Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalButtonUI
disabledTextColor, focusColor, selectColor
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
MetouiaButtonUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates the UI delegate for the given component.
 void installDefaults(javax.swing.AbstractButton button)
          Installs some default values for the given button.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints the given component.
 
Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, paintButtonPressed, paintFocus, paintText, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetouiaButtonUI

public MetouiaButtonUI()
Method Detail

installDefaults

public void installDefaults(javax.swing.AbstractButton button)
Installs some default values for the given button. The button border is replaced by a metouia border.

Parameters:
button - The reference of the button to install its default values.

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates the UI delegate for the given component.

Parameters:
c - The component to create its UI delegate.
Returns:
The UI delegate for the given component.

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paints the given component.

Parameters:
g - The graphics context to use.
c - The component to paint.