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 boolean
Controls whether the tileRegion clips the source or notprivate Rectangle2D
Tiled regionprivate Rectangle2D
Tile regionFields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
csLinear
Fields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
props, srcs, stamp
Fields 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 regionboolean
Returns the overflow strategyvoid
setOverflow
(boolean overflow) Sets the overflow strategyvoid
Sets the filter sourcevoid
setTiledRegion
(Rectangle2D tiledRegion) Sets the tiled regionvoid
setTileRegion
(Rectangle2D tileRegion) Sets the tile regionMethods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
Methods 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, touch
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getDependencyRegion, getDirtyRegion, getTimeStamp
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
Methods 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:
getTileRegion
in interfaceTileRable
-
setTileRegion
Sets the tile region- Specified by:
setTileRegion
in interfaceTileRable
-
getTiledRegion
Returns the tiled region- Specified by:
getTiledRegion
in interfaceTileRable
-
setTiledRegion
Sets the tiled region- Specified by:
setTiledRegion
in interfaceTileRable
-
isOverflow
public boolean isOverflow()Returns the overflow strategy- Specified by:
isOverflow
in interfaceTileRable
-
setOverflow
public void setOverflow(boolean overflow) Sets the overflow strategy- Specified by:
setOverflow
in interfaceTileRable
-
setSource
Sets the filter source -
getSource
Return's the tile source -
getBounds2D
Returns this filter's bounds- Specified by:
getBounds2D
in interfaceFilter
- Overrides:
getBounds2D
in classAbstractRable
-
createRendering
- Specified by:
createRendering
in 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.
-