|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.format.IlvMapTileLoader
ilog.views.maps.tiling.IlvRegionOfInterestTileLoader
public class IlvRegionOfInterestTileLoader
IlvRegionOfInterestTileLoader implements a tile loader that loads
data from a tilable database on demand. This class relies on an
IlvMapRegionOfInterestIterator instance whose
region of interest is set according to tile bounds.
| Constructor Summary | |
|---|---|
IlvRegionOfInterestTileLoader(IlvInputStream stream)
Constructs a tile loader from serialized data. |
|
IlvRegionOfInterestTileLoader(IlvMapRegionOfInterestIterator reader,
boolean usingGeodeticComputation)
Creates an IlvRegionOfInterestTileLoader instance that will
delegate data extraction to a specific
IlvMapRegionOfInterestIterator object. |
|
| Method Summary | |
|---|---|
static IlvMapStyle |
createDefaultFeatureStyle(Class geometryClass)
Deprecated. |
IlvFeatureRenderer |
getDefaultFeatureRenderer()
Returns the default feature renderer used to render the map features of this tile. |
IlvMapFeatureIterator |
getFeatureIterator(IlvTile tile)
Returns an IlvMapFeatureIterator used to iterate over map
features within the bounds of the tiles specified. |
boolean |
isPersistent()
Tests if this tile loader can be saved. |
protected boolean |
isUsingGeodeticComputation()
Indicates if this tile loader should use geodetic computation. |
void |
load(IlvTile tile)
Method called when a tile has to be loaded. |
void |
write(IlvOutputStream stream)
Writes this tile loader to a specific IlvOutputStream. |
| Methods inherited from class ilog.views.maps.format.IlvMapTileLoader |
|---|
getFeatureRenderer, isAttachingAttributes, release, setAttachingAttributes, setFeatureRenderer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvRegionOfInterestTileLoader(IlvMapRegionOfInterestIterator reader,
boolean usingGeodeticComputation)
IlvRegionOfInterestTileLoader instance that will
delegate data extraction to a specific
IlvMapRegionOfInterestIterator object.
reader - The underlying IlvMapRegionOfInterestIterator.usingGeodeticComputation - Set to true for rendering
to take date line wrapping into account.
public IlvRegionOfInterestTileLoader(IlvInputStream stream)
throws IlvReadFileException
stream - The input stream to read from.
IlvReadFileException - if there is a problem reading from
stream.| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in interface IlvTileLoaderwrite in class IlvMapTileLoaderstream - The IlvOutputStream to write this object to.
IOException - if there is a problem writing to stream.public boolean isPersistent()
isPersistent in interface IlvTileLoaderisPersistent in class IlvMapTileLoadertrue is returned.
public IlvMapFeatureIterator getFeatureIterator(IlvTile tile)
throws Exception
IlvMapFeatureIterator used to iterate over map
features within the bounds of the tiles specified.
getFeatureIterator in class IlvMapTileLoadertile - The IlvTile to load.
IlvMapFeatureIterator of map features.
Exception - if a runtime exception occurred during iterator creation.public IlvFeatureRenderer getDefaultFeatureRenderer()
This default feature renderer is used when the user does not set a specific feature renderer.
getDefaultFeatureRenderer in class IlvMapTileLoaderIlvFeatureRenderer for this tile loader.public static IlvMapStyle createDefaultFeatureStyle(Class geometryClass)
geometryClass - subclass
IlvDataSourceStylingFactory.createDefaultFeatureStyle(Class, Object, boolean)
public void load(IlvTile tile)
throws Exception
getFeatureIterator(), and then adds all objects to the tile
using the feature renderer of this tile loader.
getFeatureIterator() returns null, the
specified tile is assumed to be inexistent and
tile.loadComplete() is called.
load in interface IlvTileLoaderload in class IlvMapTileLoadertile - The tile to load.
Exception - if an error occurs when loading objects from
the specified tile.protected boolean isUsingGeodeticComputation()
true is
returned.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||