Class RadianceRadioButtonMenuItemUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
javax.swing.plaf.basic.BasicRadioButtonMenuItemUI
org.pushingpixels.radiance.theming.internal.ui.RadianceRadioButtonMenuItemUI
- All Implemented Interfaces:
TransitionAwareUI, RadianceMenu
public class RadianceRadioButtonMenuItemUI
extends BasicRadioButtonMenuItemUI
implements RadianceMenu, TransitionAwareUI
UI for radio button menu items in Radiance look and feel.
-
Nested Class Summary
Nested classes/interfaces inherited from class BasicMenuItemUI
BasicMenuItemUI.MouseInputHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionListens on all changes to the underlying menu item.private PropertyChangeListenerProperty change listener.private RolloverMenuItemListenerRollover listener.private StateTransitionTrackerFields inherited from class BasicMenuItemUI
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUIcreateUI(JComponent comp) Returns the font of the accelerator string ofthisUI delegate.Returns the arrow icon ofthisUI delegate.Returns the associated menu item.Returns the checkmark icon ofthisUI delegate.intReturns the default gap between the icon and the text forthisdelegate.protected DimensiongetPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) 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.protected voidpaintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) protected voidvoidupdate(Graphics g, JComponent c) voidMethods inherited from class BasicRadioButtonMenuItemUI
getPropertyPrefix, processMouseEventMethods inherited from class BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredSize, installComponents, installKeyboardActions, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUIMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
Field Details
-
radianceRolloverListener
Rollover listener. -
stateTransitionTracker
-
radiancePropertyListener
Property change listener. Listens on changes toAbstractButton.MODEL_CHANGED_PROPERTYproperty. -
radianceMenuPropertyListener
Listens on all changes to the underlying menu item.
-
-
Constructor Details
-
RadianceRadioButtonMenuItemUI
-
-
Method Details
-
createUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicMenuItemUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicMenuItemUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicMenuItemUI
-
updateCheckIconIfNeeded
public void updateCheckIconIfNeeded()- Specified by:
updateCheckIconIfNeededin interfaceRadianceMenu
-
getAssociatedMenuItem
Description copied from interface:RadianceMenuReturns the associated menu item.- Specified by:
getAssociatedMenuItemin interfaceRadianceMenu- Returns:
- The associated menu item.
-
getAcceleratorFont
Description copied from interface:RadianceMenuReturns the font of the accelerator string ofthisUI delegate.- Specified by:
getAcceleratorFontin interfaceRadianceMenu- Returns:
- The font of the accelerator string of
thisUI delegate.
-
getArrowIcon
Description copied from interface:RadianceMenuReturns the arrow icon ofthisUI delegate.- Specified by:
getArrowIconin interfaceRadianceMenu- Returns:
- The arrow icon of
thisUI delegate.
-
getCheckIcon
Description copied from interface:RadianceMenuReturns the checkmark icon ofthisUI delegate.- Specified by:
getCheckIconin interfaceRadianceMenu- Returns:
- The checkmark icon of
thisUI delegate.
-
getDefaultTextIconGap
public int getDefaultTextIconGap()Description copied from interface:RadianceMenuReturns the default gap between the icon and the text forthisdelegate.- Specified by:
getDefaultTextIconGapin interfaceRadianceMenu- Returns:
- The default gap between the icon and the text for
thisdelegate.
-
getPreferredMenuItemSize
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) - Overrides:
getPreferredMenuItemSizein classBasicMenuItemUI
-
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.
-
paintMenuItem
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) - Overrides:
paintMenuItemin classBasicMenuItemUI
-
update
- Overrides:
updatein classBasicMenuItemUI
-