public class TLcdSLDRule extends TLcdDataObject
Modifier and Type | Class and Description |
---|---|
static class |
TLcdSLDRule.Builder<T>
A builder for SLD rules.
|
Constructor and Description |
---|
TLcdSLDRule()
Empty constructor.
|
TLcdSLDRule(String aName,
TLcdSLDDescription aDescription,
TLcdSLDGraphic aLegendGraphic,
TLcdOGCFilter aOGCFilter,
boolean aHasElseFilter,
double aMinScaleDenominator,
double aMaxScaleDenominator,
ALcdSLDSymbolizer[] aSymbolizers)
Constructor for given parameters.
|
TLcdSLDRule(TLcdDataType aDataType)
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSymbolizer(ALcdSLDSymbolizer aSymbolizer)
Adds a symbolizer.
|
TLcdSLDDescription |
getDescription()
Returns the value of the property that maps to the
Description element. |
TLcdSLDGraphic |
getLegendGraphic()
Returns the value of the property that maps to the
LegendGraphic element. |
double |
getMaxScaleDenominator()
Returns the value of the property that maps to the
MaxScaleDenominator element. |
double |
getMinScaleDenominator()
Returns the value of the property that maps to the
MinScaleDenominator element. |
String |
getName()
Returns the value of the property that maps to the
Name element. |
TLcdOGCFilter |
getOGCFilter()
Returns the filter that will be applied to select instances of the feature type to be rendered
by the symbolizers in this rule.
|
List<ALcdSLDSymbolizer> |
getSymbolizer()
Returns the value of the property that maps to the
Symbolizer element. |
ALcdSLDSymbolizer |
getSymbolizer(int aIndex)
Gets the symbolizer at a given position.
|
int |
getSymbolizerCount()
Gets the symbolizers count.
|
void |
insertSymbolizerAt(ALcdSLDSymbolizer aSymbolizer,
int aIndex)
Inserts a symbolizer in the list of symbolizers at the given index.
|
boolean |
isElseFilter()
Returns whether this rule should act as an else filter.
|
static TLcdSLDRule.Builder<TLcdSLDRule> |
newBuilder()
Creates a new builder with the default values.
|
void |
removeSymbolizer(ALcdSLDSymbolizer aSymbolizer)
Removes a symbolizer.
|
void |
setDescription(TLcdSLDDescription aValue)
Sets the value of the property that maps to the
Description element. |
void |
setElseFilter(boolean aHasElseFilter)
Sets whether this rule has an else filter.
|
void |
setLegendGraphic(TLcdSLDGraphic aValue)
Sets the value of the property that maps to the
LegendGraphic element. |
void |
setMaxScaleDenominator(double aValue)
Sets the value of the property that maps to the
MaxScaleDenominator element. |
void |
setMinScaleDenominator(double aValue)
Sets the value of the property that maps to the
MinScaleDenominator element. |
void |
setName(String aValue)
Sets the value of the property that maps to the
Name element. |
void |
setOGCFilter(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.
|
public TLcdSLDRule()
newBuilder()
public TLcdSLDRule(String aName, TLcdSLDDescription aDescription, TLcdSLDGraphic aLegendGraphic, TLcdOGCFilter aOGCFilter, boolean aHasElseFilter, double aMinScaleDenominator, double aMaxScaleDenominator, ALcdSLDSymbolizer[] aSymbolizers)
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.newBuilder()
public TLcdSLDRule(TLcdDataType aDataType)
public void setOGCFilter(TLcdOGCFilter aOGCFilter)
setElseFilter(boolean)
public TLcdOGCFilter getOGCFilter()
public void setElseFilter(boolean aHasElseFilter)
public boolean isElseFilter()
public int getSymbolizerCount()
public ALcdSLDSymbolizer getSymbolizer(int aIndex)
aIndex
- the index of the given position.public void addSymbolizer(ALcdSLDSymbolizer aSymbolizer)
aSymbolizer
- the given symbolizer to be added.public void removeSymbolizer(ALcdSLDSymbolizer aSymbolizer)
aSymbolizer
- the given symbolizer to be removed.public void insertSymbolizerAt(ALcdSLDSymbolizer aSymbolizer, int aIndex)
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 by getSymbolizerCount()
.public static TLcdSLDRule.Builder<TLcdSLDRule> newBuilder()
public String getName()
Name
element.NAME_PROPERTY
property.public void setName(String aValue)
Name
element.aValue
- the value to set for the NAME_PROPERTY
property.public TLcdSLDDescription getDescription()
Description
element.
A "Description" gives human-readable descriptive information for the object it is included within.
DESCRIPTION_PROPERTY
property.public void setDescription(TLcdSLDDescription aValue)
Description
element.
A "Description" gives human-readable descriptive information for the object it is included within.
aValue
- the value to set for the DESCRIPTION_PROPERTY
property.public TLcdSLDGraphic getLegendGraphic()
LegendGraphic
element.
A small pictorial representation of this rule.
LEGEND_GRAPHIC_PROPERTY
property.public void setLegendGraphic(TLcdSLDGraphic aValue)
LegendGraphic
element.
A small pictorial representation of this rule.
aValue
- the value to set for the LEGEND_GRAPHIC_PROPERTY
property.public double getMinScaleDenominator()
MinScaleDenominator
element.
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`.
MIN_SCALE_DENOMINATOR_PROPERTY
property.public void setMinScaleDenominator(double aValue)
MinScaleDenominator
element.
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`.
aValue
- the value to set for the MIN_SCALE_DENOMINATOR_PROPERTY
property.public double getMaxScaleDenominator()
MaxScaleDenominator
element.
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`.
MAX_SCALE_DENOMINATOR_PROPERTY
property.public void setMaxScaleDenominator(double aValue)
MaxScaleDenominator
element.
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`.
aValue
- the value to set for the MAX_SCALE_DENOMINATOR_PROPERTY
property.public List<ALcdSLDSymbolizer> getSymbolizer()
Symbolizer
element.SYMBOLIZER_PROPERTY
property.