com.jtattoo.plaf
Class BaseMenuItemUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
com.jtattoo.plaf.BaseMenuItemUI
- Direct Known Subclasses:
- BaseCheckBoxMenuItemUI, BaseRadioButtonMenuItemUI, GraphiteMenuItemUI
public class BaseMenuItemUI
- extends BasicMenuItemUI
- 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 |
static ComponentUI |
createUI(JComponent c)
|
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.BasicMenuItemUI |
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, getPropertyPrefix, installComponents, installDefaults, installKeyboardActions, installListeners, paint, paintMenuItem, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseMenuItemUI
public BaseMenuItemUI()
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
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
Copyright © 2011. All Rights Reserved.