public class IlvRasterSplitter extends Object
IlvRasterSplitter
creates layers from
IlvTiledLayer
objects and adds the appropriate
IlvFreeTile
instances for a specified
IlvRasterAbstractReader
.
This is useful for displaying huge images, even if they need to be projected
using an IlvProjection
.
Once returned by one of the createTiledLayers
methods, tiled
layers can be added to an IlvManager
instance and be displayed
in an IlvManagerView
object.Constructor and Description |
---|
IlvRasterSplitter(IlvTileCache cache)
Constructs an
IlvRasterSplitter instance using the
specified IlvTileCache . |
Modifier and Type | Method and Description |
---|---|
Collection<IlvTiledLayer> |
createTiledLayers(IlvRasterAbstractReader reader,
int maxSamplingLevels,
int samplingLevelRatio,
IlvTiledLayer[] tiledLayers,
boolean allowSubsampling)
Creates and sets up the list of
IlvTiledLayer objects used to
contain and draw the raster data produced by an
IlvRasterAbstractReader instance. |
Collection<IlvTiledLayer> |
createTiledLayers(IlvRasterAbstractReader reader,
int maxSamplingLevels,
int samplingLevelRatio,
IlvTiledLayer[] tiledLayers,
boolean allowSubsampling,
boolean threaded)
Creates and sets up the list of
IlvTiledLayer objects used
to contain and draw raster data produced by an
IlvRasterAbstractReader instance. |
public IlvRasterSplitter(IlvTileCache cache)
IlvRasterSplitter
instance using the
specified IlvTileCache
.cache
- The IlvTileCache
instance to be used by the
IlvTiledLayer
objects created by this class.public Collection<IlvTiledLayer> createTiledLayers(IlvRasterAbstractReader reader, int maxSamplingLevels, int samplingLevelRatio, IlvTiledLayer[] tiledLayers, boolean allowSubsampling)
IlvTiledLayer
objects used to
contain and draw the raster data produced by an
IlvRasterAbstractReader
instance.reader
- The IlvRasterAbstractReader
instance that
produces raster data.maxSamplingLevels
- The maximum number of tiled layers to create.
One layer per subsampling resolution.samplingLevelRatio
- The ratio between two consecutive subsampling
levels.tiledLayers
- An array of IlvTiledLayer
objects used
to store the tiled layers created.allowSubsampling
- Set to true
to allow tiles to create
IlvRasterIcon
components that manage their own subsampling
level. See IlvRasterIcon
.IlvTiledLayer
instances.public Collection<IlvTiledLayer> createTiledLayers(IlvRasterAbstractReader reader, int maxSamplingLevels, int samplingLevelRatio, IlvTiledLayer[] tiledLayers, boolean allowSubsampling, boolean threaded)
IlvTiledLayer
objects used
to contain and draw raster data produced by an
IlvRasterAbstractReader
instance.reader
- The IlvRasterAbstractReader
that produces
raster data.maxSamplingLevels
- The maximum number of tiled layers to create.
One layer per subsampling resolution.samplingLevelRatio
- The ratio between to consecutive subsampling
levels.tiledLayers
- An array of IlvTiledLayer
objects used
to store the tiled layers created.allowSubsampling
- Set to true
to allow tiles
to create IlvRasterIcon
components that manage their own
subsampling level. See IlvRasterIcon
for
more information.threaded
- Set to true
to allow multithreading for
tile loading.IlvTiledLayer
instances.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.