org.flexdock.plaf.resources.paint
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DefaultPainter
public DefaultPainter()
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.