com.jtattoo.plaf
Class BaseMenuUI
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
com.jtattoo.plaf.BaseMenuUI
- Direct Known Subclasses:
- GraphiteMenuUI
public class BaseMenuUI
- extends BasicMenuUI
- Author:
- Michael Hagen
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground |
Method Summary |
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)
|
Methods inherited from class javax.swing.plaf.basic.BasicMenuUI |
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, getMaximumSize, getPropertyPrefix, installKeyboardActions, installListeners, setupPostTimer, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseMenuUI
public BaseMenuUI()
createUI
public static ComponentUI createUI(JComponent c)
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in class BasicMenuItemUI
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUI
in class BasicMenuItemUI
update
public void update(Graphics g,
JComponent c)
- Overrides:
update
in class BasicMenuItemUI
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in class BasicMenuUI
paintBackground
protected void paintBackground(Graphics g,
JMenuItem menuItem,
Color bgColor)
- Overrides:
paintBackground
in class BasicMenuItemUI
paintBackground
protected void paintBackground(Graphics g,
JComponent c,
int x,
int y,
int w,
int h)
paintText
protected void paintText(Graphics g,
JMenuItem menuItem,
Rectangle textRect,
String text)
- Overrides:
paintText
in class BasicMenuItemUI
createMouseInputListener
protected MouseInputListener createMouseInputListener(JComponent c)
- Overrides:
createMouseInputListener
in class BasicMenuUI
Copyright © 2011. All Rights Reserved.