net.sourceforge.mlf.metouia
Class MetouiaToggleButtonUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ButtonUI
          extended byjavax.swing.plaf.basic.BasicButtonUI
              extended byjavax.swing.plaf.basic.BasicToggleButtonUI
                  extended byjavax.swing.plaf.metal.MetalToggleButtonUI
                      extended bynet.sourceforge.mlf.metouia.MetouiaToggleButtonUI

public class MetouiaToggleButtonUI
extends javax.swing.plaf.metal.MetalToggleButtonUI

This class represents the UI delegate for the JToggleButton component.


Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalToggleButtonUI
disabledTextColor, focusColor, selectColor
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
MetouiaToggleButtonUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates the UI delegate for the given component.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints the given component.
protected  void paintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton button)
          Paints the background of given component whenit is pressed.
 
Methods inherited from class javax.swing.plaf.metal.MetalToggleButtonUI
getDisabledTextColor, getFocusColor, getSelectColor, installDefaults, paintFocus, paintText, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getPropertyPrefix, getTextShiftOffset, paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, 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

MetouiaToggleButtonUI

public MetouiaToggleButtonUI()
Method Detail

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.

paintButtonPressed

protected void paintButtonPressed(java.awt.Graphics g,
                                  javax.swing.AbstractButton button)
Paints the background of given component whenit is pressed.

Parameters:
g - The graphics context to use.
button - The button to paint its background.