public class IlvMapLayerTreeProperty extends IlvNamedProperty
IlvMapLayerTreeProperty
is a subclass of
IlvNamedProperty
used to store an
IlvMapLayerTreeModel
.
IlvManager manager = ...; IlvMapLayerTreeModel model = IlvMapLayerTreeModel.GetMapLayerTreeModel(manager);
GetMapLayerTreeModel
.Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of the property.
|
Constructor and Description |
---|
IlvMapLayerTreeProperty(IlvInputStream stream)
Reads an
IlvMapLayerTreeProperty instance from an
IlvInputStream . |
IlvMapLayerTreeProperty(IlvMapLayerTreeModel model)
Creates a new
IlvMapLayerProperty from an
IlvMapLayerTreeModel . |
IlvMapLayerTreeProperty(IlvMapLayerTreeProperty source)
Creates a
IlvMapLayerTreeProperty by copying an existing one. |
Modifier and Type | Method and Description |
---|---|
IlvNamedProperty |
copy()
Returns a copy of this property.
|
IlvMapLayerTreeModel |
getMapLayerTreeModel()
Retrieves the value of this property.
|
static IlvMapLayerTreeModel |
GetMapLayerTreeModel(IlvManager manager)
Retrieves the value of an
IlvMapLayerTreeProperty instance
attached to an IlvManager object. |
boolean |
isPersistent()
Tests if this property is persistent.
|
void |
write(IlvOutputStream stream)
Write this property to an
IlvMapOutputStream . |
getName
public static final String NAME
public IlvMapLayerTreeProperty(IlvMapLayerTreeModel model)
IlvMapLayerProperty
from an
IlvMapLayerTreeModel
.model
- The value of this property.public IlvMapLayerTreeProperty(IlvMapLayerTreeProperty source)
IlvMapLayerTreeProperty
by copying an existing one.source
- The property to copy.public IlvMapLayerTreeProperty(IlvInputStream stream) throws IlvReadFileException
IlvMapLayerTreeProperty
instance from an
IlvInputStream
.stream
- The stream to read from.IlvReadFileException
- if there is a problem reading
stream
.public IlvNamedProperty copy()
copy
in class IlvNamedProperty
public boolean isPersistent()
isPersistent
in class IlvNamedProperty
true
as a tree
property is always persistent.public void write(IlvOutputStream stream) throws IOException
IlvMapOutputStream
.write
in interface IlvPersistentObject
write
in class IlvNamedProperty
stream
- The stream to write to.IOException
- If there is a problem writing to
stream
.public IlvMapLayerTreeModel getMapLayerTreeModel()
IlvMapLayerTreeModel
instance that is the value
of this property.public static IlvMapLayerTreeModel GetMapLayerTreeModel(IlvManager manager)
IlvMapLayerTreeProperty
instance
attached to an IlvManager
object.
If no property has been set to this manager, a new one is created and attached
to manager
.manager
- The IlvManager
to retrieve the property from.IlvMapLayerTreeModel
attached to
manager
or null
.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.