|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.jai.PlanarImage
javax.media.jai.OpImage
it.geosolutions.jaiext.nullop.NullOpImage
public class NullOpImage
AnOpImage
subclass that simply transmits its
source unchanged. This may be useful when an interface requires an
OpImage
but another sort of RenderedImage
(such as a BufferedImage
or TiledImage
)
is available. Additionally, NullOpImage
is able to
make use of JAI's tile caching mechanisms.
Methods that get or set properties are implemented to forward
the requests to the source image; no independent property information
is stored in the NullOpImage
itself.
PointOpImage
Field Summary |
---|
Fields inherited from class javax.media.jai.OpImage |
---|
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler |
Fields inherited from class javax.media.jai.PlanarImage |
---|
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width |
Constructor Summary | |
---|---|
NullOpImage(RenderedImage source,
javax.media.jai.ImageLayout layout,
Map configuration)
Constructs a NullOpImage . |
Method Summary | |
---|---|
boolean |
computesUniqueTiles()
Returns false as NullOpImage can return via computeTile() tiles that are internally cached. |
Raster |
computeTile(int tileX,
int tileY)
Returns a tile for reading. |
protected Hashtable |
getProperties()
Returns the properties from the source image. |
Object |
getProperty(String name)
Retrieves a property from the source image by name or java.awt.Image.UndefinedProperty if the property
with the specified name is not defined. |
Class |
getPropertyClass(String name)
Returns the class of the specified property from the source image. |
String[] |
getPropertyNames()
Returns the property names from the source image or null
if no property names are recognized. |
String[] |
getPropertyNames(String prefix)
Returns the property names with the supplied prefix from the source image or null if no property names
are recognized. |
Rectangle |
mapDestRect(Rectangle destRect,
int sourceIndex)
|
Rectangle |
mapSourceRect(Rectangle sourceRect,
int sourceIndex)
|
void |
removeProperty(String name)
Removes a property from the source image by name. |
protected void |
setProperties(Hashtable properties)
Set the properties Hashtable of the source image
to the supplied Hashtable . |
void |
setProperty(String name,
Object value)
Sets a property on the source image by name. |
Methods inherited from class javax.media.jai.OpImage |
---|
addTileToCache, cancelTiles, computeRect, computeRect, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorize |
Methods inherited from class javax.media.jai.PlanarImage |
---|
addPropertyChangeListener, addPropertyChangeListener, addSink, addSink, addSource, addTileComputationListener, copyData, copyData, copyExtendedData, createColorModel, createSnapshot, createWritableRaster, finalize, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getData, getData, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, setSource, setSources, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NullOpImage(RenderedImage source, javax.media.jai.ImageLayout layout, Map configuration)
NullOpImage
. The superclass
constructor will be passed a new ImageLayout
object with all of its fields filled in.
layout
- An ImageLayout
optionally specifying
the image ColorModel
; all other fields are
ignored. This parameter may be null
.source
- A RenderedImage
; must not be
null
or a IllegalArgumentException
will be thrown.configuration
- Configurable attributes of the image including
configuration variables indexed by
RenderingHints.Key
s and image properties indexed
by String
s or CaselessStringKey
s.
This is simply forwarded to the superclass constructor.
IllegalArgumentException
- if source
is null
.
IllegalArgumentException
- if computeType
is not one of the known OP_*_BOUND
values.Method Detail |
---|
public Raster computeTile(int tileX, int tileY)
computeTile
in class javax.media.jai.OpImage
tileX
- The X index of the tile.tileY
- The Y index of the tile.
Raster
.public boolean computesUniqueTiles()
computesUniqueTiles
in class javax.media.jai.OpImage
protected Hashtable getProperties()
getProperties
in class javax.media.jai.PlanarImage
protected void setProperties(Hashtable properties)
Hashtable
of the source image
to the supplied Hashtable
.
setProperties
in class javax.media.jai.PlanarImage
public String[] getPropertyNames()
null
if no property names are recognized.
getPropertyNames
in interface RenderedImage
getPropertyNames
in interface javax.media.jai.PropertySource
getPropertyNames
in class javax.media.jai.PlanarImage
public String[] getPropertyNames(String prefix)
null
if no property names
are recognized.
getPropertyNames
in interface javax.media.jai.PropertySource
getPropertyNames
in class javax.media.jai.PlanarImage
public Class getPropertyClass(String name)
getPropertyClass
in interface javax.media.jai.PropertySource
getPropertyClass
in class javax.media.jai.PlanarImage
public Object getProperty(String name)
java.awt.Image.UndefinedProperty
if the property
with the specified name is not defined.
getProperty
in interface RenderedImage
getProperty
in interface javax.media.jai.PropertySource
getProperty
in class javax.media.jai.PlanarImage
public void setProperty(String name, Object value)
setProperty
in interface javax.media.jai.WritablePropertySource
setProperty
in class javax.media.jai.PlanarImage
public void removeProperty(String name)
removeProperty
in interface javax.media.jai.WritablePropertySource
removeProperty
in class javax.media.jai.PlanarImage
public Rectangle mapDestRect(Rectangle destRect, int sourceIndex)
mapDestRect
in class javax.media.jai.OpImage
public Rectangle mapSourceRect(Rectangle sourceRect, int sourceIndex)
mapSourceRect
in class javax.media.jai.OpImage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |