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.
- Author:
- Kirill Grouchnikov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JToggleButtonAssociated toggle button.protected BladeContainerColorTokensprotected Iconprotected StateTransitionTrackerFields inherited from class BasicRadioButtonUI
iconFields inherited from class BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
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) 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
-
button
Associated toggle button. -
stateTransitionTracker
-
radianceIcon
-
mutableContainerTokens
-
-
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
-
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
-