java.awt
Interface PaintContext

All Known Implementing Classes:
ColorPaintContext, GradientPaintContext, TexturePaintContext

public interface PaintContext

Unsafe:


Method Summary
 void dispose()
          Enabled: Releases the resources allocated for the operation.
 java.awt.image.ColorModel getColorModel()
          Enabled: Returns the ColorModel of the output.
 java.awt.image.Raster getRaster(int x, int y, int w, int h)
          Enabled: Returns a Raster containing the colors generated for the graphics operation.
 

Method Detail

dispose

public void dispose()
Enabled: Releases the resources allocated for the operation.


getColorModel

public java.awt.image.ColorModel getColorModel()
Enabled: Returns the ColorModel of the output. Note that this ColorModel might be different from the hint specified in the createContext method of Paint. Not all PaintContext objects are capable of generating color patterns in an arbitrary ColorModel.

Returns:
the ColorModel of the output.

getRaster

public java.awt.image.Raster getRaster(int x,
                                       int y,
                                       int w,
                                       int h)
Enabled: Returns a Raster containing the colors generated for the graphics operation.

Parameters:
w - the width of the area in device space
h - the height of the area in device space
Returns:
a Raster representing the specified rectangular area and containing the colors generated for the graphics operation.


comments?