public class WebRadioButtonMenuItemUI extends BasicRadioButtonMenuItemUI
JRadioButtonMenuItem
component.BasicMenuItemUI.MouseInputHandler
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
Constructor and Description |
---|
WebRadioButtonMenuItemUI() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(JComponent c,
int x,
int y) |
static ComponentUI |
createUI(JComponent c)
Returns an instance of the
WebRadioButtonMenuItemUI for the specified component. |
int |
getBaseline(JComponent c,
int width,
int height) |
Component.BaselineResizeBehavior |
getBaselineResizeBehavior(JComponent c) |
Dimension |
getPreferredSize(JComponent c) |
void |
installUI(JComponent c) |
void |
paint(Graphics g,
JComponent c) |
void |
uninstallUI(JComponent c) |
getPropertyPrefix, processMouseEvent
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredMenuItemSize, installComponents, installDefaults, installKeyboardActions, installListeners, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, update
getAccessibleChild, getAccessibleChildrenCount
@NotNull public static ComponentUI createUI(@NotNull JComponent c)
WebRadioButtonMenuItemUI
for the specified component.
This tricky method is used by UIManager
to create component UIs when needed.c
- component that will use UI instanceWebRadioButtonMenuItemUI
public void installUI(@NotNull JComponent c)
installUI
in class BasicMenuItemUI
public void uninstallUI(@NotNull JComponent c)
uninstallUI
in class BasicMenuItemUI
public boolean contains(@NotNull JComponent c, int x, int y)
contains
in class ComponentUI
public int getBaseline(@NotNull JComponent c, int width, int height)
getBaseline
in class ComponentUI
@NotNull public Component.BaselineResizeBehavior getBaselineResizeBehavior(@NotNull JComponent c)
getBaselineResizeBehavior
in class ComponentUI
public void paint(@NotNull Graphics g, @NotNull JComponent c)
paint
in class BasicMenuItemUI
@Nullable public Dimension getPreferredSize(@NotNull JComponent c)
getPreferredSize
in class BasicMenuItemUI
Copyright © 2020. All rights reserved.