org.flexdock.plaf.resources.paint
public class DefaultPainter extends Object implements Painter
Modifier and Type | Field and Description |
---|---|
static Color |
DEFAULT_BG_COLOR |
static Color |
DEFAULT_BG_COLOR_ACTIVE |
protected PainterResource |
painterResource |
Constructor and Description |
---|
DefaultPainter() |
Modifier and Type | Method and Description |
---|---|
protected Color |
getBackgroundColor(boolean active) |
protected Color |
getBackgroundColorActive() |
protected Color |
getBackgroundColorInactive() |
PainterResource |
getPainterResource() |
void |
paint(Graphics g,
int width,
int height,
boolean active,
JComponent titlebar) |
void |
setPainterResource(PainterResource painterResource) |
public static final Color DEFAULT_BG_COLOR
public static final Color DEFAULT_BG_COLOR_ACTIVE
protected PainterResource painterResource
public void paint(Graphics g, int width, int height, boolean active, JComponent titlebar)
protected Color getBackgroundColor(boolean active)
protected Color getBackgroundColorInactive()
protected Color getBackgroundColorActive()
public PainterResource getPainterResource()
getPainterResource
in interface Painter
public void setPainterResource(PainterResource painterResource)
setPainterResource
in interface Painter
painterResource
- The painterResource to set.