java.lang.Object
javax.swing.plaf.nimbus.AbstractRegionPainter
org.autogui.swing.util.NimbusLookAndFeelCustomFlat.BasePainter
org.autogui.swing.util.NimbusLookAndFeelCustomFlat.ButtonPainter
- All Implemented Interfaces:
Painter<JComponent>
- Direct Known Subclasses:
NimbusLookAndFeelCustomFlat.CheckBoxPainter
,NimbusLookAndFeelCustomFlat.ComboBoxPainter
,NimbusLookAndFeelCustomFlat.MenuItemPainter
,NimbusLookAndFeelCustomFlat.PopupMenuPainter
,NimbusLookAndFeelCustomFlat.ProgressBarPainter
,NimbusLookAndFeelCustomFlat.SliderPainter
,NimbusLookAndFeelCustomFlat.SpinnerPainter
,NimbusLookAndFeelCustomFlat.SplitPainter
,NimbusLookAndFeelCustomFlat.TabbedPanePainter
,NimbusLookAndFeelCustomFlat.TableHeaderPainter
- Enclosing class:
NimbusLookAndFeelCustomFlat
public static class NimbusLookAndFeelCustomFlat.ButtonPainter
extends NimbusLookAndFeelCustomFlat.BasePainter
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.nimbus.AbstractRegionPainter
AbstractRegionPainter.PaintContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Color
protected Color
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
Fields inherited from class org.autogui.swing.util.NimbusLookAndFeelCustomFlat.BasePainter
context
-
Constructor Summary
ConstructorsConstructorDescriptionButtonPainter
(boolean pressed, boolean focused, boolean disabled, boolean selected) ButtonPainter
(boolean pressed, boolean focused, boolean disabled, boolean selected, int insetsWidth, int insetsHeight, int canvasWidth, int canvasHeight) -
Method Summary
Modifier and TypeMethodDescriptionprotected float
brightnessOffset
(boolean fillOrDraw) protected String
colorName
(boolean fillOrDraw) protected void
doInit()
protected void
doPaint
(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) protected void
draw
(Graphics2D g, Shape r) protected void
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
-
initialized
protected boolean initialized -
colorFill
-
colorDraw
-
pressed
protected boolean pressed -
focused
protected boolean focused -
disabled
protected boolean disabled -
selected
protected boolean selected
-
-
Constructor Details
-
ButtonPainter
public ButtonPainter(boolean pressed, boolean focused, boolean disabled, boolean selected, int insetsWidth, int insetsHeight, int canvasWidth, int canvasHeight) -
ButtonPainter
public ButtonPainter(boolean pressed, boolean focused, boolean disabled, boolean selected)
-
-
Method Details
-
init
protected void init() -
doInit
protected void doInit() -
colorName
-
brightnessOffset
protected float brightnessOffset(boolean fillOrDraw) -
draw
-
doPaint
protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) - Specified by:
doPaint
in classAbstractRegionPainter
-