Class TLcdSLDRule.Builder<T>
- Enclosing class:
TLcdSLDRule
- Since:
- 2012.1
-
Method Summary
Modifier and TypeMethodDescriptionStarts the definition of a new line symbolizer which is to be added to the rule.Starts the definition of a new point symbolizer which is to be added to the rule.Starts the definition of a new polygon symbolizer which is to be added to the rule.Starts the definition of a new raster symbolizer which is to be added to the rule.addSymbolizer
(ALcdSLDSymbolizer aSymbolizer) Adds the given symbolizer directly to this rule.Starts the definition of a new text symbolizer which is to be added to the rule.Builds the rule with the set parameters.Indicates that this is an 'else' filter.filter
(ILcdOGCCondition aCondition) Specifies the condition with which a filter should be created.filter
(TLcdOGCFilter aFilter) Specifies the filter for this rule.maxScaleDenominator
(double aMaxScale) Sets the maximum scale denominator necessary for which the rule still applies.minScaleDenominator
(double aMinScale) Sets the minimum scale denominator necessary for the rule to apply.
-
Method Details
-
filter
Specifies the filter for this rule. A rule without a filter applies to all objects.
This method must not be called when
filter(ILcdOGCCondition)
orelseFilter()
has already been called.- Parameters:
aFilter
- The filter. Must not benull
- Returns:
- this builder
- See Also:
-
filter
Specifies the condition with which a filter should be created. A rule without a filter applies to all objects.
This method must not be called when
filter(com.luciad.ogc.filter.model.TLcdOGCFilter)
orelseFilter()
has already been called.- Parameters:
aCondition
- The condition for the filter. Must not benull
- Returns:
- this builder
-
elseFilter
Indicates that this is an 'else' filter.
This method must not be called when
filter(com.luciad.ogc.filter.model.TLcdOGCFilter)
orfilter(ILcdOGCCondition)
has already been called.- Returns:
- this builder
-
addPolygonSymbolizer
Starts the definition of a new polygon symbolizer which is to be added to the rule. End creation of the symbolizer by calling
TLcdSLDPolygonSymbolizer.Builder.buildSymbolizer()
to return this rule builder.The rule needs at least one symbolizer before it can be constructed.
- Returns:
- A builder for an SLD polygon symbolizer.
-
addLineSymbolizer
Starts the definition of a new line symbolizer which is to be added to the rule. End creation of the symbolizer by calling
TLcdSLDLineSymbolizer.Builder.buildSymbolizer()
to return this rule builder.The rule needs at least one symbolizer before it can be constructed.
- Returns:
- A builder for an SLD line symbolizer.
-
addRasterSymbolizer
Starts the definition of a new raster symbolizer which is to be added to the rule. End creation of the symbolizer by calling
TLcdSLDRasterSymbolizer.Builder.buildSymbolizer()
to return this rule builder.The rule needs at least one symbolizer before it can be constructed.
- Returns:
- A builder for an SLD raster symbolizer.
-
addPointSymbolizer
Starts the definition of a new point symbolizer which is to be added to the rule. End creation of the symbolizer by calling
TLcdSLDPointSymbolizer.Builder.buildSymbolizer()
to return this rule builder.The rule needs at least one symbolizer before it can be constructed.
- Returns:
- A builder for an SLD point symbolizer.
-
addTextSymbolizer
Starts the definition of a new text symbolizer which is to be added to the rule. End creation of the symbolizer by calling
TLcdSLDPointSymbolizer.Builder.buildSymbolizer()
to return this rule builder.The rule needs at least one symbolizer before it can be constructed.
- Returns:
- A builder for an SLD text symbolizer.
-
addSymbolizer
Adds the given symbolizer directly to this rule.
The rule needs at least one symbolizer before it can be constructed.
- Parameters:
aSymbolizer
- The symbolizer to add. Must not benull
- Returns:
- this builder.
-
minScaleDenominator
Sets the minimum scale denominator necessary for the rule to apply.- Parameters:
aMinScale
- A valid scale denominator. For instance 25000 or 100000. Must not be negative- Returns:
- this builder
- See Also:
-
maxScaleDenominator
Sets the maximum scale denominator necessary for which the rule still applies.- Parameters:
aMaxScale
- A valid scale denominator. For instance 25000 or 100000. Must not be negative- Returns:
- this builder
- See Also:
-
buildRule
Builds the rule with the set parameters.
This method can only be called once. When you used the builder to build an instance, the builder is no longer valid and should be thrown away.
- Returns:
- the resulting rule
-