public abstract class AbstractTiledRed extends AbstractRed implements TileGenerator
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth
Modifier | Constructor and Description |
---|---|
protected |
AbstractTiledRed()
void constructor.
|
protected |
AbstractTiledRed(CachableRed src,
java.util.Map props)
Construct an Abstract RenderedImage from a source image and
props (may be null).
|
protected |
AbstractTiledRed(CachableRed src,
java.awt.Rectangle bounds,
java.awt.image.ColorModel cm,
java.awt.image.SampleModel sm,
int tileGridXOff,
int tileGridYOff,
java.util.Map props)
Construct an Abstract Rable from a bounds rect and props
(may be null).
|
protected |
AbstractTiledRed(CachableRed src,
java.awt.Rectangle bounds,
java.awt.image.ColorModel cm,
java.awt.image.SampleModel sm,
java.util.Map props)
Construct an Abstract RenderedImage from a source image, bounds
rect and props (may be null).
|
protected |
AbstractTiledRed(CachableRed src,
java.awt.Rectangle bounds,
java.util.Map props)
Construct an Abstract RenderedImage from a source image, bounds
rect and props (may be null).
|
protected |
AbstractTiledRed(java.util.List srcs,
java.awt.Rectangle bounds,
java.awt.image.ColorModel cm,
java.awt.image.SampleModel sm,
int tileGridXOff,
int tileGridYOff,
java.util.Map props)
Construct an Abstract RenderedImage from a bounds rect,
ColorModel (may be null), SampleModel (may be null), tile grid
offsets and props (may be null).
|
protected |
AbstractTiledRed(java.util.List srcs,
java.awt.Rectangle bounds,
java.awt.image.ColorModel cm,
java.awt.image.SampleModel sm,
java.util.Map props)
Construct an Abstract RenderedImage from a bounds rect,
ColorModel (may be null), SampleModel (may be null) and props
(may be null).
|
protected |
AbstractTiledRed(java.util.List srcs,
java.awt.Rectangle bounds,
java.util.Map props)
Construct an Abstract Rable from a List of sources a bounds rect
and props (may be null).
|
protected |
AbstractTiledRed(java.awt.Rectangle bounds,
java.util.Map props)
Construct an Abstract RenderedImage from a bounds rect and props
(may be null).
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.WritableRaster |
copyData(java.awt.image.WritableRaster wr) |
void |
copyToRaster(java.awt.image.WritableRaster wr)
Copies data from this images tile grid into wr.
|
void |
copyToRasterByBlocks(java.awt.image.WritableRaster wr) |
protected TileStore |
createTileStore() |
protected void |
drawBlock(TileBlock block,
java.awt.image.WritableRaster wr) |
protected void |
drawBlockAndCopy(TileBlock[] blocks,
java.awt.image.WritableRaster wr) |
protected void |
drawBlockInPlace(TileBlock[] blocks,
java.awt.image.WritableRaster wr) |
abstract void |
genRect(java.awt.image.WritableRaster wr) |
java.awt.image.Raster |
genTile(int x,
int y) |
java.awt.image.Raster |
getData(java.awt.Rectangle rect) |
static int |
getDefaultTileSize() |
java.awt.image.Raster |
getTile(int x,
int y) |
TileStore |
getTileStore() |
protected void |
init(CachableRed src,
java.awt.Rectangle bounds,
java.awt.image.ColorModel cm,
java.awt.image.SampleModel sm,
int tileGridXOff,
int tileGridYOff,
java.util.Map props)
This is one of two basic init function (this is for single
source rendereds).
|
protected void |
init(CachableRed src,
java.awt.Rectangle bounds,
java.awt.image.ColorModel cm,
java.awt.image.SampleModel sm,
int tileGridXOff,
int tileGridYOff,
TileStore tiles,
java.util.Map props)
This is one of two basic init function (this is for single
source rendereds).
|
protected void |
init(java.util.List srcs,
java.awt.Rectangle bounds,
java.awt.image.ColorModel cm,
java.awt.image.SampleModel sm,
int tileGridXOff,
int tileGridYOff,
java.util.Map props)
This is the basic init function.
|
void |
setTile(int x,
int y,
java.awt.image.Raster ras) |
protected void |
setTileStore(TileStore tiles) |
copyBand, getBounds, getColorModel, getData, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, makeTile, updateTileGridInfo
protected AbstractTiledRed()
protected AbstractTiledRed(java.awt.Rectangle bounds, java.util.Map props)
bounds
- this defines the extent of the rable in the
user coordinate system.props
- this initializes the props Map (may be null)protected AbstractTiledRed(CachableRed src, java.util.Map props)
src
- will be the first (and only) member of the srcs
Vector. Src is also used to set the bounds, ColorModel,
SampleModel, and tile grid offsets.props
- this initializes the props Map.protected AbstractTiledRed(CachableRed src, java.awt.Rectangle bounds, java.util.Map props)
src
- will be the first (and only) member of the srcs
Vector. Src is also used to set the ColorModel, SampleModel,
and tile grid offsets.bounds
- The bounds of this image.props
- this initializes the props Map.protected AbstractTiledRed(CachableRed src, java.awt.Rectangle bounds, java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, java.util.Map props)
src
- will be the first (and only) member of the srcs
Vector. Src is also used to set the ColorModel, SampleModel,
and tile grid offsets.bounds
- The bounds of this image.cm
- The ColorModel to use. If null it will default to
ComponentColorModel.sm
- The sample model to use. If null it will construct
a sample model the matches the given/generated ColorModel and is
the size of bounds.props
- this initializes the props Map.protected AbstractTiledRed(CachableRed src, java.awt.Rectangle bounds, java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, int tileGridXOff, int tileGridYOff, java.util.Map props)
src
- will be the first (and only) member of the srcs
Vector. Src is also used to set the ColorModel, SampleModel,
and tile grid offsets.bounds
- this defines the extent of the rable in the
user coordinate system.cm
- The ColorModel to use. If null it will default to
ComponentColorModel.sm
- The sample model to use. If null it will construct
a sample model the matches the given/generated ColorModel and is
the size of bounds.tileGridXOff
- The x location of tile 0,0.tileGridYOff
- The y location of tile 0,0.props
- this initializes the props Map.protected AbstractTiledRed(java.util.List srcs, java.awt.Rectangle bounds, java.util.Map props)
srcs
- This is used to initialize the srcs Vector. All
the members of srcs must be CachableRed otherwise an error
will be thrown.bounds
- this defines the extent of the rendered in pixelsprops
- this initializes the props Map.protected AbstractTiledRed(java.util.List srcs, java.awt.Rectangle bounds, java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, java.util.Map props)
srcs
- This is used to initialize the srcs Vector. All
the members of srcs must be CachableRed otherwise an error
will be thrown.bounds
- this defines the extent of the rendered in pixelscm
- The ColorModel to use. If null it will default to
ComponentColorModel.sm
- The sample model to use. If null it will construct
a sample model the matches the given/generated ColorModel and is
the size of bounds.props
- this initializes the props Map.protected AbstractTiledRed(java.util.List srcs, java.awt.Rectangle bounds, java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, int tileGridXOff, int tileGridYOff, java.util.Map props)
srcs
- This is used to initialize the srcs Vector. All
the members of srcs must be CachableRed otherwise an error
will be thrown.bounds
- this defines the extent of the rable in the
user coordinate system.cm
- The ColorModel to use. If null it will default to
ComponentColorModel.sm
- The sample model to use. If null it will construct
a sample model the matches the given/generated ColorModel and is
the size of bounds.tileGridXOff
- The x location of tile 0,0.tileGridYOff
- The y location of tile 0,0.props
- this initializes the props Map.public static int getDefaultTileSize()
protected void init(CachableRed src, java.awt.Rectangle bounds, java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, int tileGridXOff, int tileGridYOff, java.util.Map props)
init
in class AbstractRed
src
- The source for the filterbounds
- The bounds of the imagecm
- The ColorModel to use. If null it defaults to
ComponentColorModel/ src's ColorModel.sm
- The Sample modle to use. If this is null it will
use the src's sample model if that is null it will
construct a sample model that matches the ColorModel
and is the size of the whole image.tileGridXOff
- The x location of tile 0,0.tileGridYOff
- The y location of tile 0,0.props
- Any properties you want to associate with the image.protected void init(CachableRed src, java.awt.Rectangle bounds, java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, int tileGridXOff, int tileGridYOff, TileStore tiles, java.util.Map props)
src
- The source for the filterbounds
- The bounds of the imagecm
- The ColorModel to use. If null it defaults to
ComponentColorModel/ src's ColorModel.sm
- The Sample modle to use. If this is null it will
use the src's sample model if that is null it will
construct a sample model that matches the ColorModel
and is the size of the whole image.tileGridXOff
- The x location of tile 0,0.tileGridYOff
- The y location of tile 0,0.tiles
- The tileStore to use (or null).props
- Any properties you want to associate with the image.protected void init(java.util.List srcs, java.awt.Rectangle bounds, java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, int tileGridXOff, int tileGridYOff, java.util.Map props)
init
in class AbstractRed
srcs
- The list of sourcesbounds
- The bounds of the imagecm
- The ColorModel to use. If null it defaults to
ComponentColorModel.sm
- The Sample modle to use. If this is null it will
construct a sample model that matches the ColorModel
and is the size of the whole image.tileGridXOff
- The x location of tile 0,0.tileGridYOff
- The y location of tile 0,0.props
- Any properties you want to associate with the image.public TileStore getTileStore()
protected void setTileStore(TileStore tiles)
protected TileStore createTileStore()
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)
copyData
in interface java.awt.image.RenderedImage
public java.awt.image.Raster getData(java.awt.Rectangle rect)
getData
in interface java.awt.image.RenderedImage
getData
in class AbstractRed
public java.awt.image.Raster getTile(int x, int y)
getTile
in interface java.awt.image.RenderedImage
getTile
in class AbstractRed
public java.awt.image.Raster genTile(int x, int y)
genTile
in interface TileGenerator
public abstract void genRect(java.awt.image.WritableRaster wr)
public void setTile(int x, int y, java.awt.image.Raster ras)
public void copyToRasterByBlocks(java.awt.image.WritableRaster wr)
public void copyToRaster(java.awt.image.WritableRaster wr)
copyToRaster
in class AbstractRed
wr
- Raster to fill with image data.protected void drawBlock(TileBlock block, java.awt.image.WritableRaster wr)
protected void drawBlockAndCopy(TileBlock[] blocks, java.awt.image.WritableRaster wr)
protected void drawBlockInPlace(TileBlock[] blocks, java.awt.image.WritableRaster wr)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.