Package com.bc.ceres.glevel
Class MultiLevelImage
- java.lang.Object
-
- javax.media.jai.PlanarImage
-
- com.bc.ceres.glevel.MultiLevelImage
-
- All Implemented Interfaces:
MultiLevelSource
,RenderedImage
,javax.media.jai.ImageJAI
,javax.media.jai.PropertyChangeEmitter
,javax.media.jai.PropertySource
,javax.media.jai.WritablePropertySource
- Direct Known Subclasses:
DefaultMultiLevelImage
public abstract class MultiLevelImage extends javax.media.jai.PlanarImage implements MultiLevelSource
APlanarImage
which can act as aMultiLevelSource
. The image data provided by this image corresponds to the level zero image of theMultiLevelSource
.- Version:
- $revision$ $date$
-
-
Field Summary
-
Fields inherited from class javax.media.jai.PlanarImage
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
-
Fields inherited from interface com.bc.ceres.glevel.MultiLevelSource
NULL
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MultiLevelImage(javax.media.jai.ImageLayout layout, Vector sources, Map properties)
Constructs a newMultiLevelImage
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WritableRaster
copyData(WritableRaster raster)
void
dispose()
Provides a hint that an image will no longer be accessed from a reference in user space.Raster
getData()
Raster
getData(Rectangle rect)
Raster
getTile(int x, int y)
-
Methods inherited from class javax.media.jai.PlanarImage
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
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.bc.ceres.glevel.MultiLevelSource
getImage, getImageShape, getModel, reset
-
-
-
-
Constructor Detail
-
MultiLevelImage
protected MultiLevelImage(javax.media.jai.ImageLayout layout, Vector sources, Map properties)
Constructs a newMultiLevelImage
. Calls the- Parameters:
layout
- The layout of this image or null.sources
- The immediate sources of this image or null.properties
- A Map containing the properties of this image or null.
-
-
Method Detail
-
getTile
public final Raster getTile(int x, int y)
- Specified by:
getTile
in interfaceRenderedImage
- Specified by:
getTile
in classjavax.media.jai.PlanarImage
-
getData
public final Raster getData()
- Specified by:
getData
in interfaceRenderedImage
- Overrides:
getData
in classjavax.media.jai.PlanarImage
-
getData
public final Raster getData(Rectangle rect)
- Specified by:
getData
in interfaceRenderedImage
- Overrides:
getData
in classjavax.media.jai.PlanarImage
-
copyData
public final WritableRaster copyData(WritableRaster raster)
- Specified by:
copyData
in interfaceRenderedImage
- Overrides:
copyData
in classjavax.media.jai.PlanarImage
-
dispose
public void dispose()
Provides a hint that an image will no longer be accessed from a reference in user space. The results are equivalent to those that occur when the program loses its last reference to this image, the garbage collector discovers this, and finalize is called. This can be used as a hint in situations where waiting for garbage collection would be overly conservative.The results of referencing an image after a call to
dispose()
are undefined.Overrides shall call
super.dispose()
in a final step.- Overrides:
dispose
in classjavax.media.jai.PlanarImage
-
-