Class 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
    A PlanarImage which can act as a MultiLevelSource. The image data provided by this image corresponds to the level zero image of the MultiLevelSource.
    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
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MultiLevelImage​(javax.media.jai.ImageLayout layout, Vector sources, Map properties)
      Constructs a new MultiLevelImage.
    • 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
    • Constructor Detail

      • MultiLevelImage

        protected MultiLevelImage​(javax.media.jai.ImageLayout layout,
                                  Vector sources,
                                  Map properties)
        Constructs a new MultiLevelImage. 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 interface RenderedImage
        Specified by:
        getTile in class javax.media.jai.PlanarImage
      • getData

        public final Raster getData()
        Specified by:
        getData in interface RenderedImage
        Overrides:
        getData in class javax.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 class javax.media.jai.PlanarImage