Class TLcdSLDRule
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.TLcdSLDRule(TLcdDataType aDataType) Empty constructor.TLcdSLDRule(String aName, TLcdSLDDescription aDescription, TLcdSLDGraphic aLegendGraphic, TLcdOGCFilter aOGCFilter, boolean aHasElseFilter, double aMinScaleDenominator, double aMaxScaleDenominator, ALcdSLDSymbolizer[] aSymbolizers) Constructor for given parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSymbolizer(ALcdSLDSymbolizer aSymbolizer) Adds a symbolizer.Returns the value of the property that maps to theDescriptionelement.Returns the value of the property that maps to theLegendGraphicelement.doubleReturns the value of the property that maps to theMaxScaleDenominatorelement.doubleReturns the value of the property that maps to theMinScaleDenominatorelement.getName()Returns the value of the property that maps to theNameelement.Returns the filter that will be applied to select instances of the feature type to be rendered by the symbolizers in this rule.Returns the value of the property that maps to theSymbolizerelement.getSymbolizer(int aIndex) Gets the symbolizer at a given position.intGets the symbolizers count.voidinsertSymbolizerAt(ALcdSLDSymbolizer aSymbolizer, int aIndex) Inserts a symbolizer in the list of symbolizers at the given index.booleanReturns whether this rule should act as an else filter.static TLcdSLDRule.Builder<TLcdSLDRule> Creates a new builder with the default values.voidremoveSymbolizer(ALcdSLDSymbolizer aSymbolizer) Removes a symbolizer.voidsetDescription(TLcdSLDDescription aValue) Sets the value of the property that maps to theDescriptionelement.voidsetElseFilter(boolean aHasElseFilter) Sets whether this rule has an else filter.voidsetLegendGraphic(TLcdSLDGraphic aValue) Sets the value of the property that maps to theLegendGraphicelement.voidsetMaxScaleDenominator(double aValue) Sets the value of the property that maps to theMaxScaleDenominatorelement.voidsetMinScaleDenominator(double aValue) Sets the value of the property that maps to theMinScaleDenominatorelement.voidSets the value of the property that maps to theNameelement.voidsetOGCFilter(TLcdOGCFilter aOGCFilter) Sets the filter that will be applied to select instances of the feature type to be rendered by the symbolizers in this rule.
-
Constructor Details
-
TLcdSLDRule
public TLcdSLDRule()Empty constructor.- See Also:
-
TLcdSLDRule
public TLcdSLDRule(String aName, TLcdSLDDescription aDescription, TLcdSLDGraphic aLegendGraphic, TLcdOGCFilter aOGCFilter, boolean aHasElseFilter, double aMinScaleDenominator, double aMaxScaleDenominator, ALcdSLDSymbolizer[] aSymbolizers) Constructor for given parameters.- Parameters:
aName- the given rule name.aDescription- the given rule description.aLegendGraphic- the given graphic for the legend.aOGCFilter- the given OGC filter.aHasElseFilter- the flag indicating an else filter. If true, the given OGC filter should then be null.aMinScaleDenominator- the given min scale denominator.aMaxScaleDenominator- the given max scale denominator.aSymbolizers- the given symbolizers that will be applied for this rule.- See Also:
-
TLcdSLDRule
Empty constructor.
-
-
Method Details
-
setOGCFilter
Sets the filter that will be applied to select instances of the feature type to be rendered by the symbolizers in this rule. If the filter passed is not null, hasElseFilter will be set to false.- See Also:
-
getOGCFilter
Returns the filter that will be applied to select instances of the feature type to be rendered by the symbolizers in this rule. The filter can be null.- Returns:
- the filter that will be applied to select instances of the feature type to be rendered by the symbolizers in this rule.
-
setElseFilter
public void setElseFilter(boolean aHasElseFilter) Sets whether this rule has an else filter. If set to true the OGCFilter will be nulled.- See Also:
-
isElseFilter
public boolean isElseFilter()Returns whether this rule should act as an else filter. -
getSymbolizerCount
public int getSymbolizerCount()Gets the symbolizers count.- Returns:
- the symbolizers count.
-
getSymbolizer
Gets the symbolizer at a given position.- Parameters:
aIndex- the index of the given position.- Returns:
- the symbolizer at a given position.
-
addSymbolizer
Adds a symbolizer.- Parameters:
aSymbolizer- the given symbolizer to be added.
-
removeSymbolizer
Removes a symbolizer.- Parameters:
aSymbolizer- the given symbolizer to be removed.
-
insertSymbolizerAt
Inserts a symbolizer in the list of symbolizers at the given index. All symbolizers which had an index higher than or equal to the index passed will be moved back one position.- Parameters:
aSymbolizer- the symbolizer to insert.aIndex- the index at which to enter the symbolizer. The index should be less than or equal to the value returned bygetSymbolizerCount().
-
newBuilder
Creates a new builder with the default values.- Returns:
- the new builder.
- Since:
- 2012.1
-
getName
Returns the value of the property that maps to theNameelement.- Returns:
- the value of the
NAME_PROPERTYproperty.
-
setName
Sets the value of the property that maps to theNameelement.- Parameters:
aValue- the value to set for theNAME_PROPERTYproperty.
-
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.
-
getLegendGraphic
Returns the value of the property that maps to theLegendGraphicelement.A small pictorial representation of this rule.
- Returns:
- the value of the
LEGEND_GRAPHIC_PROPERTYproperty.
-
setLegendGraphic
Sets the value of the property that maps to theLegendGraphicelement.A small pictorial representation of this rule.
- Parameters:
aValue- the value to set for theLEGEND_GRAPHIC_PROPERTYproperty.
-
getMinScaleDenominator
public double getMinScaleDenominator()Returns the value of the property that maps to theMinScaleDenominatorelement.The denominator for the maximum scale at which the rule should be applied. A min scale denominator of 10000 indicates that this rule should be applied for every scale for which the denominator is greater than 10000, i.e. for every scale smaller than 1:10000. This is an optional property. If it is not specified, this value defaults to `0.0`.
- Returns:
- the value of the
MIN_SCALE_DENOMINATOR_PROPERTYproperty.
-
setMinScaleDenominator
public void setMinScaleDenominator(double aValue) Sets the value of the property that maps to theMinScaleDenominatorelement.The denominator for the maximum scale at which the rule should be applied. A min scale denominator of 10000 indicates that this rule should be applied for every scale for which the denominator is greater than 10000, i.e. for every scale smaller than 1:10000. This is an optional property. If it is not specified, this value defaults to `0.0`.
- Parameters:
aValue- the value to set for theMIN_SCALE_DENOMINATOR_PROPERTYproperty.
-
getMaxScaleDenominator
public double getMaxScaleDenominator()Returns the value of the property that maps to theMaxScaleDenominatorelement.The denominator for the minimum scale at which the rule should be applied. A max scale denominator of 1E6 indicates that this rule should be applied for every scale for which the denominator is less than 1E6, i.e. for every scale greater than 1:1E6. This is an optional property. If it is not specified, this value defaults to `Infinity`.
- Returns:
- the value of the
MAX_SCALE_DENOMINATOR_PROPERTYproperty.
-
setMaxScaleDenominator
public void setMaxScaleDenominator(double aValue) Sets the value of the property that maps to theMaxScaleDenominatorelement.The denominator for the minimum scale at which the rule should be applied. A max scale denominator of 1E6 indicates that this rule should be applied for every scale for which the denominator is less than 1E6, i.e. for every scale greater than 1:1E6. This is an optional property. If it is not specified, this value defaults to `Infinity`.
- Parameters:
aValue- the value to set for theMAX_SCALE_DENOMINATOR_PROPERTYproperty.
-
getSymbolizer
Returns the value of the property that maps to theSymbolizerelement.- Returns:
- the value of the
SYMBOLIZER_PROPERTYproperty.
-