public class SubstanceRadioButtonMenuItemUI extends javax.swing.plaf.basic.BasicRadioButtonMenuItemUI implements SubstanceMenu, TransitionAwareUI
| Modifier and Type | Field and Description |
|---|---|
protected StateTransitionTracker |
stateTransitionTracker |
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.
|
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground| Constructor and Description |
|---|
SubstanceRadioButtonMenuItemUI(javax.swing.JRadioButtonMenuItem menuItem) |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent comp) |
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) |
StateTransitionTracker |
getTransitionTracker()
Returns the model for tracking the transitions.
|
protected void |
installDefaults() |
protected void |
installListeners() |
boolean |
isInside(java.awt.event.MouseEvent me)
Checks whether the mouse position of the specified event lies inside the
area of the component designated for transition effects.
|
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() |
getPropertyPrefix, processMouseEventcreateMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredSize, installComponents, installKeyboardActions, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI, updateprotected RolloverMenuItemListener substanceRolloverListener
protected StateTransitionTracker stateTransitionTracker
protected java.beans.PropertyChangeListener substancePropertyListener
AbstractButton.MODEL_CHANGED_PROPERTY property.protected MenuUtilities.MenuPropertyListener substanceMenuPropertyListener
public SubstanceRadioButtonMenuItemUI(javax.swing.JRadioButtonMenuItem menuItem)
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
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()
SubstanceMenugetAssociatedMenuItem 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.BasicMenuItemUIpublic boolean isInside(java.awt.event.MouseEvent me)
TransitionAwareUIisInside in interface TransitionAwareUIme - Mouse event.true if the mouse position of the specified event
lies inside the area of the component designated for transition
effects, false otherwise.public StateTransitionTracker getTransitionTracker()
TransitionAwareUIgetTransitionTracker in interface TransitionAwareUIprotected 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