Class TLcdSLDRasterSymbolizer.Builder<T>
- Enclosing class:
TLcdSLDRasterSymbolizer
- Since:
- 2012.1
-
Method Summary
Modifier and TypeMethodDescriptionaddColorMapEntry
(Color aColor, double aValue) Adds an entry to the color map of this symbolizer.Builds the symbolizer with the set parameters.colorMap
(TLcdSLDColorMap aColorMap) Sets the color map of this symbolizer.gammaValue
(double aGammaValue) Sets the gamma value of this raster symbolizer.geometry
(TLcdOGCFunction aGeometryFunction) Specifies the geometry that is styled by this symbolizer.geometry
(TLcdOGCPropertyName aGeometry) Specifies the geometry that is styled by this symbolizer.geometry
(TLcdSLDGeometry aGeometry) Sets the geometry of the symbolizer.opacity
(double aOpacity) Sets the opacity of this raster symbolizer.
-
Method Details
-
opacity
Sets the opacity of this raster symbolizer. If not set, an opacity of 1.0 will be used when building the symbolizer.
- Parameters:
aOpacity
- An opacity between 0.0 and 1.0- Returns:
- This builder
-
gammaValue
Sets the gamma value of this raster symbolizer. If not set, a gamma value of 1.0 will be used when building the symbolizer.
A value of 1.0 (the default) leaves the contrast unchanged. A value larger than 1.0 enhances the contrast of dark colors by making them brighter, while a value smaller than 1.0 enhances the contrast of bright colors by making them darker.
- Parameters:
aGammaValue
- A gamma value >= 0.0.- Returns:
- This builder
- Since:
- 2016.1
-
addColorMapEntry
Adds an entry to the color map of this symbolizer. If no entries are specified, then there will be no color map.
This method must not be called when
colorMap(TLcdSLDColorMap)
has already been called.- Parameters:
aColor
- The color that maps to aValueaValue
- A value in the domain of the raster data that will be styled- Returns:
- This builder
-
colorMap
Sets the color map of this symbolizer. If no color map is specified, then there will be no color map.
This method must not be called when
addColorMapEntry(java.awt.Color, double)
has already been called.- Parameters:
aColorMap
- The color map. Must not benull
- Returns:
- This builder
-
geometry
Specifies the geometry that is styled by this symbolizer.
This method must not be called when
geometry(TLcdSLDGeometry)
orgeometry(TLcdOGCFunction)
has already been called.- Parameters:
aGeometry
- A property name that points to a compatible geometry. Must not benull
- Returns:
- this builder
- See Also:
-
geometry
Specifies the geometry that is styled by this symbolizer.
This method must not be called when
geometry(TLcdSLDGeometry)
orgeometry(TLcdOGCPropertyName)
has already been called.- Parameters:
aGeometryFunction
- A function that determines a compatible geometry. Must not benull
- Returns:
- this builder
- Since:
- 2020.1
- See Also:
-
geometry
Sets the geometry of the symbolizer.
This method must not be called when
geometry(TLcdOGCPropertyName)
orgeometry(TLcdOGCFunction)
has already been called.- Parameters:
aGeometry
- The geometry. Must not benull
- Returns:
- This builder.
-
buildSymbolizer
Builds the symbolizer 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 symbolizer
-