Class DefaultPainter

java.lang.Object
org.flexdock.plaf.resources.paint.DefaultPainter
All Implemented Interfaces:
Painter
Direct Known Subclasses:
EclipseGradientPainter, GradientPainter, MetalPainter, OfficeXPPainter, SkinLFPainter

public class DefaultPainter extends Object implements Painter
Author:
Claudio Romano
  • Field Details

    • DEFAULT_BG_COLOR

      public static final Color DEFAULT_BG_COLOR
    • DEFAULT_BG_COLOR_ACTIVE

      public static final Color DEFAULT_BG_COLOR_ACTIVE
    • painterResource

      protected PainterResource painterResource
  • Constructor Details

    • DefaultPainter

      public DefaultPainter()
  • Method Details

    • paint

      public void paint(Graphics g, int width, int height, boolean active, JComponent titlebar)
      Specified by:
      paint in interface Painter
    • getBackgroundColor

      protected Color getBackgroundColor(boolean active)
    • getBackgroundColorInactive

      protected Color getBackgroundColorInactive()
    • getBackgroundColorActive

      protected Color getBackgroundColorActive()
    • getPainterResource

      public PainterResource getPainterResource()
      Specified by:
      getPainterResource in interface Painter
      Returns:
      Returns the painterResource.
    • setPainterResource

      public void setPainterResource(PainterResource painterResource)
      Specified by:
      setPainterResource in interface Painter
      Parameters:
      painterResource - The painterResource to set.