org.apache.batik.ext.awt.image.rendered
Class FloodRed

java.lang.Object
  extended by org.apache.batik.ext.awt.image.rendered.AbstractRed
      extended by org.apache.batik.ext.awt.image.rendered.FloodRed
All Implemented Interfaces:
RenderedImage, CachableRed

public class FloodRed
extends AbstractRed

This implementation of RenderedImage will generate an infinate field of a single color. It reports bounds but will in fact render out to infinity.


Field Summary
 
Fields inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth
 
Constructor Summary
FloodRed(Rectangle bounds)
          Construct a fully transparent black image bounds size.
FloodRed(Rectangle bounds, Paint paint)
          Construct a fully transparent image bounds size, will paint one tile with paint.
 
Method Summary
 WritableRaster copyData(WritableRaster wr)
           
 Raster getTile(int x, int y)
           
 
Methods inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
copyBand, copyToRaster, getBounds, getColorModel, getData, getData, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, init, init, makeTile, updateTileGridInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloodRed

public FloodRed(Rectangle bounds)
Construct a fully transparent black image bounds size.

Parameters:
bounds - the bounds of the image (in fact will respond with any request).

FloodRed

public FloodRed(Rectangle bounds,
                Paint paint)
Construct a fully transparent image bounds size, will paint one tile with paint. Thus paint should not be a pattered paint or gradient but should be a solid color.

Parameters:
bounds - the bounds of the image (in fact will respond with any request).
Method Detail

getTile

public Raster getTile(int x,
                      int y)
Specified by:
getTile in interface RenderedImage
Overrides:
getTile in class AbstractRed

copyData

public WritableRaster copyData(WritableRaster wr)


Copyright © 2008 Apache Software Foundation. All Rights Reserved.