net.beeger.squareness.delegate
Class SquarenessToggleButtonUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.basic.BasicButtonUI
              extended by javax.swing.plaf.basic.BasicToggleButtonUI
                  extended by net.beeger.squareness.delegate.SquarenessToggleButtonUI

public class SquarenessToggleButtonUI
extends javax.swing.plaf.basic.BasicToggleButtonUI

The Squareness Toggle Button UI delegate.


Constructor Summary
SquarenessToggleButtonUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
          Create the UI delegate for the given component
 void installUI(javax.swing.JComponent component)
          Install the UI delegate for the given component
 void paint(java.awt.Graphics graphics, javax.swing.JComponent component)
          Paint the component.
 void uninstallUI(javax.swing.JComponent component)
          Uninstall the UI delegate from the given component.
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SquarenessToggleButtonUI

public SquarenessToggleButtonUI()
Method Detail

createUI

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

Parameters:
component - The component for which to create the ui delegate
Returns:
The created ui delegate

installUI

public void installUI(javax.swing.JComponent component)
Install the UI delegate for the given component

Overrides:
installUI in class javax.swing.plaf.basic.BasicButtonUI
Parameters:
component - The component for which to install the ui delegate.

uninstallUI

public void uninstallUI(javax.swing.JComponent component)
Uninstall the UI delegate from the given component.

Overrides:
uninstallUI in class javax.swing.plaf.basic.BasicButtonUI
Parameters:
component - The component from which to uninstall the UI delegate.

paint

public void paint(java.awt.Graphics graphics,
                  javax.swing.JComponent component)
Paint the component.

Overrides:
paint in class javax.swing.plaf.basic.BasicToggleButtonUI
Parameters:
graphics - The graphics resource used to paint the component
component - The component to paint.