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
public class RadianceRibbonTaskToggleButtonUI
extends BasicRibbonTaskToggleButtonUI
implements TransitionAwareUI
UI for
JRibbonTaskToggleButton
components in Radiance look
and feel.-
Field Summary
FieldsModifier and TypeFieldDescriptionPainting delegate.private PropertyChangeListener
Property change listener on the button.private CommandButtonVisualStateTracker
Tracker for visual state transitions.Fields inherited from class org.pushingpixels.radiance.component.internal.ui.common.BasicCommandButtonUI
backgroundAppearanceStrategy, commandButton, DO_NOT_DISPOSE_POPUPS, extraText, horizontalAlignment, icon, isInnerFocusOnAction, layoutInfo, layoutManager, popupIcon, text
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
createUI
(JComponent comp) private static Color
getForegroundColor
(JCommandButton button, StateTransitionTracker.ModelStateInfo modelStateInfo) Returns the model for tracking the transitions.protected void
Installs defaults on the associated command button.protected void
Installs listeners on the associated command button.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
protected void
Uninstalls subcomponents from the associated command button.protected void
Uninstalls defaults from the associated command button.protected void
Uninstalls listeners from the associated command button.void
update
(Graphics g, JComponent c) Methods inherited from class org.pushingpixels.radiance.component.internal.ui.ribbon.BasicRibbonTaskToggleButtonUI
getMinimumSize
Methods inherited from class org.pushingpixels.radiance.component.internal.ui.common.BasicCommandButtonUI
createButtonListener, createPopupActionListener, getActionKeyTipAnchorCenterPoint, getLayoutInfo, getLayoutManager, getPopupKeyTipAnchorCenterPoint, installComponents, installKeyboardActions, installUI, isInnerFocusOnAction, isPaintingBackground, isPaintingSeparators, processPopupAction, setInnerFocusOnAction, uninstallKeyboardActions, uninstallUI, updatePopupIcon
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize
-
Field Details
-
radianceVisualStateTracker
Tracker for visual state transitions. -
radiancePropertyChangeListener
Property change listener on the button. -
delegate
Painting delegate.
-
-
Constructor Details
-
RadianceRibbonTaskToggleButtonUI
private RadianceRibbonTaskToggleButtonUI()Simple constructor.
-
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()Description copied from class:BasicCommandButtonUI
Installs defaults on the associated command button.- Overrides:
installDefaults
in classBasicCommandButtonUI
-
uninstallDefaults
protected void uninstallDefaults()Description copied from class:BasicCommandButtonUI
Uninstalls defaults from the associated command button.- Overrides:
uninstallDefaults
in classBasicCommandButtonUI
-
uninstallComponents
protected void uninstallComponents()Description copied from class:BasicCommandButtonUI
Uninstalls subcomponents from the associated command button.- Overrides:
uninstallComponents
in classBasicCommandButtonUI
-
installListeners
protected void installListeners()Description copied from class:BasicCommandButtonUI
Installs listeners on the associated command button.- Overrides:
installListeners
in classBasicRibbonTaskToggleButtonUI
-
uninstallListeners
protected void uninstallListeners()Description copied from class:BasicCommandButtonUI
Uninstalls listeners from the associated command button.- Overrides:
uninstallListeners
in classBasicRibbonTaskToggleButtonUI
-
paint
- Overrides:
paint
in classComponentUI
-
update
- Overrides:
update
in classBasicCommandButtonUI
-
paintTextAndFocus
-
getForegroundColor
private static Color getForegroundColor(JCommandButton button, StateTransitionTracker.ModelStateInfo modelStateInfo) -
getPreferredSize
- Overrides:
getPreferredSize
in classBasicCommandButtonUI
-
getTransitionTracker
Description copied from interface:TransitionAwareUI
Returns the model for tracking the transitions.- Specified by:
getTransitionTracker
in interfaceTransitionAwareUI
- Returns:
- Model for tracking the transitions.
-
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.
-