| java.lang.Object org.jvnet.substance.painter.decoration.ImageWrapperDecorationPainter
All known Subclasses: org.jvnet.substance.painter.decoration.MarbleNoiseDecorationPainter, org.jvnet.substance.painter.decoration.BrushedMetalDecorationPainter,
Method Summary | |
protected synchronized Image | getColorizedTile(SubstanceTheme theme) Returns a colorized image tile.
Parameters: theme - Theme for the colorization. | public void | paintDecorationArea(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceTheme theme) | public void | setBaseDecorationPainter(SubstanceDecorationPainter baseDecorationPainter) Sets the base decoration painter. | public void | setPaintingSeparators(boolean isPaintingSeparators) Sets indication whether this painter paints separators. | public void | setTextureAlpha(float textureAlpha) Sets the alpha channel for the image texture. | protected void | tileArea(Graphics2D g, Component comp, SubstanceTheme tileTheme, int offsetTextureX, int offsetTextureY, int x, int y, int width, int height) Tiles the specified area with colorized version of the image tile. |
baseDecorationPainter | protected SubstanceDecorationPainter baseDecorationPainter(Code) | | The base decoration painter - the colorized image tiles are painted over
the painting of this painter. Can be null .
|
originalTile | protected Image originalTile(Code) | | Contains the original (not colorized) image of this painter.
|
ImageWrapperDecorationPainter | public ImageWrapperDecorationPainter()(Code) | | Creates a new image wrapper decoration painter.
|
getColorizedTile | protected synchronized Image getColorizedTile(SubstanceTheme theme)(Code) | | Returns a colorized image tile.
Parameters: theme - Theme for the colorization. Colorized tile. |
setBaseDecorationPainter | public void setBaseDecorationPainter(SubstanceDecorationPainter baseDecorationPainter)(Code) | | Sets the base decoration painter.
Parameters: baseDecorationPainter - Base decoration painter. |
setPaintingSeparators | public void setPaintingSeparators(boolean isPaintingSeparators)(Code) | | Sets indication whether this painter paints separators.
Parameters: isPaintingSeparators - If true , this painter will paint horizontalseparators on the bottom of each component passed to eitherImageWrapperDecorationPainter.paintTitleBackground(Graphics2D,Component,int,int,int,int,SubstanceTheme,float)orImageWrapperDecorationPainter.paintExtraBackground(Graphics2D,Container,Component,int,int,SubstanceTheme,boolean). |
setTextureAlpha | public void setTextureAlpha(float textureAlpha)(Code) | | Sets the alpha channel for the image texture.
Parameters: textureAlpha - Alpha channel for the image texture. |
tileArea | protected void tileArea(Graphics2D g, Component comp, SubstanceTheme tileTheme, int offsetTextureX, int offsetTextureY, int x, int y, int width, int height)(Code) | | Tiles the specified area with colorized version of the image tile. This
is called after the
ImageWrapperDecorationPainter.baseDecorationPainter has painted the area.
This method should respect the current
ImageWrapperDecorationPainter.textureAlpha value.
Parameters: g - Graphic context. Parameters: comp - Component. Parameters: tileTheme - Theme for the tile colorization. Parameters: offsetTextureX - X offset for the tiling. Parameters: offsetTextureY - Y offset for the tiling. Parameters: x - X coordinate of the tiling region. Parameters: y - Y coordinate of the tiling region. Parameters: width - Width of the tiling region. Parameters: height - Height of the tiling region. |
|
|