public class IlvMapAnnotationModel extends Object implements IlvPersistentObject
IlvGraphicLayerDataSource
.
This model is mainly used for persistence.Modifier and Type | Field and Description |
---|---|
static IlvAttributeInfoProperty |
info
The
IlvAttributeInfoProperty used to define the attribute to be displayed as a
label by the annotation graphic objects. |
Constructor and Description |
---|
IlvMapAnnotationModel(IlvInputStream stream)
Creates a model from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
void |
clearDataSources()
Removes all the data sources from the model.
|
IlvMapLayer |
getAnnotationRoot()
Returns the
IlvMapLayer used as a parent by the annotations layers when
displayed in an IlvLayerTree . |
IlvMapLayer |
getAnnotationRoot(IlvManager pmanager)
Gets or creates the layer used as a parent by the layers created by this toolbar.
|
IlvGraphicLayerDataSource |
getDataSource(IlvManager pmanager,
String key)
Retrieves the data source associated with a key.
|
Iterator<IlvGraphicLayerDataSource> |
getGraphicLayerDataSource()
Provides an iterator to iterate through the data sources stored in this model.
|
void |
putDataSource(Object key,
IlvGraphicLayerDataSource source)
Registers a data source in this model.
|
void |
removeDataSource(IlvGraphicLayerDataSource source)
Removes the specified data source from the model.
|
void |
setAnnotationRoot(IlvMapLayer layer)
Sets the layer to be used as a parent by the annotations layers.
|
void |
write(IlvOutputStream stream)
Writes this model on an
IlvOutputStream . |
public static IlvAttributeInfoProperty info
IlvAttributeInfoProperty
used to define the attribute to be displayed as a
label by the annotation graphic objects. This attribute is an IlvStringAttribute
.
The name of the attribute is IlvMapAnnotationToolBar.ANNOTATION_PROPERTY_NAME
public IlvMapAnnotationModel(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.stream
- The stream to read from.IlvReadFileException
public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
stream
- The stream to write to.IOException
public IlvGraphicLayerDataSource getDataSource(IlvManager pmanager, String key)
IlvGraphicLayerDataSource
is created and associated with the key.pmanager
- The manager used to store and retrieve the data sources.key
- The string key.IlvGraphicLayerDataSource
associated with this key.public Iterator<IlvGraphicLayerDataSource> getGraphicLayerDataSource()
public void putDataSource(Object key, IlvGraphicLayerDataSource source)
key
- The key used for further retrieval.source
- The data source.public void removeDataSource(IlvGraphicLayerDataSource source)
source
- The data source to remove.public void clearDataSources()
public IlvMapLayer getAnnotationRoot(IlvManager pmanager)
pmanager
- The manager used to retrieve the layer tree model.IlvGraphicLayerDatatSource
.public IlvMapLayer getAnnotationRoot()
IlvMapLayer
used as a parent by the annotations layers when
displayed in an IlvLayerTree
.IlvMapLayer
used as a parent by the annotations layers.public void setAnnotationRoot(IlvMapLayer layer)
layer
- The layer used as a parent by the annotations layers.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.