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 Colorprotected Colorprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanFields 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 floatbrightnessOffset(boolean fillOrDraw) protected StringcolorName(boolean fillOrDraw) protected voiddoInit()protected voiddoPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) protected voiddraw(Graphics2D g, Shape r) protected voidinit()Methods inherited from class org.autogui.swing.util.NimbusLookAndFeelCustomFlat.BasePainter
drawWithFocusStroke, getPaintContext, gradientColors, gradientVerticalMethods 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:
doPaintin classAbstractRegionPainter
-