SubstanceDecorationPainter, SubstanceTraitBrushedMetalDecorationPainter, MarbleNoiseDecorationPainterpublic abstract class ImageWrapperDecorationPainter extends java.lang.Object implements SubstanceDecorationPainter
SubstanceDecorationPainter that uses an image source to paint on
decoration areas.| Modifier and Type | Field | Description |
|---|---|---|
protected SubstanceDecorationPainter |
baseDecorationPainter |
The base decoration painter - the colorized image tiles are painted over the painting of this
painter.
|
protected java.util.LinkedHashMap<java.lang.String,java.awt.image.BufferedImage> |
colorizedTileMap |
Map of colorized tiles.
|
protected java.awt.Image |
originalTile |
Contains the original (not colorized) image of this painter.
|
protected float |
textureAlpha |
Alpha channel for the texture image (colorized tiles applied on top of the
baseDecorationPainter painting). |
| Constructor | Description |
|---|---|
ImageWrapperDecorationPainter() |
Creates a new image wrapper decoration painter.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.awt.image.BufferedImage |
getColorizedTile(SubstanceColorScheme scheme) |
Returns a colorized image tile.
|
void |
paintDecorationArea(java.awt.Graphics2D graphics,
java.awt.Component comp,
SubstanceSlices.DecorationAreaType decorationAreaType,
int width,
int height,
SubstanceSkin skin) |
Paints the decoration area as a fully filled rectangle.
|
void |
paintDecorationArea(java.awt.Graphics2D graphics,
java.awt.Component comp,
SubstanceSlices.DecorationAreaType decorationAreaType,
java.awt.Shape contour,
SubstanceColorScheme colorScheme) |
Paints the decoration area as a specified shape.
|
void |
setBaseDecorationPainter(SubstanceDecorationPainter baseDecorationPainter) |
Sets the base decoration painter.
|
void |
setTextureAlpha(float textureAlpha) |
Sets the alpha channel for the image texture.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayNameprotected java.awt.Image originalTile
protected SubstanceDecorationPainter baseDecorationPainter
null.protected java.util.LinkedHashMap<java.lang.String,java.awt.image.BufferedImage> colorizedTileMap
protected float textureAlpha
baseDecorationPainter painting).public ImageWrapperDecorationPainter()
public void paintDecorationArea(java.awt.Graphics2D graphics,
java.awt.Component comp,
SubstanceSlices.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.public void paintDecorationArea(java.awt.Graphics2D graphics,
java.awt.Component comp,
SubstanceSlices.DecorationAreaType decorationAreaType,
java.awt.Shape contour,
SubstanceColorScheme colorScheme)
SubstanceDecorationPainterpaintDecorationArea in interface SubstanceDecorationPaintergraphics - Graphics context.comp - Component.decorationAreaType - Decoration area type. Must not be null.contour - Contour to fill.colorScheme - Color scheme for painting the decoration area.public void setBaseDecorationPainter(SubstanceDecorationPainter baseDecorationPainter)
baseDecorationPainter - Base decoration painter.public void setTextureAlpha(float textureAlpha)
textureAlpha - Alpha channel for the image texture.protected java.awt.image.BufferedImage getColorizedTile(SubstanceColorScheme scheme)
scheme - Color scheme for the colorization.