public class WebRadioButtonMenuItemUI extends WebMenuItemUI
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
checkColor
Style settings.
|
protected static javax.swing.ImageIcon |
radioCheckIcon |
protected static javax.swing.ImageIcon |
radioIcon
Used icons.
|
acceleratorBg, acceleratorDisabledFg, acceleratorFg, acceleratorGap, alignTextToMenuIcons, buttonModelChangeListener, disabledFg, iconAlignment, margin, painter, propertyChangeListener, selectedBottomBg, selectedTopBg, sideSpacingacceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground| Constructor and Description |
|---|
WebRadioButtonMenuItemUI() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebRadioButtonMenuItemUI for the specified component.
|
java.awt.Color |
getCheckColor()
Returns radiobutton menu item check color.
|
java.awt.Paint |
getNorthCornerFill()
Returns paint used to fill north popup menu corner when this component is first in the menu.
|
protected java.lang.String |
getPropertyPrefix()
Returns property prefix for this specific UI.
|
java.awt.Paint |
getSouthCornerFill()
Returns paint used to fill south popup menu corner when this component is last in the menu.
|
protected void |
paintBackground(java.awt.Graphics2D g2d,
javax.swing.JMenuItem menuItem,
int x,
int y,
int w,
int h,
boolean selected,
boolean ltr)
Paints menu item background.
|
protected void |
paintIcon(java.awt.Graphics2D g2d,
javax.swing.JMenuItem menuItem,
int x,
int y,
int w,
int h,
boolean selected,
boolean ltr)
Paints menu item icon.
|
void |
setCheckColor(java.awt.Color color)
Sets radiobutton menu item check color.
|
getAcceleratorBg, getAcceleratorDisabledFg, getAcceleratorFg, getAcceleratorGap, getDisabledFg, getIconAlignment, getMargin, getPainter, getPreferredSize, getSelectedBottomBg, getSelectedTopBg, getSideSpacing, installUI, isAlignTextToMenuIcons, paint, paintAcceleratorText, paintText, setAcceleratorBg, setAcceleratorDisabledFg, setAcceleratorFg, setAcceleratorGap, setAlignTextToMenuIcons, setDisabledFg, setIconAlignment, setMargin, setPainter, setSelectedBottomBg, setSelectedTopBg, setSideSpacing, uninstallUI, updateBordercreateMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredMenuItemSize, installComponents, installDefaults, installKeyboardActions, installListeners, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateprotected static final javax.swing.ImageIcon radioIcon
protected static final javax.swing.ImageIcon radioCheckIcon
protected java.awt.Color checkColor
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instanceprotected java.lang.String getPropertyPrefix()
getPropertyPrefix in class javax.swing.plaf.basic.BasicMenuItemUIpublic java.awt.Color getCheckColor()
public void setCheckColor(java.awt.Color color)
color - radiobutton menu item check colorpublic java.awt.Paint getNorthCornerFill()
getNorthCornerFill in class WebMenuItemUIpublic java.awt.Paint getSouthCornerFill()
getSouthCornerFill in class WebMenuItemUIprotected void paintBackground(java.awt.Graphics2D g2d,
javax.swing.JMenuItem menuItem,
int x,
int y,
int w,
int h,
boolean selected,
boolean ltr)
paintBackground in class WebMenuItemUIg2d - graphics contextmenuItem - menu itemx - icon placeholder X coordinatey - icon placeholder Y coordinatew - icon placeholder widthh - icon placeholder heightselected - whether menu item is selected or notltr - whether menu item has left-to-right orientation or notprotected void paintIcon(java.awt.Graphics2D g2d,
javax.swing.JMenuItem menuItem,
int x,
int y,
int w,
int h,
boolean selected,
boolean ltr)
paintIcon in class WebMenuItemUIg2d - graphics contextmenuItem - menu itemx - icon placeholder X coordinatey - icon placeholder Y coordinatew - icon placeholder widthh - icon placeholder heightselected - whether menu item is selected or notltr - whether menu item has left-to-right orientation or not