|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.substance.painter.decoration.MatteDecorationPainter
public class MatteDecorationPainter
Implementation of SubstanceDecorationPainter that uses matte painting
on decoration areas.
| Field Summary | |
|---|---|
static java.lang.String |
DISPLAY_NAME
The display name for the decoration painters of this class. |
| Constructor Summary | |
|---|---|
MatteDecorationPainter()
|
|
| Method Summary | |
|---|---|
protected void |
fill(java.awt.Graphics2D graphics,
ColorScheme scheme,
int offsetY,
int x,
int y,
int width,
int height)
Fills the relevant part with the gradient fill. |
java.lang.String |
getDisplayName()
Returns the display name of this trait. |
void |
paintDecorationArea(java.awt.Graphics2D graphics,
java.awt.Component comp,
DecorationAreaType decorationAreaType,
int width,
int height,
SubstanceTheme theme)
Paints the decoration area. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DISPLAY_NAME
| Constructor Detail |
|---|
public MatteDecorationPainter()
| Method Detail |
|---|
public java.lang.String getDisplayName()
SubstanceTraitthis trait. This method is
part of officially supported API.
getDisplayName in interface SubstanceTraitthis trait.
public void paintDecorationArea(java.awt.Graphics2D graphics,
java.awt.Component comp,
DecorationAreaType decorationAreaType,
int width,
int height,
SubstanceTheme theme)
SubstanceDecorationPainter
paintDecorationArea in interface SubstanceDecorationPaintergraphics - Graphics context.comp - Component.decorationAreaType - Decoration area type. Must not be null.width - Width.height - Height.theme - Theme for painting the decoration area.
protected void fill(java.awt.Graphics2D graphics,
ColorScheme scheme,
int offsetY,
int x,
int y,
int width,
int height)
graphics - Graphics.scheme - Color scheme to use.offsetY - Vertical offset.x - X coordinate of the fill area.y - Y coordinate of the fill area.width - Fill area width.height - Fill area height.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||