|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.basic.BasicToggleButtonUI
javax.swing.plaf.basic.BasicRadioButtonUI
org.pushingpixels.substance.internal.ui.SubstanceRadioButtonUI
public class SubstanceRadioButtonUI
UI for radio buttons in Substance look and feel.
Field Summary | |
---|---|
protected javax.swing.JToggleButton |
button
Associated toggle button. |
protected StateTransitionTracker |
stateTransitionTracker
|
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. |
StateTransitionTracker |
getTransitionTracker()
Returns the model for tracking the transitions. |
protected void |
installDefaults(javax.swing.AbstractButton b)
|
protected void |
installListeners(javax.swing.AbstractButton b)
|
boolean |
isInside(java.awt.event.MouseEvent me)
Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects. |
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 |
---|
protected java.beans.PropertyChangeListener substancePropertyListener
AbstractButton.MODEL_CHANGED_PROPERTY
property.
protected javax.swing.JToggleButton button
protected StateTransitionTracker stateTransitionTracker
Constructor Detail |
---|
public SubstanceRadioButtonUI(javax.swing.JToggleButton button)
button
- Associated radio button.Method Detail |
---|
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 paintpublic boolean isInside(java.awt.event.MouseEvent me)
TransitionAwareUI
isInside
in interface TransitionAwareUI
me
- Mouse event.
true
if the mouse position of the specified event
lies inside the area of the component designated for transition
effects, false
otherwise.public StateTransitionTracker getTransitionTracker()
TransitionAwareUI
getTransitionTracker
in interface TransitionAwareUI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |