Class SynthMenuUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
javax.swing.plaf.basic.BasicMenuUI
javax.swing.plaf.synth.SynthMenuUI
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,SynthConstants
,SynthUI
Provides the Synth L&F UI delegate for
JMenu
.- Since:
- 1.7
-
Nested Class Summary
Nested classes/interfaces declared in class javax.swing.plaf.basic.BasicMenuUI
BasicMenuUI.ChangeHandler, BasicMenuUI.MouseInputHandler
-
Field Summary
Fields declared in class javax.swing.plaf.basic.BasicMenuUI
changeListener, menuListener
Fields declared in class javax.swing.plaf.basic.BasicMenuItemUI
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
Fields declared in interface javax.swing.plaf.synth.SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
Creates a new UI object for the given component.Returns the Context for the specified component.void
paint
(Graphics g, JComponent c) Paints the specified component according to the Look and Feel.protected void
paint
(SynthContext context, Graphics g) Paints the specified component.void
paintBorder
(SynthContext context, Graphics g, int x, int y, int w, int h) Paints the border.void
This method gets called when a bound property is changed.void
update
(Graphics g, JComponent c) Notifies this UI delegate to repaint the specified component.Methods declared in class javax.swing.plaf.basic.BasicMenuUI
createChangeListener, createMenuListener, setupPostTimer
Methods declared in class javax.swing.plaf.basic.BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener,