org.jvnet.substance
Class SubstanceCheckBoxUI

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 org.jvnet.substance.SubstanceRadioButtonUI
                          extended by org.jvnet.substance.SubstanceCheckBoxUI

public class SubstanceCheckBoxUI
extends SubstanceRadioButtonUI

UI for check boxes in Substance look and feel.

Author:
Kirill Grouchnikov

Field Summary
protected  org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
          Listener for fade animations.
protected  java.beans.PropertyChangeListener substancePropertyListener
          Property change listener.
 
Fields inherited from class org.jvnet.substance.SubstanceRadioButtonUI
button
 
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
icon
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Method Summary
protected  javax.swing.plaf.basic.BasicButtonListener createButtonListener(javax.swing.AbstractButton b)
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
           
 javax.swing.Icon getDefaultIcon()
           
static java.lang.String getMemoryUsage()
          Returns memory usage string.
protected  java.lang.String getPropertyPrefix()
           
protected  void installDefaults(javax.swing.AbstractButton b)
           
protected  void installListeners(javax.swing.AbstractButton b)
           
static void reset()
          Resets image maps (used when setting new theme).
protected  void uninstallListeners(javax.swing.AbstractButton b)
           
 
Methods inherited from class org.jvnet.substance.SubstanceRadioButtonUI
installUI, paintFocus, paintText, uninstallDefaults, uninstallUI, update
 
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
getPreferredSize, paint
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

substanceFadeStateListener

protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
Listener for fade animations.


substancePropertyListener

protected java.beans.PropertyChangeListener substancePropertyListener
Property change listener. Listens on changes to AbstractButton.MODEL_CHANGED_PROPERTY property.

Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)

getPropertyPrefix

protected java.lang.String getPropertyPrefix()
Overrides:
getPropertyPrefix in class javax.swing.plaf.basic.BasicRadioButtonUI

installListeners

protected void installListeners(javax.swing.AbstractButton b)
Overrides:
installListeners in class SubstanceRadioButtonUI

uninstallListeners

protected void uninstallListeners(javax.swing.AbstractButton b)
Overrides:
uninstallListeners in class SubstanceRadioButtonUI

installDefaults

protected void installDefaults(javax.swing.AbstractButton b)
Overrides:
installDefaults in class SubstanceRadioButtonUI

reset

public static void reset()
Resets image maps (used when setting new theme).

See Also:
SubstanceLookAndFeel.setCurrentTheme(String), SubstanceLookAndFeel.setCurrentTheme(SubstanceTheme)

createButtonListener

protected javax.swing.plaf.basic.BasicButtonListener createButtonListener(javax.swing.AbstractButton b)
Overrides:
createButtonListener in class SubstanceRadioButtonUI

getDefaultIcon

public javax.swing.Icon getDefaultIcon()
Overrides:
getDefaultIcon in class SubstanceRadioButtonUI

getMemoryUsage

public static java.lang.String getMemoryUsage()
Returns memory usage string.

Returns:
Memory usage string.