Package com.luciad.wms.sld.model
Class ALcdSLDLayer
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.wms.sld.model.ALcdSLDLayer
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
- Direct Known Subclasses:
TLcdSLDNamedLayer
,TLcdSLDUserLayer
Represents a layer (named or user-defined) in a Styled Layer Descriptor.
Typically, you will never use this class directly. Instead, you will always work with one of its implementations,
TLcdSLDUserLayer
or TLcdSLDNamedLayer
.-
Constructor Summary
ConstructorDescriptionALcdSLDLayer
(TLcdDataType aType) Constructs a new SLD Layer with the given data type.ALcdSLDLayer
(String aName, ALcdSLDLayerStyle[] aSLDLayerStyles, TLcdSLDLayerFeatureConstraints aLayerFeatureConstraints, TLcdDataType aType) Constructs a new SLD Layer for the given parameter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayerStyle
(ALcdSLDLayerStyle aLayerStyle) Adds a style to this SLD layer.Returns the feature constraint of this SLD layer.getLayerStyle
(int aIndex) Returns the style of this SLD layer at a given index.int
Returns the number of styles associated with this SLD layer.getName()
Returns the name of this SLD layer.void
removeLayerStyle
(ALcdSLDLayerStyle aLayerStyle) Removes a style from this SLD layer.void
setLayerFeatureConstraint
(TLcdSLDLayerFeatureConstraints aLayerFeatureConstraints) Sets the feature constraint of this SLD layer.void
Sets the name of this SLD layer.
-
Constructor Details
-
ALcdSLDLayer
public ALcdSLDLayer(String aName, ALcdSLDLayerStyle[] aSLDLayerStyles, TLcdSLDLayerFeatureConstraints aLayerFeatureConstraints, TLcdDataType aType) Constructs a new SLD Layer for the given parameter.- Parameters:
aName
- The name of the layer.aSLDLayerStyles
- The styles of the layer.aLayerFeatureConstraints
- The layer feature constraint.aType
- The type of the layer
-
ALcdSLDLayer
Constructs a new SLD Layer with the given data type.- Parameters:
aType
- the type of the layer
-
-
Method Details
-
getName
Returns the name of this SLD layer.- Returns:
- the name of this SLD layer.
-
setName
Sets the name of this SLD layer.- Parameters:
aLayerName
- the name of this SLD layer
-
getLayerStyleCount
public int getLayerStyleCount()Returns the number of styles associated with this SLD layer.- Returns:
- the number of styles associated with this SLD layer.
-
getLayerStyle
Returns the style of this SLD layer at a given index.- Parameters:
aIndex
- the index of the style to return.- Returns:
- the style of this SLD layer at a given index.
- Throws:
IndexOutOfBoundsException
-
addLayerStyle
Adds a style to this SLD layer.- Parameters:
aLayerStyle
- the style to be added.
-
removeLayerStyle
Removes a style from this SLD layer.- Parameters:
aLayerStyle
- the style to be removed.
-
getLayerFeatureConstraint
Returns the feature constraint of this SLD layer.- Returns:
- the feature constraint of this SLD layer.
-
setLayerFeatureConstraint
Sets the feature constraint of this SLD layer.- Parameters:
aLayerFeatureConstraints
- the feature constraint of this SLD layer
-