java.awt
Class TexturePaint

java.awt.TexturePaint
Direct Known Subclasses:
IlvPattern, IlvTexture

public class TexturePaint

Provides a way to fill a Shape with a texture that is specified as a BufferedImage.

CSS example:

texturePaint {
    class : "java.awt.TexturePaint(image,anchor)";
    anchor : "@#rectangle2D";
    transparency : "OPAQUE";
}


Property Summary
 java.awt.geom.Rectangle2D anchor
          
Sets a copy of the anchor rectangle which positions and sizes the textured image.
 java.lang.String class
          
Creates an instance of a TexturePaint.
 int transparency
          
Sets the type of this Transparency.
 

Property Detail

class

public java.lang.String class

Creates an instance of a TexturePaint.

CSS example:     class : "java.awt.TexturePaint(image,anchor)";


anchor

public java.awt.geom.Rectangle2D anchor

Sets a copy of the anchor rectangle which positions and sizes the textured image.

CSS example:     anchor : "@#rectangle2D";

See implementing class Rectangle2D for an example of implementing an anchor.


transparency

public int transparency

Sets the type of this Transparency.

CSS example:     transparency : "OPAQUE";

Allowed values:
OPAQUE    represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0.
BITMASK    represents image data that is guaranteed to be either completely opaque, with an alpha value of 1.0, or completely transparent, with an alpha value of 0.0.
TRANSLUCENT    represents image data that contains or might contain arbitrary alpha values between and including 0.0 and 1.0.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.