TransitionAwareUI
SubstanceCheckBoxUI
public 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, defaultTextShiftOffset
icon
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, uninstallUI
getPreferredSize, getPropertyPrefix, paintFocus, uninstallDefaults
getTextShiftOffset, paintIcon
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected 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 BasicRadioButtonUI
protected void installDefaults(AbstractButton b)
installDefaults
in class BasicRadioButtonUI
protected void uninstallListeners(AbstractButton b)
uninstallListeners
in class BasicRadioButtonUI
public static ComponentUI createUI(JComponent comp)
protected BasicButtonListener createButtonListener(AbstractButton b)
createButtonListener
in class BasicButtonUI
public Icon getDefaultIcon()
getDefaultIcon
in class BasicRadioButtonUI
public void paint(Graphics g, JComponent c)
paint
in class BasicRadioButtonUI
public 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)
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