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
ConstructorDescriptionCreates a newTLcdSLDUserStyle
instance.TLcdSLDUserStyle
(TLcdDataType aTLcdDataType) Creates a newTLcdSLDUserStyle
instance.TLcdSLDUserStyle
(String aName, TLcdSLDDescription aDescription, TLcdSLDFeatureTypeStyle[] aFeatureTypeStyles, boolean aDefault) Creates a newTLcdSLDUserStyle
instance with the given name, description and feature type styles. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeatureTypeStyle
(TLcdSLDFeatureTypeStyle aFeatureTypeStyle) Adds a feature type style to this user-defined style.Returns the value of the property that maps to theDescription
element.Returns the value of the property that maps to the choice between theFeatureTypeStyle
andOnlineResource
elements.getFeatureTypeStyle
(int aIndex) Returns the feature type style at the given index.int
Returns the number of feature type styles associated with this user-defined style.boolean
Returns the value of the property that maps to theDefault
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 theDefault
element.void
setDescription
(TLcdSLDDescription aValue) Sets the value of the property that maps to theDescription
element.Methods inherited from class com.luciad.wms.sld.model.ALcdSLDLayerStyle
getName, setName
-
Constructor Details
-
TLcdSLDUserStyle
public TLcdSLDUserStyle()Creates a newTLcdSLDUserStyle
instance. -
TLcdSLDUserStyle
public TLcdSLDUserStyle(String aName, TLcdSLDDescription aDescription, TLcdSLDFeatureTypeStyle[] aFeatureTypeStyles, boolean aDefault) Creates a newTLcdSLDUserStyle
instance 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 newTLcdSLDUserStyle
instance.
-
-
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 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.
-
isDefault
public boolean isDefault()Returns the value of the property that maps to theDefault
element.- Returns:
- the value of the
DEFAULT_PROPERTY
property.
-
setDefault
public void setDefault(boolean aValue) Sets the value of the property that maps to theDefault
element.- Parameters:
aValue
- the value to set for theDEFAULT_PROPERTY
property.
-
getFeatureTypeStyle
Returns the value of the property that maps to the choice between theFeatureTypeStyle
andOnlineResource
elements.The possible values for this property are instances of
java.util.List
with elements of class- Returns:
- the value of the
FEATURE_TYPE_STYLE_PROPERTY
property.
-