com.jtattoo.plaf
Class BaseMenuUI

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 javax.swing.plaf.basic.BasicMenuUI
                      extended by com.jtattoo.plaf.BaseMenuUI
Direct Known Subclasses:
GraphiteMenuUI

public class BaseMenuUI
extends BasicMenuUI

Author:
Michael Hagen

Nested Class Summary
protected  class BaseMenuUI.MyMouseInputHandler
           
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuUI
BasicMenuUI.ChangeHandler, BasicMenuUI.MouseInputHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicMenuUI
changeListener, menuListener
 
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
BaseMenuUI()
           
 
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 javax.swing.plaf.basic.BasicMenuItemUI
doClick, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, paint, paintMenuItem, uninstallComponents
 
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

BaseMenuUI

public BaseMenuUI()
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

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.