TransitionAwareUISubstanceCheckBoxUIpublic class SubstanceRadioButtonUI extends BasicRadioButtonUI implements TransitionAwareUI
| Modifier and Type | Field | Description |
|---|---|---|
protected JToggleButton |
button |
Associated toggle button.
|
protected StateTransitionTracker |
stateTransitionTracker |
|
protected PropertyChangeListener |
substancePropertyListener |
Property change listener.
|
defaultTextIconGap, defaultTextShiftOffseticon| Constructor | Description |
|---|---|
SubstanceRadioButtonUI(JToggleButton button) |
Simple constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected BasicButtonListener |
createButtonListener(AbstractButton b) |
|
static ComponentUI |
createUI(JComponent comp) |
|
Icon |
getDefaultIcon() |
|
static String |
getMemoryUsage() |
Returns memory usage string.
|
StateTransitionTracker |
getTransitionTracker() |
Returns the model for tracking the transitions.
|
protected void |
installDefaults(AbstractButton b) |
|
protected void |
installListeners(AbstractButton b) |
|
boolean |
isInside(MouseEvent me) |
Checks whether the mouse position of the specified event lies inside the
area of the component designated for transition effects.
|
void |
paint(Graphics g,
JComponent c) |
|
protected void |
paintButtonText(Graphics g,
AbstractButton button,
Rectangle textRect,
String text) |
Paints the text.
|
protected void |
uninstallListeners(AbstractButton b) |
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUIgetPreferredSize, getPropertyPrefix, paintFocus, uninstallDefaultsgetTextShiftOffset, paintIconcontains, getAccessibleChild, getAccessibleChildrenCount, updateprotected PropertyChangeListener substancePropertyListener
AbstractButton.MODEL_CHANGED_PROPERTY property.protected JToggleButton button
protected StateTransitionTracker stateTransitionTracker
public SubstanceRadioButtonUI(JToggleButton button)
button - Associated radio button.protected void installListeners(AbstractButton b)
installListeners in class BasicRadioButtonUIprotected void installDefaults(AbstractButton b)
installDefaults in class BasicRadioButtonUIprotected void uninstallListeners(AbstractButton b)
uninstallListeners in class BasicRadioButtonUIpublic static ComponentUI createUI(JComponent comp)
protected BasicButtonListener createButtonListener(AbstractButton b)
createButtonListener in class BasicButtonUIpublic Icon getDefaultIcon()
getDefaultIcon in class BasicRadioButtonUIpublic void paint(Graphics g, JComponent c)
paint in class BasicRadioButtonUIpublic static String getMemoryUsage()
protected void paintButtonText(Graphics g, AbstractButton button, Rectangle textRect, String text)
g - Graphic contextbutton - ButtontextRect - Text rectangletext - Text to paintpublic boolean isInside(MouseEvent me)
TransitionAwareUIisInside in interface TransitionAwareUIme - 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()
TransitionAwareUIgetTransitionTracker in interface TransitionAwareUI