Class PadRed
java.lang.Object
org.apache.batik.ext.awt.image.rendered.AbstractRed
org.apache.batik.ext.awt.image.rendered.PadRed
- All Implemented Interfaces:
RenderedImage
,CachableRed
This is an implementation of a Pad operation as a RenderedImage.
- Version:
- $Id: PadRed.java 1733416 2016-03-03 07:07:13Z gadams $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
protected static class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final boolean
(package private) RenderingHints
(package private) PadMode
Fields inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth
-
Constructor Summary
ConstructorsConstructorDescriptionPadRed
(CachableRed src, Rectangle bounds, PadMode padMode, RenderingHints hints) Construct A Rendered Pad operation. -
Method Summary
Modifier and TypeMethodDescriptionprotected static SampleModel
fixSampleModel
(CachableRed src, Rectangle bounds) This function 'fixes' the source's sample model.protected void
protected void
protected void
Methods inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
copyBand, copyToRaster, getBounds, getColorModel, getData, getData, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getSampleModel, getSources, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, init, init, makeTile, updateTileGridInfo
-
Field Details
-
DEBUG
static final boolean DEBUG- See Also:
-
padMode
PadMode padMode -
hints
RenderingHints hints
-
-
Constructor Details
-
PadRed
Construct A Rendered Pad operation. If the pad is smaller than the original image size then this devolves to a Crop.- Parameters:
src
- The image to pad/cropbounds
- The bounds of the result (same coord system as src).padMode
- The pad mode to use (currently ignored).hints
- The hints to use for drawing 'pad' area.
-
-
Method Details
-
copyData
-
handleZero
-
handleReplicate
-
handleWrap
-
fixSampleModel
This function 'fixes' the source's sample model. right now it just ensures that the sample model isn't much larger than my width.
-