javax.swing.plaf.metal
Class MetalCheckBoxUI

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 javax.swing.plaf.basic.BasicRadioButtonUI
                      extended by javax.swing.plaf.metal.MetalRadioButtonUI
                          extended by javax.swing.plaf.metal.MetalCheckBoxUI

public class MetalCheckBoxUI
extends MetalRadioButtonUI

A UI delegate for the JCheckBox component.


Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalRadioButtonUI
disabledTextColor, focusColor, selectColor
 
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
icon
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
MetalCheckBoxUI()
          Constructs a new instance of MetalCheckBoxUI.
 
Method Summary
static ComponentUI createUI(JComponent component)
          Returns a shared instance of MetalCheckBoxUI.
 String getPropertyPrefix()
          Returns the prefix for properties defined in the UIDefaults table.
 
Methods inherited from class javax.swing.plaf.metal.MetalRadioButtonUI
getDisabledTextColor, getFocusColor, getSelectColor, installDefaults, paint, paintFocus, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
getDefaultIcon, getPreferredSize
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, 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

MetalCheckBoxUI

public MetalCheckBoxUI()
Constructs a new instance of MetalCheckBoxUI.

Method Detail

createUI

public static ComponentUI createUI(JComponent component)
Returns a shared instance of MetalCheckBoxUI.

Parameters:
component - the component for which we return an UI instance
Returns:
A shared instance of MetalCheckBoxUI.

getPropertyPrefix

public String getPropertyPrefix()
Returns the prefix for properties defined in the UIDefaults table.

Overrides:
getPropertyPrefix in class BasicRadioButtonUI
Returns:
The property prefix ("CheckBox.").