public final class PlasticMenuUI extends ExtBasicMenuUI
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
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
Constructor and Description |
---|
PlasticMenuUI() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent b) |
protected void |
installDefaults() |
protected void |
paintMenuItem(java.awt.Graphics g,
javax.swing.JComponent c,
javax.swing.Icon aCheckIcon,
javax.swing.Icon anArrowIcon,
java.awt.Color background,
java.awt.Color foreground,
int textIconGap)
Makes the item transparent, if it is not a sub menu and the model is not selected.
|
protected void |
uninstallDefaults() |
getPreferredMenuItemSize, getPropertyPrefix, installListeners, uninstallListeners
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createMouseInputListener, createPropertyChangeListener, getMaximumSize, installKeyboardActions, setupPostTimer, uninstallKeyboardActions
doClick, getMinimumSize, getPath, getPreferredSize, installComponents, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallUI, update
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
protected void installDefaults()
installDefaults
in class ExtBasicMenuUI
protected void uninstallDefaults()
uninstallDefaults
in class ExtBasicMenuUI
protected void paintMenuItem(java.awt.Graphics g, javax.swing.JComponent c, javax.swing.Icon aCheckIcon, javax.swing.Icon anArrowIcon, java.awt.Color background, java.awt.Color foreground, int textIconGap)
paintMenuItem
in class ExtBasicMenuUI
Copyright © 2001-2009 JGoodies Karsten Lentzsch. All Rights Reserved.