public class CheckBoxMenuItemPainter<E extends javax.swing.JMenuItem,U extends WebCheckBoxMenuItemUI> extends AbstractMenuItemPainter<E,U> implements ICheckBoxMenuItemPainter<E,U>
| Modifier and Type | Field and Description |
|---|---|
protected static javax.swing.ImageIcon |
boxCheckIcon |
protected static javax.swing.ImageIcon |
boxIcon
Used icons.
|
protected java.awt.Color |
checkColor
Style settings.
|
acceleratorBg, acceleratorDisabledFg, acceleratorFg, acceleratorFont, acceleratorGap, alignTextToMenuIcons, buttonModelChangeListener, disabledFg, iconAlignment, selectedBottomBg, selectedTopBgcomponent, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
CheckBoxMenuItemPainter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
paintBackground(java.awt.Graphics2D g2d,
boolean selected)
Paints menu item background.
|
protected void |
paintIcon(java.awt.Graphics2D g2d,
int x,
int y,
int w,
int h,
boolean selected)
Paints menu item icon.
|
fillCorner, getPreferredSize, getSelectedBounds, install, paint, paintAcceleratorText, paintText, setAcceleratorFont, uninstalladdPainterListener, b, borderChange, getBorders, getCompleteBorder, i, i, i, installPropertyChangeListener, isOpaque, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, propertyChange, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPainterListener, getBorders, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstallprotected static final javax.swing.ImageIcon boxIcon
protected static final javax.swing.ImageIcon boxCheckIcon
protected java.awt.Color checkColor
protected void paintBackground(java.awt.Graphics2D g2d,
boolean selected)
AbstractMenuItemPainterpaintBackground in class AbstractMenuItemPainter<E extends javax.swing.JMenuItem,U extends WebCheckBoxMenuItemUI>g2d - graphics contextselected - whether menu item is selected or notprotected void paintIcon(java.awt.Graphics2D g2d,
int x,
int y,
int w,
int h,
boolean selected)
AbstractMenuItemPainterpaintIcon in class AbstractMenuItemPainter<E extends javax.swing.JMenuItem,U extends WebCheckBoxMenuItemUI>g2d - graphics contextx - icon placeholder X coordinatey - icon placeholder Y coordinatew - icon placeholder widthh - icon placeholder heightselected - whether menu item is selected or not