Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt
Class ColorPaintContext.ColorRaster  view ColorPaintContext.ColorRaster download ColorPaintContext.ColorRaster.java

java.lang.Object
  extended byjava.awt.image.Raster
      extended byjava.awt.ColorPaintContext.ColorRaster
Enclosing class:
ColorPaintContext

private class ColorPaintContext.ColorRaster
extends java.awt.image.Raster

A ColorRaster is a raster that is completely filled with one color. The data layout is taken from the color model given to the constructor.


Field Summary
 
Fields inherited from class java.awt.image.Raster
dataBuffer, height, minX, minY, numBands, numDataElements, parent, sampleModel, sampleModelTranslateX, sampleModelTranslateY, width
 
Constructor Summary
(package private) ColorPaintContext.ColorRaster(java.awt.image.ColorModel cm, int x, int y, int width, int height, int rgbPixel)
          Create a raster that is compaltible with the given color model and filled with the given color.
 
Method Summary
private  java.lang.Object multiplyData(java.lang.Object src, java.lang.Object dest, int factor)
           
 
Methods inherited from class java.awt.image.Raster
createBandedRaster, createBandedRaster, createBandedRaster, createChild, createCompatibleWritableRaster, createCompatibleWritableRaster, createCompatibleWritableRaster, createCompatibleWritableRaster, createInterleavedRaster, createInterleavedRaster, createInterleavedRaster, createPackedRaster, createPackedRaster, createPackedRaster, createPackedRaster, createRaster, createTranslatedChild, createWritableRaster, createWritableRaster, getBounds, getDataBuffer, getDataElements, getDataElements, getHeight, getMinX, getMinY, getNumBands, getNumDataElements, getParent, getPixel, getPixel, getPixel, getPixels, getPixels, getPixels, getSample, getSampleDouble, getSampleFloat, getSampleModel, getSampleModelTranslateX, getSampleModelTranslateY, getSamples, getSamples, getSamples, getTransferType, getWidth, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorPaintContext.ColorRaster

ColorPaintContext.ColorRaster(java.awt.image.ColorModel cm,
                              int x,
                              int y,
                              int width,
                              int height,
                              int rgbPixel)
Create a raster that is compaltible with the given color model and filled with the given color.

Method Detail

multiplyData

private java.lang.Object multiplyData(java.lang.Object src,
                                      java.lang.Object dest,
                                      int factor)