com.jidesoft.plaf.vsnet
Class VsnetMenuUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
com.jidesoft.plaf.vsnet.VsnetMenuItemUI
com.jidesoft.plaf.vsnet.VsnetMenuUI
- Direct Known Subclasses:
- BasicJideSplitButtonUI
public class VsnetMenuUI
- extends VsnetMenuItemUI
Menu UI implementation
Fields inherited from class com.jidesoft.plaf.vsnet.VsnetMenuItemUI |
_isFloatingIcon, acceleratorFont, acceleratorForeground, acceleratorRect, acceleratorSelectionForeground, arrowIcon, arrowIconRect, backgroundColor, borderColor, checkIcon, checkIconRect, defaultAccelEndGap, defaultShadowWidth, defaultTextIconGap, disabledForeground, iconRect, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground, shadowColor, textRect, viewRect, windowInputMap, zeroRect |
Methods inherited from class com.jidesoft.plaf.vsnet.VsnetMenuItemUI |
createInputMap, doClick, getIcon, getMinimumSize, getPainter, getPath, getPreferredMenuItemSize, getRightMargin, installComponents, installUI, isDownArrowVisible, isFloatingIcon, paint, paintCheckBox, paintIcon, paintMenuItem, uninstallComponents, uninstallUI, update, useCheckAndArrow |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
changeListener
protected javax.swing.event.ChangeListener changeListener
propertyChangeListener
protected java.beans.PropertyChangeListener propertyChangeListener
menuListener
protected javax.swing.event.MenuListener menuListener
VsnetMenuUI
public VsnetMenuUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in class VsnetMenuItemUI
getPropertyPrefix
protected java.lang.String getPropertyPrefix()
- Overrides:
getPropertyPrefix
in class VsnetMenuItemUI
paintBackground
protected void paintBackground(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Color bgColor)
- Description copied from class:
VsnetMenuItemUI
- Draws the background of the menu item.
- Overrides:
paintBackground
in class VsnetMenuItemUI
- Parameters:
g
- the paint graphicsmenuItem
- menu item to be paintedbgColor
- selection background color
installListeners
protected void installListeners()
- Overrides:
installListeners
in class VsnetMenuItemUI
createPopupMenuListener
protected javax.swing.event.PopupMenuListener createPopupMenuListener()
installKeyboardActions
protected void installKeyboardActions()
- Overrides:
installKeyboardActions
in class VsnetMenuItemUI
uninstallKeyboardActions
protected void uninstallKeyboardActions()
- Overrides:
uninstallKeyboardActions
in class VsnetMenuItemUI
createActionMap
protected javax.swing.ActionMap createActionMap()
- Invoked to create the ActionMap.
- Overrides:
createActionMap
in class VsnetMenuItemUI
createMouseInputListener
protected javax.swing.event.MouseInputListener createMouseInputListener(javax.swing.JComponent c)
- Overrides:
createMouseInputListener
in class VsnetMenuItemUI
createMenuListener
protected javax.swing.event.MenuListener createMenuListener(javax.swing.JComponent c)
createChangeListener
protected javax.swing.event.ChangeListener createChangeListener(javax.swing.JComponent c)
createPropertyChangeListener
protected java.beans.PropertyChangeListener createPropertyChangeListener(javax.swing.JComponent c)
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in class VsnetMenuItemUI
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in class VsnetMenuItemUI
createMenuDragMouseListener
protected javax.swing.event.MenuDragMouseListener createMenuDragMouseListener(javax.swing.JComponent c)
- Overrides:
createMenuDragMouseListener
in class VsnetMenuItemUI
createMenuKeyListener
protected javax.swing.event.MenuKeyListener createMenuKeyListener(javax.swing.JComponent c)
- Overrides:
createMenuKeyListener
in class VsnetMenuItemUI
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- Overrides:
getMaximumSize
in class VsnetMenuItemUI
setupPostTimer
protected static void setupPostTimer(javax.swing.JMenu menu)
appendPath
protected static void appendPath(javax.swing.MenuElement[] path,
javax.swing.MenuElement elem)
paintText
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.
- Overrides:
paintText
in class VsnetMenuItemUI
- 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.
- Parameters:
over
- the flag
isMouseOver
protected boolean isMouseOver()
- Get the temporary flag to indicate if the mouse has entered the menu.
- Returns:
- the flag.
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in class VsnetMenuItemUI