Module org.autogui

Class 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
  • Field Details

    • initialized

      protected boolean initialized
    • colorFill

      protected Color colorFill
    • colorDraw

      protected Color 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

      protected String colorName(boolean fillOrDraw)
    • brightnessOffset

      protected float brightnessOffset(boolean fillOrDraw)
    • draw

      protected void draw(Graphics2D g, Shape r)
    • doPaint

      protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys)
      Specified by:
      doPaint in class AbstractRegionPainter