public class TLcdSLDUserStyle extends ALcdSLDLayerStyle
Constructor and Description |
---|
TLcdSLDUserStyle()
Creates a new
TLcdSLDUserStyle instance. |
TLcdSLDUserStyle(String aName,
TLcdSLDDescription aDescription,
TLcdSLDFeatureTypeStyle[] aFeatureTypeStyles,
boolean aDefault)
Creates a new
TLcdSLDUserStyle instance with the given name, description and feature type styles. |
TLcdSLDUserStyle(TLcdDataType aTLcdDataType)
Creates a new
TLcdSLDUserStyle instance. |
Modifier and Type | Method and Description |
---|---|
void |
addFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle)
Adds a feature type style to this user-defined style.
|
TLcdSLDDescription |
getDescription()
Returns the value of the property that maps to the
Description element. |
List<ILcdDataObject> |
getFeatureTypeStyle()
Returns the value of the property that maps to the choice between the
FeatureTypeStyle and OnlineResource elements. |
TLcdSLDFeatureTypeStyle |
getFeatureTypeStyle(int aIndex)
Returns the feature type style at the given index.
|
int |
getFeatureTypeStyleCount()
Returns the number of feature type styles associated with this user-defined style.
|
boolean |
isDefault()
Returns the value of the property that maps to the
Default element. |
void |
removeFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle)
Removes a feature type style from this user-defined style.
|
void |
setDefault(boolean aValue)
Sets the value of the property that maps to the
Default element. |
void |
setDescription(TLcdSLDDescription aValue)
Sets the value of the property that maps to the
Description element. |
getName, setName
public TLcdSLDUserStyle()
TLcdSLDUserStyle
instance.public TLcdSLDUserStyle(String aName, TLcdSLDDescription aDescription, TLcdSLDFeatureTypeStyle[] aFeatureTypeStyles, boolean aDefault)
TLcdSLDUserStyle
instance with the given name, description and feature type styles.aName
- The name of the layer style.aDescription
- The description of the layer style.aFeatureTypeStyles
- The feature type style(s) of the layer style.aDefault
- Whether this is a default style or not.public TLcdSLDUserStyle(TLcdDataType aTLcdDataType)
TLcdSLDUserStyle
instance.public void addFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle)
aFeatureTypeStyle
- a feature type style to be added.public void removeFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle)
aFeatureTypeStyle
- the feature type style to be removed.public TLcdSLDFeatureTypeStyle getFeatureTypeStyle(int aIndex)
aIndex
- The index of the feature type style to be retrieved.public int getFeatureTypeStyleCount()
public TLcdSLDDescription getDescription()
Description
element.
A "Description" gives human-readable descriptive information for the object it is included within.
DESCRIPTION_PROPERTY
property.public void setDescription(TLcdSLDDescription aValue)
Description
element.
A "Description" gives human-readable descriptive information for the object it is included within.
aValue
- the value to set for the DESCRIPTION_PROPERTY
property.public boolean isDefault()
Default
element.DEFAULT_PROPERTY
property.public void setDefault(boolean aValue)
Default
element.aValue
- the value to set for the DEFAULT_PROPERTY
property.public List<ILcdDataObject> getFeatureTypeStyle()
FeatureTypeStyle
and OnlineResource
elements.
The possible values for this property are instances of java.util.List
with elements of class
FEATURE_TYPE_STYLE_PROPERTY
property.