public class IlvRasterSubsamplingLoader extends IlvRasterTileLoader
IlvRasterSubsamplingLoader provides the mechanism for
progressive dynamic tiling. Using subsampling to create a degraded version
of the definitive image, the image becomes more and more precise in the
pixel definition. When the image is drawn, it may add a new task to the
tile loader to display it with a better
resolution. This depends on the necessary resolution at draw time.| Constructor and Description |
|---|
IlvRasterSubsamplingLoader(IlvInputStream stream)
Reads an
IlvRasterSubsamplingLoader instance from an input
stream. |
IlvRasterSubsamplingLoader(IlvRasterProperties rasterProperties,
IlvRasterMappedBuffer rasterMappedBuffer,
IlvCoordinateTransformation transformation,
int tileSize)
Creates a loader that will initially display an
8x8
subsample image. |
| Modifier and Type | Method and Description |
|---|---|
static double |
getImageSubsamplingFactor()
Returns the image subsampling factor.
|
void |
load(IlvTile tile)
Function called when a tile has to be loaded.
|
protected IlvRasterIcon |
makeIcon(int subsampling,
Point2D.Double p1,
Point2D.Double p2)
Factory of icons from the subsampling and two corners parameters.
|
void |
release(IlvTile tile)
Function called when a tile has to be released.
|
static void |
setImageSubsamplingFactor(double subsamplingFactor)
Sets the image subsampling factor.
|
void |
write(IlvOutputStream out)
Writes the tile loader to an
IlvOutputStream |
getBytePixel, getInternalTransformation, getIntPixel, getPreviewDelay, getPreviewSubsampling, getProperties, getRasterMappedBuffer, getRasterProperties, getRawImageProducer, getScaledImageProducer, getTransformation, isHighQualityRendering, isLoadRetryingOnOutOfMemory, isPersistent, isSynchronous, rasterTileLoaded, setHighQualityRendering, setLoadRetryingOnOutOfMemory, setPreviewSubsampling, setProperties, setSynchronous, setTransformation, setupIconpublic IlvRasterSubsamplingLoader(IlvRasterProperties rasterProperties, IlvRasterMappedBuffer rasterMappedBuffer, IlvCoordinateTransformation transformation, int tileSize)
8x8
subsample image.rasterProperties - The information about the raster.rasterMappedBuffer - Raster data from the original image.transformation - The transformation to use to translate from view to geographic
coordinates.tileSize - The size of a tile.public IlvRasterSubsamplingLoader(IlvInputStream stream) throws IlvReadFileException
IlvRasterSubsamplingLoader instance from an input
stream.stream - The input stream to read from.IlvReadFileException - if there is a problem reading from
stream.public static double getImageSubsamplingFactor()
setImageSubsamplingFactor(double)public static void setImageSubsamplingFactor(double subsamplingFactor)
subsamplingFactor - The new image subsampling factor.public void write(IlvOutputStream out) throws IOException
IlvOutputStreamwrite in interface IlvPersistentObjectwrite in interface IlvTileLoaderwrite in class IlvRasterTileLoaderout - the output streamIOException - thrown when an exception occurs during
the write operation for this object.IlvRasterTileLoader.write(ilog.views.io.IlvOutputStream)public void release(IlvTile tile)
release in interface IlvTileLoaderrelease in class IlvRasterTileLoaderIlvRasterTileLoader.release(ilog.views.tiling.IlvTile)public void load(IlvTile tile) throws Exception
IlvTile.loadComplete to notify the
tile listeners.load in interface IlvTileLoaderload in class IlvRasterTileLoaderExceptionIlvRasterTileLoader.load(ilog.views.tiling.IlvTile)protected IlvRasterIcon makeIcon(int subsampling, Point2D.Double p1, Point2D.Double p2)
makeIcon in class IlvRasterTileLoadersubsampling - Initial subsampling of the image created.p1 - The definition rectangle of the object.p2 - The definition rectangle of the object.IlvRasterTileLoader.makeIcon(int,
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Double)© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.