Class TileRable8Bit
java.lang.Object
org.apache.batik.ext.awt.image.renderable.AbstractRable
org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
org.apache.batik.ext.awt.image.renderable.TileRable8Bit
- All Implemented Interfaces:
RenderableImage, Filter, FilterColorInterpolation, TileRable
8 bit TileRable implementation
-
Field Summary
Fields inherited from class AbstractColorInterpolationRable
csLinearFields inherited from class AbstractRable
props, srcs, stampFields inherited from interface RenderableImage
HINTS_OBSERVED -
Constructor Summary
ConstructorsConstructorDescriptionTileRable8Bit(Filter source, Rectangle2D tiledRegion, Rectangle2D tileRegion, boolean overflow) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionComputes the tile to use for the tiling operation.getActualTileBounds(Rectangle2D tiledRect) Returns this filter's boundsReturn's the tile sourceReturns the tiled regionReturns the tile regionbooleanReturns the overflow strategyvoidsetOverflow(boolean overflow) Sets the overflow strategyvoidSets the filter sourcevoidsetTiledRegion(Rectangle2D tiledRegion) Sets the tiled regionvoidsetTileRegion(Rectangle2D tileRegion) Sets the tile regionMethods inherited from class AbstractColorInterpolationRable
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from class AbstractRable
createDefaultRendering, createScaledRendering, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touchMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Filter
getDependencyRegion, getDirtyRegion, getTimeStampMethods inherited from interface FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from interface RenderableImage
createDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
-
Constructor Details
-
TileRable8Bit
public TileRable8Bit(Filter source, Rectangle2D tiledRegion, Rectangle2D tileRegion, boolean overflow) Default constructor
-
-
Method Details
-
getTileRegion
Returns the tile region- Specified by:
getTileRegionin interfaceTileRable
-
setTileRegion
Sets the tile region- Specified by:
setTileRegionin interfaceTileRable
-
getTiledRegion
Returns the tiled region- Specified by:
getTiledRegionin interfaceTileRable
-
setTiledRegion
Sets the tiled region- Specified by:
setTiledRegionin interfaceTileRable
-
isOverflow
public boolean isOverflow()Returns the overflow strategy- Specified by:
isOverflowin interfaceTileRable
-
setOverflow
public void setOverflow(boolean overflow) Sets the overflow strategy- Specified by:
setOverflowin interfaceTileRable
-
setSource
-
getSource
-
getBounds2D
Returns this filter's bounds- Specified by:
getBounds2Din interfaceFilter- Overrides:
getBounds2Din classAbstractRable
-
createRendering
- Specified by:
createRenderingin interfaceRenderableImage
-
getActualTileBounds
-
createTile
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.
-