| java.lang.Object com.jeta.forms.gui.effects.TexturePainter
TexturePainter | public class TexturePainter implements Painter(Code) | | This class is an implementation of a Painter that renders a texture on a
canvas or component. The caller specifies an image for the texture with a
TextureProperty. The standard Java Graphics APIs are used to render the
texture. See:
java.awt.TexturePaint author: Jeff Tassin |
Constructor Summary | |
public | TexturePainter() Creates a TexturePainter instance with no paint
attributes. | public | TexturePainter(TextureProperty prop) Creates a TexturePainter instance with the specified
texture properties. |
TexturePainter | public TexturePainter()(Code) | | Creates a TexturePainter instance with no paint
attributes.
|
TexturePainter | public TexturePainter(TextureProperty prop)(Code) | | Creates a TexturePainter instance with the specified
texture properties.
|
paint | public void paint(Component c, Graphics g, Rectangle rect)(Code) | | Painter implementation. Paints a texture pattern on a given graphics
context.
Parameters: g - the graphics context Parameters: rect - the rectangle that defines the region to paint. Note, thatthis is different than the clipping rectangle. |
setTextureProperty | public void setTextureProperty(TextureProperty prop)(Code) | | Sets the texture attributes for this painter
Parameters: prop - the texture property to set. |
|
|