public class DefaultMultiLevelImage extends MultiLevelImage
PlanarImage
to the
MultiLevelSource
interface.
The image data provided by this PlanarImage
corresponds to the level zero image of the given
MultiLevelSource
.colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
NULL
Constructor and Description |
---|
DefaultMultiLevelImage(MultiLevelSource source)
Constructs a new multi-level image from the given source.
|
DefaultMultiLevelImage(MultiLevelSource source,
javax.media.jai.ImageLayout layout)
Constructs a new multi-level image from the given source and the image layout.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Provides a hint that an image will no longer be accessed from a
reference in user space.
|
RenderedImage |
getImage(int level)
Gets the scaled image for the given resolution level.
|
Shape |
getImageShape(int level)
Gets the shape of the area where this image's raster data contains valid pixels at the given resolution level.
|
MultiLevelModel |
getModel()
Gets the layout model for the multi-resolution image supported by this
LevelImageSource . |
MultiLevelSource |
getSource() |
void |
reset()
Provides a hint that the level images provided so far will no longer be accessed from a
reference in user space.
|
copyData, getData, getData, getTile
addPropertyChangeListener, addPropertyChangeListener, addSink, addSink, addSource, addTileComputationListener, cancelTiles, copyData, copyExtendedData, createColorModel, createSnapshot, createWritableRaster, finalize, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, prefetchTiles, queueTiles, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, setProperties, setProperty, setSource, setSources, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY
public DefaultMultiLevelImage(MultiLevelSource source)
source
- The multi-level image source.public DefaultMultiLevelImage(MultiLevelSource source, javax.media.jai.ImageLayout layout)
source
- The multi-level image source.layout
- The image layout.public final MultiLevelSource getSource()
public final MultiLevelModel getModel()
MultiLevelSource
LevelImageSource
.public final RenderedImage getImage(int level)
MultiLevelSource
level
is
scale
times smaller than the dimensions of the
image at level=0
.level
- The resolution level.MultiLevelModel.getLevelCount()
-1.public Shape getImageShape(int level)
MultiLevelSource
null
, if the entire image raster contains valid pixels.level
- The resolution level.null
.public void reset()
MultiLevelSource
Provides a hint that the level images provided so far will no longer be accessed from a reference in user space.
Therefore implementations of this method might also dispose any cached level images that have been provided so far.
After calling this method, a call to MultiLevelSource.getImage(int)
} for the same level may
return a new level image instance.
This method is particularly useful if properties have changed that affect the appearance of the returned images at all levels, e.g. after a new color palette has been assigned or the contrast range has changed.
public void dispose()
MultiLevelImage
The results of referencing an image after a call to
dispose()
are undefined.
Overrides shall call super.dispose()
in a final step.
dispose
in class MultiLevelImage
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.