API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. TexturePaint View Source
Author(s)
Since
Version
1.40, 11/17/05
Serial
Hierarchy
 Object
      TexturePaint
Implements
 Paint
Subclasses
Description
public class TexturePaint
  The TexturePaint class provides a way to fill a Shape with a texture that is specified as a BufferedImage.
Constructors
public TexturePaint (BufferedImage txtr, Rectangle2D anchor)
  Constructs a TexturePaint object.
Methods
Hide/Show inherited methods
public PaintContext createContext (ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) [Specified in Paint]
  Creates and returns a context used to generate the color pattern.
public Rectangle2D getAnchorRect ()
  Returns a copy of the anchor rectangle which positions and sizes the textured image.
public BufferedImage getImage ()
  Returns the BufferedImage texture used to fill the shapes.
public int getTransparency ()
  Returns the transparency mode for this TexturePaint.
Fields
Hide/Show inherited fields
publicfinalstatic int BITMASK = "2" [Inherited From Paint]
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.
pack-private BufferedImage bufImg
publicfinalstatic int OPAQUE = "1" [Inherited From Paint]
Represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0.
pack-private double sx
pack-private double sy
publicfinalstatic int TRANSLUCENT = "3" [Inherited From Paint]
Represents image data that contains or might contain arbitrary alpha values between and including 0.0 and 1.0.
pack-private double tx
pack-private double ty
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar