java.awt

Interface PaintContext

public interface PaintContext

Since: 1.1

See Also: Paint

UNKNOWN: updated to 1.4

Method Summary
voiddispose()
Release the resources allocated for the paint.
ColorModelgetColorModel()
Return the color model of this context.
RastergetRaster(int x, int y, int w, int h)
Return a raster containing the colors for the graphics operation.

Method Detail

dispose

public void dispose()
Release the resources allocated for the paint.

getColorModel

public ColorModel getColorModel()
Return the color model of this context. It may be different from the hint specified during createContext, as not all contexts can generate color patterns in an arbitrary model.

Returns: the context color model

getRaster

public Raster getRaster(int x, int y, int w, int h)
Return a raster containing the colors for the graphics operation.

Parameters: x the x-coordinate, in device space y the y-coordinate, in device space w the width, in device space h the height, in device space

Returns: a raster for the given area and color