Class RadianceRadioButtonUI
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.pushingpixels.radiance.theming.internal.ui.RadianceRadioButtonUI
- All Implemented Interfaces:
TransitionAwareUI
- Direct Known Subclasses:
RadianceCheckBoxUI
UI for radio buttons in Radiance look and feel.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) JToggleButton
Associated toggle button.private Rectangle
protected BladeColorScheme
protected BladeColorScheme
protected BladeColorScheme
protected Icon
private PropertyChangeListener
Property change listener.(package private) StateTransitionTracker
private Rectangle
private Rectangle
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
icon
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicButtonListener
static ComponentUI
createUI
(JComponent comp) Returns the model for tracking the transitions.protected void
protected void
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) private void
paintButtonText
(Graphics g, AbstractButton button, Rectangle textRect, String text) Paints the text.protected void
void
update
(Graphics g, JComponent c) protected void
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
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
-
Field Details
-
radiancePropertyListener
Property change listener. Listens on changes toAbstractButton.MODEL_CHANGED_PROPERTY
property. -
button
JToggleButton buttonAssociated toggle button. -
stateTransitionTracker
StateTransitionTracker stateTransitionTracker -
viewRect
-
iconRect
-
textRect
-
radianceIcon
-
mutableFillColorScheme
-
mutableBorderColorScheme
-
mutableMarkColorScheme
-
-
Constructor Details
-
RadianceRadioButtonUI
RadianceRadioButtonUI(JToggleButton button) Simple constructor.- Parameters:
button
- Associated radio button.
-
-
Method Details
-
installListeners
- Overrides:
installListeners
in classBasicRadioButtonUI
-
installDefaults
- Overrides:
installDefaults
in classBasicRadioButtonUI
-
updateIcon
protected void updateIcon() -
uninstallListeners
- Overrides:
uninstallListeners
in classBasicRadioButtonUI
-
createUI
-
createButtonListener
- Overrides:
createButtonListener
in classBasicButtonUI
-
getDefaultIcon
- Overrides:
getDefaultIcon
in classBasicRadioButtonUI
-
paint
- Overrides:
paint
in classBasicRadioButtonUI
-
paintButtonText
Paints the text.- Parameters:
g
- Graphic contextbutton
- ButtontextRect
- Text rectangletext
- Text to paint
-
isInside
Description copied from interface:TransitionAwareUI
Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.- Specified by:
isInside
in interfaceTransitionAwareUI
- Parameters:
me
- Mouse event.- Returns:
true
if the mouse position of the specified event lies inside the area of the component designated for transition effects,false
otherwise.
-
getTransitionTracker
Description copied from interface:TransitionAwareUI
Returns the model for tracking the transitions.- Specified by:
getTransitionTracker
in interfaceTransitionAwareUI
- Returns:
- Model for tracking the transitions.
-
getPreferredSize
- Overrides:
getPreferredSize
in classBasicRadioButtonUI
-
update
- Overrides:
update
in classComponentUI
-