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 |
getName
public static final String NAME
public IlvMapLayerProperty(IlvInputStream stream) throws IlvReadFileException
IlvMapLayerProperty
from an IlvInputStream
stream
- The stream to read from.IlvReadFileException
public IlvMapLayerProperty(IlvMapLayer layer)
IlvMapLayerProperty
layer
- The IlvMapLayer
public IlvMapLayerProperty(IlvMapLayerProperty source)
IlvMapLayerProperty
by copying an existing one.source
- The property to copy.public IlvNamedProperty copy()
copy
in class IlvNamedProperty
public boolean isPersistent()
isPersistent
in class IlvNamedProperty
true
since this property is persistent.public void write(IlvOutputStream stream) throws IOException
IlvMapOutputStream
write
in interface IlvPersistentObject
write
in class IlvNamedProperty
stream
- The stream to write to.IOException
public IlvMapLayer getMapLayer()
IlvMapLayer
public static IlvMapLayer getMapLayer(IlvManagerLayer managerLayer)
IlvMapLayerProperty
attached to
a IlvManagerLayer
if any.managerLayer
- The IlvManagerLayer
to retrieve the property from.IlvMapLayer
or null
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.