Package com.luciad.wms.sld.model
Class TLcdSLDStyledLayerDescriptor
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.wms.sld.model.TLcdSLDStyledLayerDescriptor
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
A Styled Layer Descriptor contains a set of layers, which can be named or
user-defined and can have additional styling information.
- Since:
- 6.1
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdSLDStyledLayerDescriptor
instance.TLcdSLDStyledLayerDescriptor
(TLcdDataType aDataType) Creates a newTLcdSLDStyledLayerDescriptor
instance.TLcdSLDStyledLayerDescriptor
(String aName, TLcdSLDDescription aDescription, String aVersion, ALcdSLDLayer[] aLayers) Creates a newTLcdSLDStyledLayerDescriptor
instance with a given name, description, version and layer(s). -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayer
(ALcdSLDLayer aSLDLayer) Adds a layer to this Styled Layer Descriptor.Returns the value of the property that maps to theDescription
element.getLayer()
Returns the value of the property that maps to the choice between theNamedLayer
andUserLayer
elements.getLayer
(int aIndex) Returns the layer at the given index.int
Returns the number of layers within this Styled Layer Descriptor.getName()
Returns the value of the property that maps to theName
element.Returns the value of the property that maps to theversion
attribute.void
removeLayer
(ALcdSLDLayer aSLDLayer) Removes a layer from this Styled Layer Descriptor.void
setDescription
(TLcdSLDDescription aValue) Sets the value of the property that maps to theDescription
element.void
Sets the value of the property that maps to theName
element.void
setVersion
(String aValue) Sets the value of the property that maps to theversion
attribute.
-
Constructor Details
-
TLcdSLDStyledLayerDescriptor
public TLcdSLDStyledLayerDescriptor()Creates a newTLcdSLDStyledLayerDescriptor
instance. The version will be set to the default version used by LuciadLightspeed which is currently 1.1.0. If a specific, fixed version is needed, it should be set explicitly. -
TLcdSLDStyledLayerDescriptor
public TLcdSLDStyledLayerDescriptor(String aName, TLcdSLDDescription aDescription, String aVersion, ALcdSLDLayer[] aLayers) Creates a newTLcdSLDStyledLayerDescriptor
instance with a given name, description, version and layer(s).- Parameters:
aName
- The name of the Styled Layer Descriptor.aDescription
- The description of the Styled Layer Descriptor.aVersion
- The version of the Styled Layer Descriptor. This should be1.1.0
or1.0.0
.aLayers
- The layer(s) of the Styled Layer Descriptor.
-
TLcdSLDStyledLayerDescriptor
Creates a newTLcdSLDStyledLayerDescriptor
instance. The version will be set to the default version used by LuciadLightspeed which is currently 1.1.0. If a specific, fixed version is needed, it should be set explicitly.
-
-
Method Details
-
getLayerCount
public int getLayerCount()Returns the number of layers within this Styled Layer Descriptor.- Returns:
- the number of layers within this Styled Layer Descriptor.
-
getLayer
Returns the layer at the given index.- Parameters:
aIndex
- The index of the layer to be retrieved.- Returns:
- the layer at the given index.
-
addLayer
Adds a layer to this Styled Layer Descriptor.- Parameters:
aSLDLayer
- the layer to be added.
-
removeLayer
Removes a layer from this Styled Layer Descriptor.- Parameters:
aSLDLayer
- the layer to be removed.
-
getVersion
Returns the value of the property that maps to theversion
attribute.- Returns:
- the value of the
VERSION_PROPERTY
property.
-
setVersion
Sets the value of the property that maps to theversion
attribute.- Parameters:
aValue
- the value to set for theVERSION_PROPERTY
property.
-
getName
Returns the value of the property that maps to theName
element.- Returns:
- the value of the
NAME_PROPERTY
property.
-
setName
Sets the value of the property that maps to theName
element.- Parameters:
aValue
- the value to set for theNAME_PROPERTY
property.
-
getDescription
Returns the value of the property that maps to theDescription
element.A "Description" gives human-readable descriptive information for the object it is included within.
- Returns:
- the value of the
DESCRIPTION_PROPERTY
property.
-
setDescription
Sets the value of the property that maps to theDescription
element.A "Description" gives human-readable descriptive information for the object it is included within.
- Parameters:
aValue
- the value to set for theDESCRIPTION_PROPERTY
property.
-
getLayer
Returns the value of the property that maps to the choice between theNamedLayer
andUserLayer
elements.The possible values for this property are instances of
java.util.List
with elements of class- Returns:
- the value of the
LAYER_PROPERTY
property.
-