org.apache.batik.ext.awt.image.renderable

Class TileRable8Bit

public class TileRable8Bit extends AbstractColorInterpolationRable implements TileRable

8 bit TileRable implementation
Constructor Summary
TileRable8Bit(Filter source, Rectangle2D tiledRegion, Rectangle2D tileRegion, boolean overflow)
Default constructor
Method Summary
RenderedImagecreateRendering(RenderContext rc)
RenderedImagecreateTile(RenderContext rc)
Computes the tile to use for the tiling operation.
Rectangle2DgetActualTileBounds(Rectangle2D tiledRect)
Rectangle2DgetBounds2D()
Returns this filter's bounds
FiltergetSource()
Return's the tile source
Rectangle2DgetTiledRegion()
Returns the tiled region
Rectangle2DgetTileRegion()
Returns the tile region
booleanisOverflow()
Returns the overflow strategy
voidsetOverflow(boolean overflow)
Sets the overflow strategy
voidsetSource(Filter src)
Sets the filter source
voidsetTiledRegion(Rectangle2D tiledRegion)
Sets the tiled region
voidsetTileRegion(Rectangle2D tileRegion)
Sets the tile region

Constructor Detail

TileRable8Bit

public TileRable8Bit(Filter source, Rectangle2D tiledRegion, Rectangle2D tileRegion, boolean overflow)
Default constructor

Method Detail

createRendering

public RenderedImage createRendering(RenderContext rc)

createTile

public RenderedImage createTile(RenderContext rc)
Computes the tile to use for the tiling operation. The tile has its origin in the upper left corner of the tiled region. That tile is separated into 4 areas: top-left, top-right, bottom-left and bottom-right. Each of these areas is mapped to some input area from the source. If the source is smaller than the tiled area, then a single rendering is requested from the source. If the source's width or height is bigger than that of the tiled area, then separate renderings are requested from the source.

getActualTileBounds

public Rectangle2D getActualTileBounds(Rectangle2D tiledRect)

getBounds2D

public Rectangle2D getBounds2D()
Returns this filter's bounds

getSource

public Filter getSource()
Return's the tile source

getTiledRegion

public Rectangle2D getTiledRegion()
Returns the tiled region

getTileRegion

public Rectangle2D getTileRegion()
Returns the tile region

isOverflow

public boolean isOverflow()
Returns the overflow strategy

setOverflow

public void setOverflow(boolean overflow)
Sets the overflow strategy

setSource

public void setSource(Filter src)
Sets the filter source

setTiledRegion

public void setTiledRegion(Rectangle2D tiledRegion)
Sets the tiled region

setTileRegion

public void setTileRegion(Rectangle2D tileRegion)
Sets the tile region
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.