java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
javax.swing.plaf.synth.SynthMenuItemUI
javax.swing.plaf.synth.SynthRadioButtonMenuItemUI
- All Implemented Interfaces:
PropertyChangeListener,EventListener,SynthConstants,SynthUI
Provides the Synth L&F UI delegate for
JRadioButtonMenuItem.- Since:
- 1.7
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuItemUI
BasicMenuItemUI.MouseInputHandler -
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForegroundFields inherited from interface javax.swing.plaf.synth.SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUICreates a new UI object for the given component.protected StringReturns a property prefix.voidpaintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) Paints the border.Methods inherited from class javax.swing.plaf.synth.SynthMenuItemUI
getContext, getPreferredMenuItemSize, installDefaults, installListeners, paint, paint, propertyChange, uninstallDefaults, uninstallListeners, uninstallUI, updateMethods inherited from class javax.swing.plaf.basic.BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredSize, installComponents, installKeyboardActions, installUI, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallKeyboardActionsMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
Constructor Details
-
SynthRadioButtonMenuItemUI
public SynthRadioButtonMenuItemUI()Constructs aSynthRadioButtonMenuItemUI.
-
-
Method Details
-
createUI
Creates a new UI object for the given component.- Parameters:
b- component to create UI object for- Returns:
- the UI object
-
getPropertyPrefix
Returns a property prefix.- Overrides:
getPropertyPrefixin classBasicMenuItemUI- Returns:
- a property prefix
-
paintBorder
Paints the border.- Specified by:
paintBorderin interfaceSynthUI- Overrides:
paintBorderin classSynthMenuItemUI- Parameters:
context- a component contextg-Graphicsto paint onx- the X coordinatey- the Y coordinatew- width of the borderh- height of the border
-