public final class WindowsXPMenuUI
extends com.sun.java.swing.plaf.windows.WindowsMenuUI
MenuUI
.It differs from the superclass in that it uses an overhauled menu rendering an aligmnent system. Furthermore, you can set a client property Options.NO_ICONS_KEY to indicate that this menu has no icons.
Options
com.sun.java.swing.plaf.windows.WindowsMenuUI.WindowsMouseInputHandler
BasicMenuUI.ChangeHandler, BasicMenuUI.MouseInputHandler
hotTrackingOn, menuBarHeight
changeListener, menuListener
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
Constructor and Description |
---|
WindowsXPMenuUI() |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent b) |
protected Dimension |
getPreferredMenuItemSize(JComponent c,
Icon aCheckIcon,
Icon anArrowIcon,
int textIconGap) |
protected String |
getPropertyPrefix() |
protected void |
installDefaults() |
protected void |
paintMenuItem(Graphics g,
JComponent c,
Icon aCheckIcon,
Icon anArrowIcon,
Color background,
Color foreground,
int textIconGap) |
protected void |
uninstallDefaults() |
createMouseInputListener, paintBackground, paintText
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, getMaximumSize, installKeyboardActions, installListeners, setupPostTimer, uninstallKeyboardActions, uninstallListeners
doClick, getMinimumSize, getPath, getPreferredSize, installComponents, installUI, paint, uninstallComponents, uninstallUI, update
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
public static ComponentUI createUI(JComponent b)
protected void installDefaults()
installDefaults
in class com.sun.java.swing.plaf.windows.WindowsMenuUI
protected void uninstallDefaults()
uninstallDefaults
in class BasicMenuUI
protected String getPropertyPrefix()
getPropertyPrefix
in class BasicMenuUI
protected Dimension getPreferredMenuItemSize(JComponent c, Icon aCheckIcon, Icon anArrowIcon, int textIconGap)
getPreferredMenuItemSize
in class com.sun.java.swing.plaf.windows.WindowsMenuUI
protected void paintMenuItem(Graphics g, JComponent c, Icon aCheckIcon, Icon anArrowIcon, Color background, Color foreground, int textIconGap)
paintMenuItem
in class BasicMenuItemUI
Copyright © 2017 JGoodies Software GmbH. All rights reserved.