FileDocCategorySizeDatePackage
PaintContext.javaAPI DocAndroid 1.5 API2404Wed May 06 22:41:54 BST 2009java.awt

PaintContext

public interface PaintContext
The PaintContext interface determines the specific environment for generating color patterns in device space for fill, draw, or stroke rendering operations using Graphics2D. This interface provides colors through the Raster object associated with the specific ColorModel for Graphics2D rendering operations.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public voiddispose()
Releases the resources allocated for the operation.

public java.awt.image.ColorModelgetColorModel()
Gets the color model.

return
the ColorModel object.

public java.awt.image.RastergetRaster(int x, int y, int w, int h)
Gets the Raster which defines the colors of the specified rectangular area for Graphics2D rendering operations.

param
x the X coordinate of the device space area for which colors are generated.
param
y the Y coordinate of the device space area for which colors are generated.
param
w the width of the device space area for which colors are generated.
param
h the height of the device space area for which colors are generated.
return
the Raster object which contains the colors of the specified rectangular area for Graphics2D rendering operations.