com.jtattoo.plaf
Class BaseMenuItemUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.MenuItemUI
              extended by javax.swing.plaf.basic.BasicMenuItemUI
                  extended by com.jtattoo.plaf.BaseMenuItemUI
Direct Known Subclasses:
BaseCheckBoxMenuItemUI, BaseRadioButtonMenuItemUI, GraphiteMenuItemUI

public class BaseMenuItemUI
extends BasicMenuItemUI

Author:
Michael Hagen

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuItemUI
BasicMenuItemUI.MouseInputHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
 
Constructor Summary
BaseMenuItemUI()
           
 
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 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMenuItemUI

public BaseMenuItemUI()
Method Detail

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.