|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ButtonUI javax.swing.plaf.MenuItemUI javax.swing.plaf.basic.BasicMenuItemUI spellcast.ui.GestureMenuItemUI
public class GestureMenuItemUI
This is the UI delegate that handles the displaying of the
GestureChoicesMenuItem
. It restricts the menu item
to only display the icon with no border. Unfortunately this means
that the menu items dont display which menu item is armed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
---|
javax.swing.plaf.basic.BasicMenuItemUI.MouseInputHandler |
Field Summary |
---|
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
---|
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground |
Constructor Summary | |
---|---|
GestureMenuItemUI()
|
Method Summary | |
---|---|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
Override the maximum size to be the preferred size. |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
Override the minimum size to be the preferred size. |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
protected java.lang.String |
getPropertyPrefix()
Override the property to use for UI defaults to be GestureChoicesMenuItem. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Override painting to just paint the icon with no borders or embellishments. |
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
---|
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createUI, doClick, getPath, getPreferredMenuItemSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GestureMenuItemUI()
Method Detail |
---|
protected java.lang.String getPropertyPrefix()
getPropertyPrefix
in class javax.swing.plaf.basic.BasicMenuItemUI
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.basic.BasicMenuItemUI
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class javax.swing.plaf.basic.BasicMenuItemUI
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.basic.BasicMenuItemUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicMenuItemUI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |