SubstanceDecorationPainter
, SubstanceTrait
public class Glass3DDecorationPainter 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 |
---|---|
Glass3DDecorationPainter() |
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()
SubstanceTrait
this
trait. This method is part
of officially supported API.getDisplayName
in interface SubstanceTrait
this
trait.public void paintDecorationArea(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin)
SubstanceDecorationPainter
paintDecorationArea
in interface SubstanceDecorationPainter
graphics
- Graphics context.comp
- Component.decorationAreaType
- Decoration area type. Must not be null
.width
- Width.height
- Height.skin
- Skin for painting the decoration area.