public static class TLcdSLDRule.Builder<T> extends Object
Modifier and Type | Method and Description |
---|---|
TLcdSLDLineSymbolizer.Builder<TLcdSLDRule.Builder<T>> |
addLineSymbolizer()
Starts the definition of a new line symbolizer which is to be added to
the rule.
|
TLcdSLDPointSymbolizer.Builder<TLcdSLDRule.Builder<T>> |
addPointSymbolizer()
Starts the definition of a new point symbolizer which is to be added to
the rule.
|
TLcdSLDPolygonSymbolizer.Builder<TLcdSLDRule.Builder<T>> |
addPolygonSymbolizer()
Starts the definition of a new polygon symbolizer which is to be added to
the rule.
|
TLcdSLDRasterSymbolizer.Builder<TLcdSLDRule.Builder<T>> |
addRasterSymbolizer()
Starts the definition of a new raster symbolizer which is to be added to
the rule.
|
TLcdSLDRule.Builder<T> |
addSymbolizer(ALcdSLDSymbolizer aSymbolizer)
Adds the given symbolizer directly to this rule.
|
TLcdSLDTextSymbolizer.Builder<TLcdSLDRule.Builder<T>> |
addTextSymbolizer()
Starts the definition of a new text symbolizer which is to be added to
the rule.
|
T |
buildRule()
Builds the rule with the set parameters.
|
TLcdSLDRule.Builder<T> |
elseFilter()
Indicates that this is an 'else' filter.
|
TLcdSLDRule.Builder<T> |
filter(ILcdOGCCondition aCondition)
Specifies the condition with which a filter should be created.
|
TLcdSLDRule.Builder<T> |
filter(TLcdOGCFilter aFilter)
Specifies the filter for this rule.
|
TLcdSLDRule.Builder<T> |
maxScaleDenominator(double aMaxScale)
Sets the maximum scale denominator necessary for which the rule still
applies.
|
TLcdSLDRule.Builder<T> |
minScaleDenominator(double aMinScale)
Sets the minimum scale denominator necessary for the rule to apply.
|
public TLcdSLDRule.Builder<T> filter(TLcdOGCFilter aFilter)
Specifies the filter for this rule. A rule without a filter applies to all objects.
This method must not be called when filter(ILcdOGCCondition)
or elseFilter()
has already been called.
aFilter
- The filter. Must not be null
TLcdOGCFilterFactory
public TLcdSLDRule.Builder<T> filter(ILcdOGCCondition aCondition)
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)
or elseFilter()
has already been called.
aCondition
- The condition for the filter. Must not be null
public TLcdSLDRule.Builder<T> elseFilter()
Indicates that this is an 'else' filter.
This method must not be called when filter(com.luciad.ogc.filter.model.TLcdOGCFilter)
or filter(ILcdOGCCondition)
has already been called.
public TLcdSLDPolygonSymbolizer.Builder<TLcdSLDRule.Builder<T>> 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.
public TLcdSLDLineSymbolizer.Builder<TLcdSLDRule.Builder<T>> 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.
public TLcdSLDRasterSymbolizer.Builder<TLcdSLDRule.Builder<T>> 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.
public TLcdSLDPointSymbolizer.Builder<TLcdSLDRule.Builder<T>> 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.
public TLcdSLDTextSymbolizer.Builder<TLcdSLDRule.Builder<T>> 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.
public TLcdSLDRule.Builder<T> addSymbolizer(ALcdSLDSymbolizer aSymbolizer)
Adds the given symbolizer directly to this rule.
The rule needs at least one symbolizer before it can be constructed.
aSymbolizer
- The symbolizer to add. Must not be null
public TLcdSLDRule.Builder<T> minScaleDenominator(double aMinScale)
aMinScale
- A valid scale denominator. For instance 25000 or 100000. Must not be negativeALcdSLDRule.getMinScaleDenominator()
public TLcdSLDRule.Builder<T> maxScaleDenominator(double aMaxScale)
aMaxScale
- A valid scale denominator. For instance 25000 or 100000. Must not be negativeALcdSLDRule.getMaxScaleDenominator()
public T 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.