com.jidesoft.plaf.eclipse
Class EclipseMenuUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
com.jidesoft.plaf.eclipse.EclipseMenuItemUI
com.jidesoft.plaf.eclipse.EclipseMenuUI
- Direct Known Subclasses:
- EclipseJideSplitButtonUI
public class EclipseMenuUI
- extends EclipseMenuItemUI
Menu UI implementation
Fields inherited from class com.jidesoft.plaf.eclipse.EclipseMenuItemUI |
_painter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultAccelEndGap, defaultShadowWidth, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground, shadowColor |
Methods inherited from class com.jidesoft.plaf.eclipse.EclipseMenuItemUI |
doClick, getMinimumSize, getPainter, getPath, getPreferredMenuItemSize, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, uninstallComponents, uninstallUI, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
changeListener
protected ChangeListener changeListener
propertyChangeListener
protected PropertyChangeListener propertyChangeListener
menuListener
protected MenuListener menuListener
EclipseMenuUI
public EclipseMenuUI()
createUI
public static ComponentUI createUI(JComponent x)
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in class EclipseMenuItemUI
getPropertyPrefix
protected String getPropertyPrefix()
- Overrides:
getPropertyPrefix
in class EclipseMenuItemUI
paintBackground
protected void paintBackground(Graphics g,
JMenuItem menuItem,
Color bgColor)
- Draws the background of the menu item.
- Overrides:
paintBackground
in class EclipseMenuItemUI
- Parameters:
g
- the paint graphicsmenuItem
- menu item to be paintedbgColor
- selection background color- Since:
- 1.4
installListeners
protected void installListeners()
- Overrides:
installListeners
in class EclipseMenuItemUI
installKeyboardActions
protected void installKeyboardActions()
- Overrides:
installKeyboardActions
in class EclipseMenuItemUI
uninstallKeyboardActions
protected void uninstallKeyboardActions()
- Overrides:
uninstallKeyboardActions
in class EclipseMenuItemUI
createMouseInputListener
protected MouseInputListener createMouseInputListener(JComponent c)
- Overrides:
createMouseInputListener
in class EclipseMenuItemUI
createMenuListener
protected MenuListener createMenuListener(JComponent c)
createChangeListener
protected ChangeListener createChangeListener(JComponent c)
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in class EclipseMenuItemUI
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in class EclipseMenuItemUI
createMenuDragMouseListener
protected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
- Overrides:
createMenuDragMouseListener
in class EclipseMenuItemUI
createMenuKeyListener
protected MenuKeyListener createMenuKeyListener(JComponent c)
- Overrides:
createMenuKeyListener
in class EclipseMenuItemUI
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
getMaximumSize
in class EclipseMenuItemUI
setupPostTimer
public static void setupPostTimer(JMenu menu)
appendPath
protected static void appendPath(MenuElement[] path,
MenuElement elem)
paintText
protected void paintText(Graphics g,
JMenuItem menuItem,
Rectangle textRect,
String text)
- Method which renders the text of the current menu item.
- Overrides:
paintText
in class EclipseMenuItemUI
- Parameters:
g
- Graphics contextmenuItem
- Current menu item to rendertextRect
- Bounding rectangle to render the text.text
- String to render- Since:
- 1.4
setMouseOver
protected void setMouseOver(boolean over)
- Set the temporary flag to indicate if the mouse has entered the menu.
isMouseOver
protected boolean isMouseOver()
- Get the temporary flag to indicate if the mouse has entered the menu.
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in class EclipseMenuItemUI