|
|||||||||
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.BasicMenuUI
org.jvnet.substance.SubstanceMenuUI
public class SubstanceMenuUI
UI for menus in Substance look and feel.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuUI |
---|
javax.swing.plaf.basic.BasicMenuUI.ChangeHandler, javax.swing.plaf.basic.BasicMenuUI.MouseInputHandler |
Field Summary | |
---|---|
protected static java.awt.Graphics |
graphics
Graphics context for laying out the menu items. |
protected org.jvnet.lafwidget.animation.FadeStateListener |
substanceFadeStateListener
Listener for fade animations. |
protected java.awt.event.FocusListener |
substanceFocusListener
For rollover effects - enhancement 93. |
protected MenuUtilities.MenuPropertyListener |
substanceMenuPropertyListener
Listens on all changes to the underlying menu item. |
protected java.awt.event.MouseListener |
substanceMouseListener
For rollover effects - enhancement 93. |
protected java.beans.PropertyChangeListener |
substancePropertyListener
Property change listener. |
Fields inherited from class javax.swing.plaf.basic.BasicMenuUI |
---|
changeListener, menuListener |
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
---|
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground |
Fields inherited from interface org.jvnet.substance.SubstanceMenu |
---|
SINGLE_MENU_TEXT_OFFSET |
Constructor Summary | |
---|---|
SubstanceMenuUI()
|
Method Summary | |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
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 |
paintBackground(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Color bgColor)
|
protected void |
paintText(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Rectangle textRect,
java.lang.String text)
|
protected void |
uninstallListeners()
|
Methods inherited from class javax.swing.plaf.basic.BasicMenuUI |
---|
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createMouseInputListener, createPropertyChangeListener, getMaximumSize, getPropertyPrefix, installKeyboardActions, setupPostTimer, uninstallDefaults, uninstallKeyboardActions |
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
---|
doClick, getMinimumSize, getPath, getPreferredSize, installComponents, installUI, paint, paintMenuItem, uninstallComponents, 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 java.awt.event.MouseListener substanceMouseListener
protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
protected MenuUtilities.MenuPropertyListener substanceMenuPropertyListener
protected java.beans.PropertyChangeListener substancePropertyListener
AbstractButton.MODEL_CHANGED_PROPERTY
property.
protected java.awt.event.FocusListener substanceFocusListener
protected static java.awt.Graphics graphics
Constructor Detail |
---|
public SubstanceMenuUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
protected void installDefaults()
installDefaults
in class javax.swing.plaf.basic.BasicMenuUI
protected void installListeners()
installListeners
in class javax.swing.plaf.basic.BasicMenuUI
protected void uninstallListeners()
uninstallListeners
in class javax.swing.plaf.basic.BasicMenuUI
protected void paintBackground(java.awt.Graphics g, javax.swing.JMenuItem menuItem, java.awt.Color bgColor)
paintBackground
in class javax.swing.plaf.basic.BasicMenuItemUI
protected void paintText(java.awt.Graphics g, javax.swing.JMenuItem menuItem, java.awt.Rectangle textRect, java.lang.String text)
paintText
in class javax.swing.plaf.basic.BasicMenuItemUI
public javax.swing.JMenuItem getAssociatedMenuItem()
SubstanceMenu
getAssociatedMenuItem
in interface SubstanceMenu
public java.awt.Font getAcceleratorFont()
SubstanceMenu
this
UI
delegate.
getAcceleratorFont
in interface SubstanceMenu
this
UI
delegate.public javax.swing.Icon getArrowIcon()
SubstanceMenu
this
UI delegate.
getArrowIcon
in interface SubstanceMenu
this
UI delegate.public javax.swing.Icon getCheckIcon()
SubstanceMenu
this
UI delegate.
getCheckIcon
in interface SubstanceMenu
this
UI delegate.public int getDefaultTextIconGap()
SubstanceMenu
this
delegate.
getDefaultTextIconGap
in interface SubstanceMenu
this
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |