public class BaseMenuUI extends BasicMenuUI
| Modifier and Type | Class and Description |
|---|---|
protected class |
BaseMenuUI.MyMouseInputHandler |
BasicMenuUI.ChangeHandler, BasicMenuUI.MouseInputHandler| Modifier and Type | Field and Description |
|---|---|
protected boolean |
paintRolloverBorder |
changeListener, menuListeneracceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground| Constructor and Description |
|---|
BaseMenuUI() |
| Modifier and Type | Method and Description |
|---|---|
protected MouseInputListener |
createMouseInputListener(JComponent c) |
static ComponentUI |
createUI(JComponent c) |
protected void |
installDefaults() |
void |
installUI(JComponent c) |
protected void |
paintBackground(Graphics g,
JComponent c,
int x,
int y,
int w,
int h) |
protected void |
paintBackground(Graphics g,
JMenuItem menuItem,
Color bgColor) |
protected void |
paintText(Graphics g,
JMenuItem menuItem,
Rectangle textRect,
String text) |
void |
uninstallUI(JComponent c) |
void |
update(Graphics g,
JComponent c) |
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, getMaximumSize, getPropertyPrefix, installKeyboardActions, installListeners, setupPostTimer, uninstallDefaults, uninstallKeyboardActions, uninstallListenersdoClick, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, paint, paintMenuItem, uninstallComponentscontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorpublic static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
installUI in class BasicMenuItemUIpublic void uninstallUI(JComponent c)
uninstallUI in class BasicMenuItemUIpublic void update(Graphics g, JComponent c)
update in class BasicMenuItemUIprotected void installDefaults()
installDefaults in class BasicMenuUIprotected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
paintBackground in class BasicMenuItemUIprotected void paintBackground(Graphics g, JComponent c, int x, int y, int w, int h)
protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)
paintText in class BasicMenuItemUIprotected MouseInputListener createMouseInputListener(JComponent c)
createMouseInputListener in class BasicMenuUICopyright © 2014. All Rights Reserved.