Class RadianceRibbonTaskToggleButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
org.pushingpixels.radiance.component.internal.ui.common.CommandButtonUI
org.pushingpixels.radiance.component.internal.ui.common.BasicCommandButtonUI
org.pushingpixels.radiance.component.internal.ui.ribbon.BasicRibbonTaskToggleButtonUI
org.pushingpixels.radiance.component.internal.theming.ribbon.ui.RadianceRibbonTaskToggleButtonUI
- All Implemented Interfaces:
TransitionAwareUI, RadianceCoreUtilities.BackgroundAppearanceStrategyAware
public class RadianceRibbonTaskToggleButtonUI
extends BasicRibbonTaskToggleButtonUI
implements TransitionAwareUI
UI for
JRibbonTaskToggleButton components in Radiance look
and feel.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PropertyChangeListenerProperty change listener on the button.private CommandButtonVisualStateTrackerTracker for visual state transitions.Painting delegate.Fields inherited from class BasicCommandButtonUI
backgroundAppearanceStrategy, commandButton, DO_NOT_DISPOSE_POPUPS, extraText, horizontalAlignment, icon, isInnerFocusOnAction, layoutInfo, layoutManager, popupIcon, text -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUIcreateUI(JComponent comp) private static ColorgetForegroundColor(JCommandButton button, StateTransitionTracker.ModelStateInfo modelStateInfo) Returns the model for tracking the transitions.protected voidInstalls defaults on the associated command button.protected voidInstalls listeners on the associated command button.booleanisInside(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 voidprotected voidUninstalls subcomponents from the associated command button.protected voidUninstalls defaults from the associated command button.protected voidUninstalls listeners from the associated command button.voidupdate(Graphics g, JComponent c) Methods inherited from class BasicRibbonTaskToggleButtonUI
getMinimumSizeMethods inherited from class BasicCommandButtonUI
createButtonListener, createPopupActionListener, getActionKeyTipAnchorCenterPoint, getBackgroundAppearanceStrategy, getLayoutInfo, getLayoutManager, getPopupKeyTipAnchorCenterPoint, installComponents, installKeyboardActions, installUI, isInnerFocusOnAction, isPaintingBackground, isPaintingSeparators, processPopupAction, setInnerFocusOnAction, uninstallKeyboardActions, uninstallUI, updatePopupIconMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize
-
Field Details
-
radianceVisualStateTracker
Tracker for visual state transitions. -
radiancePropertyChangeListener
Property change listener on the button. -
tonalDelegate
Painting delegate.
-
-
Constructor Details
-
RadianceRibbonTaskToggleButtonUI
private RadianceRibbonTaskToggleButtonUI()Simple constructor.
-
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()Description copied from class:BasicCommandButtonUIInstalls defaults on the associated command button.- Overrides:
installDefaultsin classBasicCommandButtonUI
-
uninstallDefaults
protected void uninstallDefaults()Description copied from class:BasicCommandButtonUIUninstalls defaults from the associated command button.- Overrides:
uninstallDefaultsin classBasicCommandButtonUI
-
uninstallComponents
protected void uninstallComponents()Description copied from class:BasicCommandButtonUIUninstalls subcomponents from the associated command button.- Overrides:
uninstallComponentsin classBasicCommandButtonUI
-
installListeners
protected void installListeners()Description copied from class:BasicCommandButtonUIInstalls listeners on the associated command button.- Overrides:
installListenersin classBasicRibbonTaskToggleButtonUI
-
uninstallListeners
protected void uninstallListeners()Description copied from class:BasicCommandButtonUIUninstalls listeners from the associated command button.- Overrides:
uninstallListenersin classBasicRibbonTaskToggleButtonUI
-
paint
- Overrides:
paintin classComponentUI
-
update
- Overrides:
updatein classBasicCommandButtonUI
-
paintTextAndFocus
-
getForegroundColor
private static Color getForegroundColor(JCommandButton button, StateTransitionTracker.ModelStateInfo modelStateInfo) -
getPreferredSize
- Overrides:
getPreferredSizein classBasicCommandButtonUI
-
getTransitionTracker
Description copied from interface:TransitionAwareUIReturns the model for tracking the transitions.- Specified by:
getTransitionTrackerin interfaceTransitionAwareUI- Returns:
- Model for tracking the transitions.
-
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.
-