|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ButtonUI javax.swing.plaf.MenuItemUI javax.swing.plaf.basic.BasicMenuItemUI com.alee.laf.menu.WebMenuItemUI com.alee.laf.menu.WebCheckBoxMenuItemUI
public class WebCheckBoxMenuItemUI
Custom UI for JCheckBoxMenuItem component.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
---|
javax.swing.plaf.basic.BasicMenuItemUI.MouseInputHandler |
Field Summary | |
---|---|
protected static javax.swing.ImageIcon |
boxCheckIcon
|
protected static javax.swing.ImageIcon |
boxIcon
Used icons. |
protected java.awt.Color |
checkColor
Style settings. |
Fields inherited from class com.alee.laf.menu.WebMenuItemUI |
---|
acceleratorBg, acceleratorDisabledFg, acceleratorFg, acceleratorGap, alignTextToMenuIcons, buttonModelChangeListener, disabledFg, iconAlignment, margin, painter, propertyChangeListener, selectedBottomBg, selectedTopBg, sideSpacing |
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
---|
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground |
Constructor Summary | |
---|---|
WebCheckBoxMenuItemUI()
|
Method Summary | |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebCheckBoxMenuItemUI for the specified component. |
java.awt.Color |
getCheckColor()
Returns checkbox 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 checkbox menu item check color. |
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
---|
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredMenuItemSize, installComponents, installDefaults, installKeyboardActions, installListeners, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, update |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final javax.swing.ImageIcon boxIcon
protected static final javax.swing.ImageIcon boxCheckIcon
protected java.awt.Color checkColor
Constructor Detail |
---|
public WebCheckBoxMenuItemUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- component that will use UI instance
protected java.lang.String getPropertyPrefix()
getPropertyPrefix
in class javax.swing.plaf.basic.BasicMenuItemUI
public java.awt.Color getCheckColor()
public void setCheckColor(java.awt.Color color)
color
- checkbox menu item check colorpublic java.awt.Paint getNorthCornerFill()
getNorthCornerFill
in class WebMenuItemUI
public java.awt.Paint getSouthCornerFill()
getSouthCornerFill
in class WebMenuItemUI
protected 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 WebMenuItemUI
g2d
- 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 WebMenuItemUI
g2d
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |