APIdia Launch Partner
Top Fields Constructors Methods
java.awt

pack-priv final Class ColorPaintContext

extends Object
implements PaintContext
Class Inheritance
All Implemented Interfaces
java.awt.PaintContext
Imports
java.awt.image.ColorModel, .Raster, .WritableRaster, java.util.Arrays, sun.awt.image.IntegerComponentRaster

Field Summary

Modifier and TypeField and Description
private final int
private volatile WritableRaster

Constructor Summary

AccessConstructor and Description
pack-priv
ColorPaintContext(int color)

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Implements java.awt.PaintContext.dispose.

Releases the resources allocated for the operation.

public ColorModel
getColorModel()

Implements java.awt.PaintContext.getColorModel.

Returns the ColorModel of the output.

public Raster
getRaster(int x, int y, int w, int h)

Implements java.awt.PaintContext.getRaster.

Returns a Raster containing the colors generated for the graphics operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

colorback to summary
private final int color
savedTileback to summary
private volatile WritableRaster savedTile

Constructor Detail

ColorPaintContextback to summary
pack-priv ColorPaintContext(int color)

Method Detail

disposeback to summary
public void dispose()

Implements java.awt.PaintContext.dispose.

Doc from java.awt.PaintContext.dispose.

Releases the resources allocated for the operation.

Annotations
@Override
getColorModelback to summary
public ColorModel getColorModel()

Implements java.awt.PaintContext.getColorModel.

Doc from java.awt.PaintContext.getColorModel.

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.

Annotations
@Override
getRasterback to summary
public Raster getRaster(int x, int y, int w, int h)

Implements java.awt.PaintContext.getRaster.

Doc from java.awt.PaintContext.getRaster.

Returns a Raster containing the colors generated for the graphics operation.

Annotations
@Override