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
- Version:
- $Id: TileRable8Bit.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanControls whether the tileRegion clips the source or notprivate Rectangle2DTiled regionprivate Rectangle2DTile regionFields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
csLinearFields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
props, srcs, stampFields inherited from interface java.awt.image.renderable.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 org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
createDefaultRendering, createScaledRendering, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touchMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getDependencyRegion, getDirtyRegion, getTimeStampMethods inherited from interface org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from interface java.awt.image.renderable.RenderableImage
createDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
-
Field Details
-
tileRegion
Tile region -
tiledRegion
Tiled region -
overflow
private boolean overflowControls whether the tileRegion clips the source or not
-
-
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
Sets the filter source -
getSource
Return's the tile source -
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.
-