public class BEMenuUI
extends javax.swing.plaf.basic.BasicMenuUI
限定符和类型 | 类和说明 |
---|---|
protected class |
BEMenuUI.BEMouseInputHandler
This class implements a mouse handler that sets the rollover flag to
true when the mouse enters the menu and false when it exits.
|
限定符和类型 | 字段和说明 |
---|---|
static int |
DECORATED_UNDERLINE_HEIGHT
The Constant DECORATED_UNDERLINE_HEIGHT.
|
protected boolean |
hotTrackingOn
The hot tracking on.
|
static java.awt.Color |
MENU_SELECTED_UNDERLINE_COLOR
The Constant MENU_SELECTED_UNDERLINE_COLOR.
|
static java.awt.Color |
MENU_UNSELECTED_UNDERLINE_COLOR
The Constant MENU_UNSELECTED_UNDERLINE_COLOR.
|
protected java.lang.Integer |
menuBarHeight
The menu bar height.
|
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
构造器和说明 |
---|
BEMenuUI() |
限定符和类型 | 方法和说明 |
---|---|
protected javax.swing.event.MouseInputListener |
createMouseInputListener(javax.swing.JComponent c) |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent x)
Creates the ui.
|
protected java.awt.Dimension |
getPreferredMenuItemSize(javax.swing.JComponent c,
javax.swing.Icon checkIcon,
javax.swing.Icon arrowIcon,
int defaultTextIconGap) |
protected void |
installDefaults() |
protected void |
paintBackground(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Color bgColor)
Draws the background of the menu.
|
protected void |
paintText(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Rectangle textRect,
java.lang.String text)
Method which renders the text of the current menu item.
|
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, getMaximumSize, getPropertyPrefix, installKeyboardActions, installListeners, setupPostTimer, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
doClick, getMinimumSize, getPath, getPreferredSize, installComponents, installUI, paint, paintMenuItem, uninstallComponents, uninstallUI, update
public static final int DECORATED_UNDERLINE_HEIGHT
public static final java.awt.Color MENU_SELECTED_UNDERLINE_COLOR
public static final java.awt.Color MENU_UNSELECTED_UNDERLINE_COLOR
protected java.lang.Integer menuBarHeight
protected boolean hotTrackingOn
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
x
- the xprotected void installDefaults()
installDefaults
在类中 javax.swing.plaf.basic.BasicMenuUI
protected void paintBackground(java.awt.Graphics g, javax.swing.JMenuItem menuItem, java.awt.Color bgColor)
paintBackground
在类中 javax.swing.plaf.basic.BasicMenuItemUI
g
- the gmenuItem
- the menu itembgColor
- the bg colorprotected void paintText(java.awt.Graphics g, javax.swing.JMenuItem menuItem, java.awt.Rectangle textRect, java.lang.String text)
paintText
在类中 javax.swing.plaf.basic.BasicMenuItemUI
g
- Graphics contextmenuItem
- Current menu item to rendertextRect
- Bounding rectangle to render the text.text
- String to renderprotected javax.swing.event.MouseInputListener createMouseInputListener(javax.swing.JComponent c)
createMouseInputListener
在类中 javax.swing.plaf.basic.BasicMenuUI
protected java.awt.Dimension getPreferredMenuItemSize(javax.swing.JComponent c, javax.swing.Icon checkIcon, javax.swing.Icon arrowIcon, int defaultTextIconGap)
getPreferredMenuItemSize
在类中 javax.swing.plaf.basic.BasicMenuItemUI