org.jvnet.substance
public class SubstanceRadioButtonUI extends javax.swing.plaf.basic.BasicRadioButtonUI
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
SubstanceRadioButtonUI(javax.swing.JToggleButton button)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
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) |
getPreferredSize, getPropertyPrefix, paintFocus, uninstallDefaults
getTextShiftOffset, paintIcon
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUI
protected java.beans.PropertyChangeListener substancePropertyListener
AbstractButton.MODEL_CHANGED_PROPERTY
property.protected javax.swing.JToggleButton button
protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
public SubstanceRadioButtonUI(javax.swing.JToggleButton button)
button
- Associated radio button.protected void installListeners(javax.swing.AbstractButton b)
installListeners
in class javax.swing.plaf.basic.BasicButtonUI
protected void installDefaults(javax.swing.AbstractButton b)
installDefaults
in class javax.swing.plaf.basic.BasicRadioButtonUI
protected void uninstallListeners(javax.swing.AbstractButton b)
uninstallListeners
in class javax.swing.plaf.basic.BasicButtonUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
protected javax.swing.plaf.basic.BasicButtonListener createButtonListener(javax.swing.AbstractButton b)
createButtonListener
in class javax.swing.plaf.basic.BasicButtonUI
public javax.swing.Icon getDefaultIcon()
getDefaultIcon
in class javax.swing.plaf.basic.BasicRadioButtonUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicRadioButtonUI
public static java.lang.String getMemoryUsage()
protected void paintButtonText(java.awt.Graphics g, javax.swing.AbstractButton button, java.awt.Rectangle textRect, java.lang.String text)
g
- Graphic contextbutton
- ButtontextRect
- Text rectangletext
- Text to paint