Class FloodRed
- java.lang.Object
-
- org.apache.batik.ext.awt.image.rendered.AbstractRed
-
- org.apache.batik.ext.awt.image.rendered.FloodRed
-
- All Implemented Interfaces:
java.awt.image.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.- Version:
- $Id: FloodRed.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.image.WritableRaster
raster
A single tile that we move around as needed...-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.WritableRaster
copyData(java.awt.image.WritableRaster wr)
java.awt.image.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
-
-
-
-
Constructor Detail
-
FloodRed
public FloodRed(java.awt.Rectangle bounds)
Construct a fully transparent black imagebounds
size.- Parameters:
bounds
- the bounds of the image (in fact will respond with any request).
-
FloodRed
public FloodRed(java.awt.Rectangle bounds, java.awt.Paint paint)
Construct a fully transparent imagebounds
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 java.awt.image.Raster getTile(int x, int y)
- Specified by:
getTile
in interfacejava.awt.image.RenderedImage
- Overrides:
getTile
in classAbstractRed
-
copyData
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)
-
-