public abstract class IlvMapTileLoader extends Object implements IlvTileLoader
IlvTileLoader
can load
data from any data set on which IlvMapFeatureIterator
can
be constructed for a given tile.
IlvLookAheadFeatureIterator
.IlvLookAheadFeatureIterator
,
Serialized FormModifier | Constructor and Description |
---|---|
protected |
IlvMapTileLoader()
This class can only be instantiated by subclasses.
|
protected |
IlvMapTileLoader(IlvInputStream stream)
This class can only be instantiated by subclasses.
|
Modifier and Type | Method and Description |
---|---|
abstract IlvFeatureRenderer |
getDefaultFeatureRenderer()
Returns the default feature renderer used for the rendering of
map features of this tile.
|
abstract IlvMapFeatureIterator |
getFeatureIterator(IlvTile tile)
Returns the feature iterator to read features for the specified tile.
|
IlvFeatureRenderer |
getFeatureRenderer()
Returns the renderer to use with this tile loader.
|
boolean |
isAttachingAttributes()
Returns
true if this tile loader is attaching attributes
to graphic objects it loads, when these are available. |
abstract boolean |
isPersistent()
Returns
true if this tile loader must be saved by a tile
controller. |
void |
load(IlvTile tile)
Method called when a tile has to be loaded.
|
void |
release(IlvTile tile)
Releases the specified tile.
|
void |
setAttachingAttributes(boolean set)
Specifies whether this tile loader is attaching
attributes to graphic objects it loads.
|
void |
setFeatureRenderer(IlvFeatureRenderer renderer)
Sets the renderer to use with this tile loader.
|
void |
write(IlvOutputStream stream)
Writes this tile loader to the specified
IlvOutputStream . |
protected IlvMapTileLoader()
protected IlvMapTileLoader(IlvInputStream stream) throws IlvReadFileException
stream
- The input stream.IlvReadFileException
public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
write
in interface IlvTileLoader
stream
- The IlvOutputStream
to write this object to.IOException
- thrown when an exception occurs during
the write operation for this object.public abstract boolean isPersistent()
true
if this tile loader must be saved by a tile
controller.isPersistent
in interface IlvTileLoader
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 IlvTileLoader
tile
- The tile to load.Exception
- if an error occurs when loading objects from
the specified tile.public void release(IlvTile tile)
tile.deleteAll()
.release
in interface IlvTileLoader
tile
- The tile to release.public abstract IlvMapFeatureIterator getFeatureIterator(IlvTile tile) throws Exception
tile
- The tile to load.null
if no features are to be loaded.Exception
public abstract IlvFeatureRenderer getDefaultFeatureRenderer()
public void setAttachingAttributes(boolean set)
set
- If true
, attributes are attached.public boolean isAttachingAttributes()
true
if this tile loader is attaching attributes
to graphic objects it loads, when these are available.
The default is true
.public void setFeatureRenderer(IlvFeatureRenderer renderer)
renderer
- The feature renderer.public IlvFeatureRenderer getFeatureRenderer()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.