Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jvnet.substance
Class SubstanceRadioButtonUI

    java.lang.Object
      javax.swing.plaf.ComponentUI
          javax.swing.plaf.ButtonUI
              javax.swing.plaf.basic.BasicButtonUI
                  javax.swing.plaf.basic.BasicToggleButtonUI
                      javax.swing.plaf.basic.BasicRadioButtonUI
                          org.jvnet.substance.SubstanceRadioButtonUI

Direct Known Subclasses:
  SubstanceCheckBoxUI

    public class SubstanceRadioButtonUI

extends javax.swing.plaf.basic.BasicRadioButtonUI

UI for radio buttons in Substance look and feel.

Author:
  Kirill Grouchnikov

Field Summary
`protected javax.swing.JToggleButton` | `button` Associated toggle button.
`protected org.jvnet.lafwidget.animation.FadeStateListener` | `substanceFadeStateListener` Listener for fade animations.
`protected java.beans.PropertyChangeListener` | `substancePropertyListener` Property change listener.

Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
`icon`

Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
`defaultTextIconGap, defaultTextShiftOffset`

Constructor Summary
`SubstanceRadioButtonUI(javax.swing.JToggleButton button)` Simple constructor.

Method Summary
`protected javax.swing.plaf.basic.BasicButtonListener` | `createButtonListener(javax.swing.AbstractButton b)`
`static javax.swing.plaf.ComponentUI` | `createUI(javax.swing.JComponent comp)`
`javax.swing.Icon` | `getDefaultIcon()`
`static java.lang.String` | `getMemoryUsage()` Returns memory usage string.
`protected void` | `installDefaults(javax.swing.AbstractButton b)`
`protected void` | `installListeners(javax.swing.AbstractButton b)`
`void` | `paint(java.awt.Graphics g, javax.swing.JComponent c)`
`protected void` | `paintButtonText(java.awt.Graphics g, javax.swing.AbstractButton button, java.awt.Rectangle textRect, java.lang.String text)` Paints the text.
`protected void` | `uninstallListeners(javax.swing.AbstractButton b)`

Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
`getPreferredSize, getPropertyPrefix, paintFocus, uninstallDefaults`

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, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, 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`

Field Detail

### substancePropertyListener

    protected java.beans.PropertyChangeListener substancePropertyListener

  Property change listener. Listens on changes to `AbstractButton.MODEL_CHANGED_PROPERTY` property.

### button

    protected javax.swing.JToggleButton button

  Associated toggle button.

### substanceFadeStateListener

    protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener

  Listener for fade animations.

Constructor Detail

### SubstanceRadioButtonUI

    public SubstanceRadioButtonUI(javax.swing.JToggleButton button)

  Simple constructor.

  Parameters:
    `button` - Associated radio button.

Method Detail

### installListeners

    protected void installListeners(javax.swing.AbstractButton b)

  Overrides:
    `installListeners` in class `javax.swing.plaf.basic.BasicButtonUI`

### installDefaults

    protected void installDefaults(javax.swing.AbstractButton b)

  Overrides:
    `installDefaults` in class `javax.swing.plaf.basic.BasicRadioButtonUI`

### uninstallListeners

    protected void uninstallListeners(javax.swing.AbstractButton b)

  Overrides:
    `uninstallListeners` in class `javax.swing.plaf.basic.BasicButtonUI`

### createUI

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

### createButtonListener

    protected javax.swing.plaf.basic.BasicButtonListener createButtonListener(javax.swing.AbstractButton b)

  Overrides:
    `createButtonListener` in class `javax.swing.plaf.basic.BasicButtonUI`

### getDefaultIcon

    public javax.swing.Icon getDefaultIcon()

  Overrides:
    `getDefaultIcon` in class `javax.swing.plaf.basic.BasicRadioButtonUI`

### paint

    public void paint(java.awt.Graphics g,
                      javax.swing.JComponent c)

  Overrides:
    `paint` in class `javax.swing.plaf.basic.BasicRadioButtonUI`

### getMemoryUsage

    public static java.lang.String getMemoryUsage()

  Returns memory usage string.

  Returns:
    Memory usage string.

### paintButtonText

    protected void paintButtonText(java.awt.Graphics g,
                                   javax.swing.AbstractButton button,
                                   java.awt.Rectangle textRect,
                                   java.lang.String text)

  Paints the text.

  Parameters:
    `g` - Graphic context
    `button` - Button
    `textRect` - Text rectangle
    `text` - Text to paint

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD