TransitionAwareUI
, SubstanceMenu
public class SubstanceRadioButtonMenuItemUI extends BasicRadioButtonMenuItemUI implements SubstanceMenu, TransitionAwareUI
BasicMenuItemUI.MouseInputHandler
Modifier and Type | Field | Description |
---|---|---|
protected StateTransitionTracker |
stateTransitionTracker |
|
protected MenuUtilities.MenuPropertyListener |
substanceMenuPropertyListener |
Listens on all changes to the underlying menu item.
|
protected 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 | Description |
---|---|
SubstanceRadioButtonMenuItemUI(JRadioButtonMenuItem menuItem) |
Modifier and Type | Method | Description |
---|---|---|
static ComponentUI |
createUI(JComponent comp) |
|
Font |
getAcceleratorFont() |
Returns the font of the accelerator string of
this UI
delegate. |
Icon |
getArrowIcon() |
Returns the arrow icon of
this UI delegate. |
JMenuItem |
getAssociatedMenuItem() |
Returns the associated menu item.
|
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 Dimension |
getPreferredMenuItemSize(JComponent c,
Icon checkIcon,
Icon arrowIcon,
int defaultTextIconGap) |
|
StateTransitionTracker |
getTransitionTracker() |
Returns the model for tracking the transitions.
|
protected void |
installDefaults() |
|
protected void |
installListeners() |
|
boolean |
isInside(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(Graphics g,
JComponent c,
Icon checkIcon,
Icon arrowIcon,
Color background,
Color foreground,
int defaultTextIconGap) |
|
protected void |
uninstallListeners() |
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredSize, installComponents, installKeyboardActions, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI, update
getPropertyPrefix, processMouseEvent
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
protected RolloverMenuItemListener substanceRolloverListener
protected StateTransitionTracker stateTransitionTracker
protected PropertyChangeListener substancePropertyListener
AbstractButton.MODEL_CHANGED_PROPERTY
property.protected MenuUtilities.MenuPropertyListener substanceMenuPropertyListener
public SubstanceRadioButtonMenuItemUI(JRadioButtonMenuItem menuItem)
public static ComponentUI createUI(JComponent comp)
protected void installListeners()
installListeners
in class BasicMenuItemUI
protected void uninstallListeners()
uninstallListeners
in class BasicMenuItemUI
protected void installDefaults()
installDefaults
in class BasicMenuItemUI
public JMenuItem getAssociatedMenuItem()
SubstanceMenu
getAssociatedMenuItem
in interface SubstanceMenu
public Font getAcceleratorFont()
SubstanceMenu
this
UI
delegate.getAcceleratorFont
in interface SubstanceMenu
this
UI
delegate.public Icon getArrowIcon()
SubstanceMenu
this
UI delegate.getArrowIcon
in interface SubstanceMenu
this
UI delegate.public 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 Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)
getPreferredMenuItemSize
in class BasicMenuItemUI
public boolean isInside(MouseEvent me)
TransitionAwareUI
isInside
in interface TransitionAwareUI
me
- 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()
TransitionAwareUI
getTransitionTracker
in interface TransitionAwareUI
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)
paintMenuItem
in class BasicMenuItemUI