public class IlvMapLayerProperty extends IlvNamedProperty
IlvNamedProperty used to retrieve an IlvMapLayer
from an IlvManagerLayer. To retrieve a IlvMapLayer
from an IlvManagerLayer you can use the following code:
IlvManagerLayer layer = ...
IlvMapLayerProperty p =
(IlvMapLayerProperty)layer.getNamedProperty(IlvMapLayerProperty.NAME);
if(p != null) {
IlvMapLayer mapLayer = p.getMapLayer();
....
}
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of the named property.
|
| Constructor and Description |
|---|
IlvMapLayerProperty(IlvInputStream stream)
Reads a
IlvMapLayerProperty from an IlvInputStream |
IlvMapLayerProperty(IlvMapLayer layer)
Creates a
IlvMapLayerProperty |
IlvMapLayerProperty(IlvMapLayerProperty source)
Creates a
IlvMapLayerProperty by copying an existing one. |
| Modifier and Type | Method and Description |
|---|---|
IlvNamedProperty |
copy()
Returns a copy of this property.
|
IlvMapLayer |
getMapLayer()
Retrieves the value of this property.
|
static IlvMapLayer |
getMapLayer(IlvManagerLayer managerLayer)
Retrieves the value of a
IlvMapLayerProperty attached to
a IlvManagerLayer if any. |
boolean |
isPersistent()
Tells if this property is persistent.
|
void |
write(IlvOutputStream stream)
Write this property into on
IlvMapOutputStream |
getNamepublic static final String NAME
public IlvMapLayerProperty(IlvInputStream stream) throws IlvReadFileException
IlvMapLayerProperty from an IlvInputStreamstream - The stream to read from.IlvReadFileExceptionpublic IlvMapLayerProperty(IlvMapLayer layer)
IlvMapLayerPropertylayer - The IlvMapLayerpublic IlvMapLayerProperty(IlvMapLayerProperty source)
IlvMapLayerProperty by copying an existing one.source - The property to copy.public IlvNamedProperty copy()
copy in class IlvNamedPropertypublic boolean isPersistent()
isPersistent in class IlvNamedPropertytrue since this property is persistent.public void write(IlvOutputStream stream) throws IOException
IlvMapOutputStreamwrite in interface IlvPersistentObjectwrite in class IlvNamedPropertystream - The stream to write to.IOExceptionpublic IlvMapLayer getMapLayer()
IlvMapLayerpublic static IlvMapLayer getMapLayer(IlvManagerLayer managerLayer)
IlvMapLayerProperty attached to
a IlvManagerLayer if any.managerLayer - The IlvManagerLayer to retrieve the property from.IlvMapLayer or null.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.