| java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ButtonUI javax.swing.plaf.MenuItemUI com.jidesoft.plaf.vsnet.VsnetMenuItemUI
All known Subclasses: com.jidesoft.plaf.metal.MetalRadioButtonMenuItemUI, com.jidesoft.plaf.vsnet.VsnetCheckBoxMenuItemUI, com.jidesoft.plaf.vsnet.VsnetRadioButtonMenuItemUI, com.jidesoft.plaf.vsnet.VsnetMenuUI,
VsnetMenuItemUI | public class VsnetMenuItemUI extends MenuItemUI (Code) | | MenuItem UI implementation
|
Method Summary | |
protected ActionMap | createActionMap() | protected InputMap | createInputMap(int condition) | protected MenuDragMouseListener | createMenuDragMouseListener(JComponent c) | protected MenuKeyListener | createMenuKeyListener(JComponent c) | protected MouseInputListener | createMouseInputListener(JComponent c) | public static ComponentUI | createUI(JComponent c) | protected void | doClick(MenuSelectionManager msm) Call this method when a menu item is to be activated.
This method handles some of the details of menu item activation
such as clearing the selected path and messaging the
JMenuItem's doClick() method.
Parameters: msm - A MenuSelectionManager. | ActionMap | getActionMap() | protected Icon | getIcon(AbstractButton b) | public Dimension | getMaximumSize(JComponent c) | public Dimension | getMinimumSize(JComponent c) | protected ThemePainter | getPainter() | public MenuElement[] | getPath() | protected Dimension | getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int textIconGap) | public Dimension | getPreferredSize(JComponent c) | protected String | getPropertyPrefix() | protected int | getRightMargin() | protected void | installComponents(JMenuItem menuItem) | protected void | installDefaults() | protected void | installKeyboardActions() | protected void | installListeners() | public void | installUI(JComponent c) | protected boolean | isDownArrowVisible(Container c) | protected boolean | isFloatingIcon() | public void | paint(Graphics g, JComponent c) | protected void | paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) Draws the background of the menu item. | protected void | paintCheckBox(JMenuItem b, Graphics g, Icon checkIcon) | protected void | paintIcon(JMenuItem b, Graphics g) | protected void | paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) | protected void | paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) Method which renders the text of the current menu item. | protected void | uninstallComponents(JMenuItem menuItem) | protected void | uninstallDefaults() | protected void | uninstallKeyboardActions() | protected void | uninstallListeners() | public void | uninstallUI(JComponent c) | public void | update(Graphics g, JComponent c) We draw the background in paintMenuItem()
so override update (which fills the background of opaque
components by default) to just call paint(). | void | updateAcceleratorBinding() | protected boolean | useCheckAndArrow() |
_isFloatingIcon | protected boolean _isFloatingIcon(Code) | | |
acceleratorFont | protected Font acceleratorFont(Code) | | |
acceleratorForeground | protected Color acceleratorForeground(Code) | | |
acceleratorSelectionForeground | protected Color acceleratorSelectionForeground(Code) | | |
defaultAccelEndGap | protected int defaultAccelEndGap(Code) | | |
defaultShadowWidth | protected int defaultShadowWidth(Code) | | |
defaultTextIconGap | protected int defaultTextIconGap(Code) | | |
disabledForeground | protected Color disabledForeground(Code) | | |
oldBorderPainted | protected boolean oldBorderPainted(Code) | | |
selectionBackground | protected Color selectionBackground(Code) | | |
selectionForeground | protected Color selectionForeground(Code) | | |
windowInputMap | protected InputMap windowInputMap(Code) | | Used for accelerator binding, lazily created.
|
doClick | protected void doClick(MenuSelectionManager msm)(Code) | | Call this method when a menu item is to be activated.
This method handles some of the details of menu item activation
such as clearing the selected path and messaging the
JMenuItem's doClick() method.
Parameters: msm - A MenuSelectionManager. The visual feedback andinternal bookkeeping tasks are delegated tothis MenuSelectionManager. If null ispassed as this argument, theMenuSelectionManager.defaultManager isused. See Also: MenuSelectionManager See Also: JMenuItem.doClick(int) since: 1.4 |
getRightMargin | protected int getRightMargin()(Code) | | |
installComponents | protected void installComponents(JMenuItem menuItem)(Code) | | since: 1.3 |
installDefaults | protected void installDefaults()(Code) | | |
installKeyboardActions | protected void installKeyboardActions()(Code) | | |
installListeners | protected void installListeners()(Code) | | |
isFloatingIcon | protected boolean isFloatingIcon()(Code) | | |
paintBackground | protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)(Code) | | Draws the background of the menu item.
Parameters: g - the paint graphics Parameters: menuItem - menu item to be painted Parameters: bgColor - selection background color since: 1.4 |
paintText | protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)(Code) | | Method which renders the text of the current menu item.
Parameters: g - Graphics context Parameters: menuItem - Current menu item to render Parameters: textRect - Bounding rectangle to render the text. Parameters: text - String to render |
uninstallComponents | protected void uninstallComponents(JMenuItem menuItem)(Code) | | since: 1.3 |
uninstallDefaults | protected void uninstallDefaults()(Code) | | |
uninstallKeyboardActions | protected void uninstallKeyboardActions()(Code) | | |
uninstallListeners | protected void uninstallListeners()(Code) | | |
update | public void update(Graphics g, JComponent c)(Code) | | We draw the background in paintMenuItem()
so override update (which fills the background of opaque
components by default) to just call paint().
|
updateAcceleratorBinding | void updateAcceleratorBinding()(Code) | | |
useCheckAndArrow | protected boolean useCheckAndArrow()(Code) | | |
|
|