java.lang.Object
javax.swing.plaf.nimbus.AbstractRegionPainter
org.autogui.swing.util.NimbusLookAndFeelCustomFlat.BasePainter
org.autogui.swing.util.NimbusLookAndFeelCustomFlat.ButtonPainter
org.autogui.swing.util.NimbusLookAndFeelCustomFlat.MenuItemPainter
- All Implemented Interfaces:
Painter<JComponent>
- Enclosing class:
NimbusLookAndFeelCustomFlat
public static class NimbusLookAndFeelCustomFlat.MenuItemPainter
extends NimbusLookAndFeelCustomFlat.ButtonPainter
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.nimbus.AbstractRegionPainter
AbstractRegionPainter.PaintContext
-
Field Summary
FieldsFields inherited from class org.autogui.swing.util.NimbusLookAndFeelCustomFlat.ButtonPainter
colorDraw, colorFill, disabled, focused, initialized, pressed, selected
Fields inherited from class org.autogui.swing.util.NimbusLookAndFeelCustomFlat.BasePainter
context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected float
brightnessOffset
(boolean fillOrDraw) protected String
colorName
(boolean fillOrDraw) protected void
doPaint
(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) Methods inherited from class org.autogui.swing.util.NimbusLookAndFeelCustomFlat.ButtonPainter
doInit, draw, init
Methods inherited from class org.autogui.swing.util.NimbusLookAndFeelCustomFlat.BasePainter
drawWithFocusStroke, getPaintContext, gradientColors, gradientVertical
Methods inherited from class javax.swing.plaf.nimbus.AbstractRegionPainter
configureGraphics, decodeAnchorX, decodeAnchorY, decodeColor, decodeColor, decodeGradient, decodeRadialGradient, decodeX, decodeY, getComponentColor, getExtendedCacheKeys, paint
-
Field Details
-
Constructor Details
-
MenuItemPainter
public MenuItemPainter(boolean selected, boolean menuBar)
-
-
Method Details
-
colorName
- Overrides:
colorName
in classNimbusLookAndFeelCustomFlat.ButtonPainter
-
brightnessOffset
protected float brightnessOffset(boolean fillOrDraw) - Overrides:
brightnessOffset
in classNimbusLookAndFeelCustomFlat.ButtonPainter
-
doPaint
protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) - Overrides:
doPaint
in classNimbusLookAndFeelCustomFlat.ButtonPainter
-