Class RadianceButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
org.pushingpixels.radiance.theming.internal.ui.RadianceButtonUI
- All Implemented Interfaces:
ModificationAwareUI, TransitionAwareUI
public class RadianceButtonUI
extends BasicButtonUI
implements TransitionAwareUI, ModificationAwareUI
UI for buttons in Radiance look and feel.
- Author:
- Kirill Grouchnikov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty used during the button shaper switch.static final StringProperty used during the button shaper switch.protected AbstractButtonFields inherited from class BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRadianceButtonUI(AbstractButton button) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(JComponent c, int x, int y) protected BasicButtonListenerstatic ComponentUIcreateUI(JComponent comp) Returns the model for tracking the transitions.protected voidprotected voidvoidbooleanisInside(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 voidpaintIcon(Graphics g, JComponent c, Rectangle iconRect) protected voidprotected voidvoidvoidupdate(Graphics g, JComponent c) Methods inherited from class BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, paintButtonPressed, paintFocus, paintText, paintText, setTextShiftOffset, uninstallKeyboardActionsMethods inherited from class ComponentUI
getAccessibleChild, getAccessibleChildrenCount
-
Field Details
-
BORDER_COMPUTED
-
BORDER_COMPUTING
Property used during the button shaper switch.- See Also:
-
button
-
-
Constructor Details
-
RadianceButtonUI
Simple constructor.
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicButtonUI
-
uninstallUI
- Overrides:
uninstallUIin classBasicButtonUI
-
installDefaults
- Overrides:
installDefaultsin classBasicButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classBasicButtonUI
-
createButtonListener
- Overrides:
createButtonListenerin classBasicButtonUI
-
installListeners
- Overrides:
installListenersin classBasicButtonUI
-
uninstallListeners
- Overrides:
uninstallListenersin classBasicButtonUI
-
paint
- Overrides:
paintin classBasicButtonUI
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicButtonUI
-
contains
- Overrides:
containsin classComponentUI
-
paintIcon
- Overrides:
paintIconin classBasicButtonUI
-
update
- Overrides:
updatein classComponentUI
-
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.
-
getModificationTimeline
- Specified by:
getModificationTimelinein interfaceModificationAwareUI
-