public class MetalMenuBarUI extends javax.swing.plaf.basic.BasicMenuBarUI
| Constructor and Description |
|---|
MetalMenuBarUI() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates and returns a new instance of this UI for the specified component.
|
void |
update(java.awt.Graphics g,
javax.swing.JComponent c)
If the property
MenuBar.gradient is set, then a gradient
is painted as background, otherwise the normal superclass behaviour is
called. |
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, getPreferredSize, installDefaults, installKeyboardActions, installListeners, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIpublic MetalMenuBarUI()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - the component to create a UI forpublic void update(java.awt.Graphics g, javax.swing.JComponent c)
MenuBar.gradient is set, then a gradient
is painted as background, otherwise the normal superclass behaviour is
called.update in class javax.swing.plaf.ComponentUIg - the graphics for painting.c - the component for which this delegate performs
services.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent),
JComponent.paintComponent(java.awt.Graphics)