Class SubstanceRadioButtonUI
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.substance.internal.ui.SubstanceRadioButtonUI
- All Implemented Interfaces:
TransitionAwareUI
- Direct Known Subclasses:
SubstanceCheckBoxUI
UI for radio buttons in Substance look and feel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JToggleButtonAssociated toggle button.protected StateTransitionTrackerprotected PropertyChangeListenerProperty change listener.Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
iconFields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicButtonListenerstatic ComponentUIcreateUI(JComponent comp) static StringReturns memory usage string.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 voidpaintButtonText(Graphics g, AbstractButton button, Rectangle textRect, String text) Paints the text.protected voidMethods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
getPreferredSize, getPropertyPrefix, paintFocus, uninstallDefaultsMethods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paintIconMethods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Field Details
-
substancePropertyListener
Property change listener. Listens on changes toAbstractButton.MODEL_CHANGED_PROPERTYproperty. -
button
Associated toggle button. -
stateTransitionTracker
-
-
Constructor Details
-
SubstanceRadioButtonUI
Simple constructor.- Parameters:
button- Associated radio button.
-
-
Method Details
-
installListeners
- Overrides:
installListenersin classBasicButtonUI
-
installDefaults
- Overrides:
installDefaultsin classBasicRadioButtonUI
-
uninstallListeners
- Overrides:
uninstallListenersin classBasicButtonUI
-
createUI
-
createButtonListener
- Overrides:
createButtonListenerin classBasicButtonUI
-
getDefaultIcon
- Overrides:
getDefaultIconin classBasicRadioButtonUI
-
paint
- Overrides:
paintin classBasicRadioButtonUI
-
getMemoryUsage
Returns memory usage string.- Returns:
- Memory usage string.
-
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.
-