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 TypeFieldDescriptionprotected JToggleButtonAssociated toggle button.private Rectangleprotected BladeContainerColorTokensprotected Iconprivate PropertyChangeListenerProperty change listener.protected StateTransitionTrackerprivate Rectangleprivate RectangleFields inherited from class BasicRadioButtonUI
iconFields inherited from class BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicButtonListenerstatic ComponentUIcreateUI(JComponent comp) Returns the model for tracking the transitions.protected voidprotected voidbooleanisInside(MouseEvent me) Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.voidpaint(Graphics g, JComponent c) private voidpaintButtonText(Graphics g, AbstractButton button, Rectangle textRect, String text) Paints the text.protected voidvoidupdate(Graphics g, JComponent c) protected voidMethods inherited from class BasicRadioButtonUI
getPropertyPrefix, paintFocus, uninstallDefaultsMethods inherited from class BasicToggleButtonUI
getTextShiftOffset, paintIconMethods inherited from class BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUIMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Field Details
-
radiancePropertyListener
Property change listener. Listens on changes toAbstractButton.MODEL_CHANGED_PROPERTYproperty. -
button
Associated toggle button. -
stateTransitionTracker
-
viewRect
-
iconRect
-
textRect
-
radianceIcon
-
mutableContainerTokens
-
-
Constructor Details
-
RadianceRadioButtonUI
RadianceRadioButtonUI(JToggleButton button) Simple constructor.- Parameters:
button- Associated radio button.
-
-
Method Details
-
installListeners
- Overrides:
installListenersin classBasicRadioButtonUI
-
installDefaults
- Overrides:
installDefaultsin classBasicRadioButtonUI
-
updateIcon
protected void updateIcon() -
uninstallListeners
- Overrides:
uninstallListenersin classBasicRadioButtonUI
-
createUI
-
createButtonListener
- Overrides:
createButtonListenerin classBasicButtonUI
-
getDefaultIcon
- Overrides:
getDefaultIconin classBasicRadioButtonUI
-
paint
- Overrides:
paintin classBasicRadioButtonUI
-
paintButtonText
Paints the text.- Parameters:
g- Graphic contextbutton- ButtontextRect- Text rectangletext- Text to paint
-
isInside
Description copied from interface:TransitionAwareUIChecks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.- Specified by:
isInsidein interfaceTransitionAwareUI- Parameters:
me- Mouse event.- Returns:
trueif the mouse position of the specified event lies inside the area of the component designated for transition effects,falseotherwise.
-
getTransitionTracker
Description copied from interface:TransitionAwareUIReturns the model for tracking the transitions.- Specified by:
getTransitionTrackerin interfaceTransitionAwareUI- Returns:
- Model for tracking the transitions.
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicRadioButtonUI
-
update
- Overrides:
updatein classComponentUI
-