|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
javax.swing.plaf.basic.BasicCheckBoxMenuItemUI
org.jvnet.substance.SubstanceCheckBoxMenuItemUI
public class SubstanceCheckBoxMenuItemUI
UI for check box menu items in Substance look and feel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
|---|
javax.swing.plaf.basic.BasicMenuItemUI.MouseInputHandler |
| Field Summary | |
|---|---|
protected org.jvnet.lafwidget.animation.FadeStateListener |
substanceFadeStateListener
Listener for fade animations. |
protected MenuUtilities.MenuPropertyListener |
substanceMenuPropertyListener
Listens on all changes to the underlying menu item. |
protected java.beans.PropertyChangeListener |
substancePropertyListener
Property change listener. |
protected RolloverMenuItemListener |
substanceRolloverListener
Rollover listener. |
| Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
|---|
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground |
| Constructor Summary | |
|---|---|
SubstanceCheckBoxMenuItemUI()
|
|
| Method Summary | |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent b)
|
java.awt.Font |
getAcceleratorFont()
Returns the font of the accelerator string of this UI
delegate. |
javax.swing.Icon |
getArrowIcon()
Returns the arrow icon of this UI delegate. |
javax.swing.JMenuItem |
getAssociatedMenuItem()
Returns the associated menu item. |
javax.swing.Icon |
getCheckIcon()
Returns the checkmark icon of this UI delegate. |
int |
getDefaultTextIconGap()
Returns the default gap between the icon and the text for this delegate. |
protected java.awt.Dimension |
getPreferredMenuItemSize(javax.swing.JComponent c,
javax.swing.Icon checkIcon,
javax.swing.Icon arrowIcon,
int defaultTextIconGap)
|
protected void |
installDefaults()
|
protected void |
installListeners()
|
protected void |
paintMenuItem(java.awt.Graphics g,
javax.swing.JComponent c,
javax.swing.Icon checkIcon,
javax.swing.Icon arrowIcon,
java.awt.Color background,
java.awt.Color foreground,
int defaultTextIconGap)
|
protected void |
uninstallListeners()
|
| Methods inherited from class javax.swing.plaf.basic.BasicCheckBoxMenuItemUI |
|---|
getPropertyPrefix, processMouseEvent |
| Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
|---|
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredSize, installComponents, installKeyboardActions, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI, update |
| 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 |
| Field Detail |
|---|
protected RolloverMenuItemListener substanceRolloverListener
protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
protected MenuUtilities.MenuPropertyListener substanceMenuPropertyListener
protected java.beans.PropertyChangeListener substancePropertyListener
AbstractButton.MODEL_CHANGED_PROPERTY property.
| Constructor Detail |
|---|
public SubstanceCheckBoxMenuItemUI()
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
protected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicMenuItemUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicMenuItemUIprotected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicMenuItemUIpublic javax.swing.JMenuItem getAssociatedMenuItem()
SubstanceMenu
getAssociatedMenuItem in interface SubstanceMenupublic java.awt.Font getAcceleratorFont()
SubstanceMenuthis UI
delegate.
getAcceleratorFont in interface SubstanceMenuthis UI
delegate.public javax.swing.Icon getArrowIcon()
SubstanceMenuthis UI delegate.
getArrowIcon in interface SubstanceMenuthis UI delegate.public javax.swing.Icon getCheckIcon()
SubstanceMenuthis UI delegate.
getCheckIcon in interface SubstanceMenuthis UI delegate.public int getDefaultTextIconGap()
SubstanceMenuthis delegate.
getDefaultTextIconGap in interface SubstanceMenuthis delegate.
protected java.awt.Dimension getPreferredMenuItemSize(javax.swing.JComponent c,
javax.swing.Icon checkIcon,
javax.swing.Icon arrowIcon,
int defaultTextIconGap)
getPreferredMenuItemSize in class javax.swing.plaf.basic.BasicMenuItemUI
protected void paintMenuItem(java.awt.Graphics g,
javax.swing.JComponent c,
javax.swing.Icon checkIcon,
javax.swing.Icon arrowIcon,
java.awt.Color background,
java.awt.Color foreground,
int defaultTextIconGap)
paintMenuItem in class javax.swing.plaf.basic.BasicMenuItemUI
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||