|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.datasource.IlvMapDataSource
ilog.views.maps.raster.datasource.IlvTiledRasterDataSource
public class IlvTiledRasterDataSource
IlvTiledRasterDataSource is used to manage any raster
reader data. This class gives the option to split the images into
tiles and load the images in a background thread. The default tile size is
256x256.
| Field Summary |
|---|
| Fields inherited from class ilog.views.maps.datasource.IlvMapDataSource |
|---|
renderer, usingGeodeticComputation |
| Constructor Summary | |
|---|---|
IlvTiledRasterDataSource()
Creates a raster tiled data source that can be split and multithreaded. |
|
IlvTiledRasterDataSource(boolean split,
boolean threaded,
IlvRasterAbstractReader reader)
Creates a raster tiled data source that can be split and multithreaded. |
|
IlvTiledRasterDataSource(IlvInputStream stream)
Reads the data source from a serialized stream. |
|
| Method Summary | |
|---|---|
protected IlvMapLayer |
createInsertionLayer()
Creates the map layer using a tiled manager layer. |
void |
execute()
Creates all necessary IlvFreeTile objects. |
IlvMapReusableFeatureIterator |
getFeatureIterator()
Retrieves the feature iterator used by this data source. |
IlvThreadMonitoringData |
getMonitorInfo()
Returns the thread monitoring information to use when updating progress. |
IlvRasterAbstractReader |
getReader()
Returns the raster reader attached to this data source. |
IlvTiledLayer |
getTiledLayer()
Returns the manager layer referenced by the insertion layer as a tiled layer. |
protected void |
initInsertionLayer(IlvMapLayer layer)
Creates a new IlvTiledLayer instance to store images and tiles. |
boolean |
isSplit()
Returns if images are split by this data source. |
boolean |
isThreaded()
Returns the thread status of this data source. |
void |
reset()
Resets the data source and prepares it for reloading. |
void |
setMonitorInfo(IlvThreadMonitoringData info)
Sets the thread monitoring information to use when updating progress. |
void |
setReader(IlvRasterAbstractReader r)
Sets the raster reader attached to this data source. |
protected void |
setSplit(boolean split)
Sets the splitting for this data source. |
void |
setThreaded(boolean threaded)
Sets the thread status of this data source. |
void |
start()
Starts data source reading and rendering. |
void |
write(IlvOutputStream stream)
Writes an IlvMapDataSource to an
IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvTiledRasterDataSource()
public IlvTiledRasterDataSource(boolean split,
boolean threaded,
IlvRasterAbstractReader reader)
split - Indicates if images created by this data source are split
into tiles.threaded - Indicates if image loading is done in a background thread.reader - The reader used to provide the raster data.
public IlvTiledRasterDataSource(IlvInputStream stream)
throws IlvReadFileException
stream - The stream to read from.
IlvReadFileException - if there is a problem reading from
stream.| Method Detail |
|---|
public IlvThreadMonitoringData getMonitorInfo()
public IlvMapReusableFeatureIterator getFeatureIterator()
getFeatureIterator in class IlvMapDataSourceIlvMapDataSource.getFeatureIterator()
public void write(IlvOutputStream stream)
throws IOException
IlvMapDataSource to an
IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvMapDataSourcestream - The stream to write to.
IOException - thrown when an exception occurs during
the write operation for this object.IlvMapDataSource.write(ilog.views.io.IlvOutputStream)protected IlvMapLayer createInsertionLayer()
createInsertionLayer in class IlvMapDataSourceinitInsertionLayer(IlvMapLayer),
IlvMapDataSource.createInsertionLayer()protected void initInsertionLayer(IlvMapLayer layer)
IlvTiledLayer instance to store images and tiles.
initInsertionLayer in class IlvMapDataSourcelayer - The IlvMapLayer to initialize.IlvMapDataSource.initInsertionLayer(ilog.views.maps.beans.IlvMapLayer)public IlvTiledLayer getTiledLayer()
IlvMapDataSource.getInsertionLayer()public void setMonitorInfo(IlvThreadMonitoringData info)
info - The thread monitoring information.public void reset()
reset in class IlvMapDataSourceIlvMapDataSource.reset()public void start()
execute().
start in class IlvMapDataSourceIlvMapDataSource.start()public void execute()
IlvFreeTile objects.
public IlvRasterAbstractReader getReader()
public void setReader(IlvRasterAbstractReader r)
r - The raster reader attached to this data source.public boolean isSplit()
true is
returned.protected void setSplit(boolean split)
split - Indicates if images are split by this data source.
Splitting means divided into tiles.public boolean isThreaded()
true
is returned.public void setThreaded(boolean threaded)
threaded - Indicates if this data source uses threads to load tiles.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||