|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.beans.IlvMapAnnotationModel
public class IlvMapAnnotationModel
An annotation model storing an IlvGraphicLayerDataSource.
This model is mainly used for persistence.
| Field Summary | |
|---|---|
static IlvAttributeInfoProperty |
info
The IlvAttributeInfoProperty used to define the attribute to be displayed as a
label by the annotation graphic objects. |
| Constructor Summary | |
|---|---|
IlvMapAnnotationModel(IlvInputStream stream)
Creates a model from an IlvInputStream. |
|
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public IlvMapAnnotationModel(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
stream - The stream to read from.
IlvReadFileException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectstream - 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 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||