public class MetalMenuBarUI extends BasicMenuBarUI
changeListener, containerListener, menuBar
Constructor and Description |
---|
MetalMenuBarUI() |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c)
Creates and returns a new instance of this UI for the specified component.
|
void |
update(Graphics g,
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, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, paint
public MetalMenuBarUI()
public static ComponentUI createUI(JComponent c)
c
- the component to create a UI forpublic void update(Graphics g, JComponent c)
MenuBar.gradient
is set, then a gradient
is painted as background, otherwise the normal superclass behaviour is
called.update
in class ComponentUI
g
- 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)