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

Class FloodRed

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.
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
WritableRastercopyData(WritableRaster wr)
RastergetTile(int x, int y)

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

copyData

public WritableRaster copyData(WritableRaster wr)

getTile

public Raster getTile(int x, int y)
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.