Java Platform 1.2
Beta 4

Interface java.awt.PaintContext


public abstract interface PaintContext
This interface defines the encapsulated and optimized environment for a paint operation, i.e. generating color patterns in device space for a fill or stroke operation on a Graphics2D. The PaintContext provides the necessary colors for Graphics2D operations in the form of a Raster associated with a ColorModel. The PaintContext maintains state for a particular paint operation. In a multi-threaded environment, several contexts may exist simultaneously for a single Paint object.

See Also:
Paint

Method Summary
 void dispose()
          Release the resources allocated for the operation.
 ColorModel getColorModel()
          Return the ColorModel of the output.
 Raster getRaster(int x, int y, int w, int h)
          Return a Raster containing the colors generated for the graphics operation.
 

Method Detail

dispose

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

getColorModel

public ColorModel getColorModel()
Return the ColorModel of the output.

getRaster

public Raster getRaster(int x,
                        int y,
                        int w,
                        int h)
Return a Raster containing the colors generated for the graphics operation.
Parameters:
x,y,w,h - The area in device space for which colors are generated.

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.