Class DefaultPainter
java.lang.Object
org.flexdock.plaf.resources.paint.DefaultPainter
- All Implemented Interfaces:
Painter
- Direct Known Subclasses:
EclipseGradientPainter
,GradientPainter
,MetalPainter
,OfficeXPPainter
,SkinLFPainter
- Author:
- Claudio Romano
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Color
getBackgroundColor
(boolean active) protected Color
protected Color
void
paint
(Graphics g, int width, int height, boolean active, JComponent titlebar) void
setPainterResource
(PainterResource painterResource)
-
Field Details
-
DEFAULT_BG_COLOR
-
DEFAULT_BG_COLOR_ACTIVE
-
painterResource
-
-
Constructor Details
-
DefaultPainter
public DefaultPainter()
-
-
Method Details
-
paint
-
getBackgroundColor
-
getBackgroundColorInactive
-
getBackgroundColorActive
-
getPainterResource
- Specified by:
getPainterResource
in interfacePainter
- Returns:
- Returns the painterResource.
-
setPainterResource
- Specified by:
setPainterResource
in interfacePainter
- Parameters:
painterResource
- The painterResource to set.
-