public class

WindowsCheckBoxMenuItemUI

extends BasicCheckBoxMenuItemUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.ButtonUI
       ↳ javax.swing.plaf.MenuItemUI
         ↳ javax.swing.plaf.basic.BasicMenuItemUI
           ↳ javax.swing.plaf.basic.BasicCheckBoxMenuItemUI
             ↳ com.sun.java.swing.plaf.windows.WindowsCheckBoxMenuItemUI

Class Overview

Windows check box menu item.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.

Summary

[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicMenuItemUI
Public Constructors
WindowsCheckBoxMenuItemUI()
Public Methods
static ComponentUI createUI(JComponent b)
Protected Methods
void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
Draws the background of the menu item.
void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)
Method which renders the text of the current menu item.
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicCheckBoxMenuItemUI
From class javax.swing.plaf.basic.BasicMenuItemUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Public Constructors

public WindowsCheckBoxMenuItemUI ()

Public Methods

public static ComponentUI createUI (JComponent b)

Protected Methods

protected void paintBackground (Graphics g, JMenuItem menuItem, Color bgColor)

Draws the background of the menu item.

Parameters
g the paint graphics
menuItem menu item to be painted
bgColor selection background color

protected void paintText (Graphics g, JMenuItem menuItem, Rectangle textRect, String text)

Method which renders the text of the current menu item.

Parameters
g Graphics context
menuItem Current menu item to render
textRect Bounding rectangle to render the text.
text String to render