Class RadianceCommandButtonUI
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.theming.common.ui.RadianceCommandButtonUI
- All Implemented Interfaces:
ActionPopupTransitionAwareUI, TransitionAwareUI, RadianceCoreUtilities.BackgroundAppearanceStrategyAware
public class RadianceCommandButtonUI
extends BasicCommandButtonUI
implements ActionPopupTransitionAwareUI
UI for command buttons
JCommandButton in Radiance look and feel.- Author:
- Kirill Grouchnikov
-
Field Summary
Fields inherited from class BasicCommandButtonUI
backgroundAppearanceStrategy, commandButton, DO_NOT_DISPOSE_POPUPS, extraText, horizontalAlignment, icon, isInnerFocusOnAction, layoutInfo, layoutManager, popupIcon, text -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUIcreateUI(JComponent comp) voidFires the rollover action on all registered handlers.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.protected booleanReturns indication whether the button background is painted.protected booleanReturns indication whether the action-popup areas separator is painted.voidpaint(Graphics g, JComponent c) protected voidpaintButtonIcon(Graphics g, Rectangle iconRect, Color textColor) protected voidUninstalls listeners from the associated command button.voidupdate(Graphics g, JComponent c) Methods inherited from class BasicCommandButtonUI
createButtonListener, createPopupActionListener, getActionKeyTipAnchorCenterPoint, getBackgroundAppearanceStrategy, getLayoutInfo, getLayoutManager, getPopupKeyTipAnchorCenterPoint, installComponents, installKeyboardActions, installUI, isInnerFocusOnAction, processPopupAction, setInnerFocusOnAction, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI, updatePopupIconMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()Description copied from class:BasicCommandButtonUIInstalls defaults on the associated command button.- Overrides:
installDefaultsin classBasicCommandButtonUI
-
installListeners
protected void installListeners()Description copied from class:BasicCommandButtonUIInstalls listeners on the associated command button.- Overrides:
installListenersin classBasicCommandButtonUI
-
uninstallListeners
protected void uninstallListeners()Description copied from class:BasicCommandButtonUIUninstalls listeners from the associated command button.- Overrides:
uninstallListenersin classBasicCommandButtonUI
-
fireRolloverActionPerformed
Fires the rollover action on all registered handlers.- Parameters:
e- Event object.
-
paintButtonIcon
-
isPaintingBackground
protected boolean isPaintingBackground()Description copied from class:BasicCommandButtonUIReturns indication whether the button background is painted.- Overrides:
isPaintingBackgroundin classBasicCommandButtonUI- Returns:
trueif the button background is painted.
-
isPaintingSeparators
protected boolean isPaintingSeparators()Description copied from class:BasicCommandButtonUIReturns indication whether the action-popup areas separator is painted.- Overrides:
isPaintingSeparatorsin classBasicCommandButtonUI- Returns:
trueif the action-popup areas separator is painted.
-
paint
- Overrides:
paintin classComponentUI
-
update
- Overrides:
updatein classBasicCommandButtonUI
-
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.
-
getActionTransitionTracker
- Specified by:
getActionTransitionTrackerin interfaceActionPopupTransitionAwareUI
-
getPopupTransitionTracker
- Specified by:
getPopupTransitionTrackerin interfaceActionPopupTransitionAwareUI
-