SubstanceDecorationPainter, SubstanceTraitpublic class FlatDecorationPainter extends Object implements SubstanceDecorationPainter
| Modifier and Type | Field | Description |
|---|---|---|
static String |
DISPLAY_NAME |
The display name for the decoration painters of this class.
|
| Constructor | Description |
|---|---|
FlatDecorationPainter() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getDisplayName() |
Returns the display name of
this trait. |
void |
paintDecorationArea(Graphics2D graphics,
Component comp,
DecorationAreaType decorationAreaType,
int width,
int height,
SubstanceSkin skin) |
Paints the decoration area.
|
public static final String DISPLAY_NAME
public String getDisplayName()
SubstanceTraitthis trait. This method is part
of officially supported API.getDisplayName in interface SubstanceTraitthis trait.public void paintDecorationArea(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin)
SubstanceDecorationPainterpaintDecorationArea in interface SubstanceDecorationPaintergraphics - Graphics context.comp - Component.decorationAreaType - Decoration area type. Must not be null.width - Width.height - Height.skin - Skin for painting the decoration area.