Package com.luciad.wms.sld.model
Class TLcdSLDUserStyle
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.wms.sld.model.ALcdSLDLayerStyle
com.luciad.wms.sld.model.TLcdSLDUserStyle
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
Represents a user-defined style for a user-defined layer within a Styled Layer Descriptor.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdSLDUserStyleinstance.TLcdSLDUserStyle(TLcdDataType aTLcdDataType) Creates a newTLcdSLDUserStyleinstance.TLcdSLDUserStyle(String aName, TLcdSLDDescription aDescription, TLcdSLDFeatureTypeStyle[] aFeatureTypeStyles, boolean aDefault) Creates a newTLcdSLDUserStyleinstance with the given name, description and feature type styles. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle) Adds a feature type style to this user-defined style.Returns the value of the property that maps to theDescriptionelement.Returns the value of the property that maps to the choice between theFeatureTypeStyleandOnlineResourceelements.getFeatureTypeStyle(int aIndex) Returns the feature type style at the given index.intReturns the number of feature type styles associated with this user-defined style.booleanReturns the value of the property that maps to theDefaultelement.voidremoveFeatureTypeStyle(TLcdSLDFeatureTypeStyle aFeatureTypeStyle) Removes a feature type style from this user-defined style.voidsetDefault(boolean aValue) Sets the value of the property that maps to theDefaultelement.voidsetDescription(TLcdSLDDescription aValue) Sets the value of the property that maps to theDescriptionelement.Methods inherited from class com.luciad.wms.sld.model.ALcdSLDLayerStyle
getName, setName
-
Constructor Details
-
TLcdSLDUserStyle
public TLcdSLDUserStyle()Creates a newTLcdSLDUserStyleinstance. -
TLcdSLDUserStyle
public TLcdSLDUserStyle(String aName, TLcdSLDDescription aDescription, TLcdSLDFeatureTypeStyle[] aFeatureTypeStyles, boolean aDefault) Creates a newTLcdSLDUserStyleinstance with the given name, description and feature type styles.- Parameters:
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.
-
TLcdSLDUserStyle
Creates a newTLcdSLDUserStyleinstance.
-
-
Method Details
-
addFeatureTypeStyle
Adds a feature type style to this user-defined style.- Parameters:
aFeatureTypeStyle- a feature type style to be added.
-
removeFeatureTypeStyle
Removes a feature type style from this user-defined style.- Parameters:
aFeatureTypeStyle- the feature type style to be removed.
-
getFeatureTypeStyle
Returns the feature type style at the given index.- Parameters:
aIndex- The index of the feature type style to be retrieved.- Returns:
- the feature type style at the given index.
-
getFeatureTypeStyleCount
public int getFeatureTypeStyleCount()Returns the number of feature type styles associated with this user-defined style.- Returns:
- the number of feature type styles associated with this user-defined style.
-
getDescription
Returns the value of the property that maps to theDescriptionelement.A "Description" gives human-readable descriptive information for the object it is included within.
- Returns:
- the value of the
DESCRIPTION_PROPERTYproperty.
-
setDescription
Sets the value of the property that maps to theDescriptionelement.A "Description" gives human-readable descriptive information for the object it is included within.
- Parameters:
aValue- the value to set for theDESCRIPTION_PROPERTYproperty.
-
isDefault
public boolean isDefault()Returns the value of the property that maps to theDefaultelement.- Returns:
- the value of the
DEFAULT_PROPERTYproperty.
-
setDefault
public void setDefault(boolean aValue) Sets the value of the property that maps to theDefaultelement.- Parameters:
aValue- the value to set for theDEFAULT_PROPERTYproperty.
-
getFeatureTypeStyle
Returns the value of the property that maps to the choice between theFeatureTypeStyleandOnlineResourceelements.The possible values for this property are instances of
java.util.Listwith elements of class- Returns:
- the value of the
FEATURE_TYPE_STYLE_PROPERTYproperty.
-