public static class TLcdSLDRasterSymbolizer.Builder<T> extends Object
Modifier and Type | Method and Description |
---|---|
TLcdSLDRasterSymbolizer.Builder<T> |
addColorMapEntry(Color aColor,
double aValue)
Adds an entry to the color map of this symbolizer.
|
T |
buildSymbolizer()
Builds the symbolizer with the set parameters.
|
TLcdSLDRasterSymbolizer.Builder<T> |
colorMap(TLcdSLDColorMap aColorMap)
Sets the color map of this symbolizer.
|
TLcdSLDRasterSymbolizer.Builder<T> |
gammaValue(double aGammaValue)
Sets the gamma value of this raster symbolizer.
|
TLcdSLDRasterSymbolizer.Builder<T> |
geometry(TLcdOGCFunction aGeometryFunction)
Specifies the geometry that is styled by this symbolizer.
|
TLcdSLDRasterSymbolizer.Builder<T> |
geometry(TLcdOGCPropertyName aGeometry)
Specifies the geometry that is styled by this symbolizer.
|
TLcdSLDRasterSymbolizer.Builder<T> |
geometry(TLcdSLDGeometry aGeometry)
Sets the geometry of the symbolizer.
|
TLcdSLDRasterSymbolizer.Builder<T> |
opacity(double aOpacity)
Sets the opacity of this raster symbolizer.
|
public TLcdSLDRasterSymbolizer.Builder<T> opacity(double aOpacity)
Sets the opacity of this raster symbolizer. If not set, an opacity of 1.0 will be used when building the symbolizer.
aOpacity
- An opacity between 0.0 and 1.0public TLcdSLDRasterSymbolizer.Builder<T> gammaValue(double aGammaValue)
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.
aGammaValue
- A gamma value >= 0.0.public TLcdSLDRasterSymbolizer.Builder<T> addColorMapEntry(Color aColor, double aValue)
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.
aColor
- The color that maps to aValueaValue
- A value in the domain of the raster data that will be
styledpublic TLcdSLDRasterSymbolizer.Builder<T> colorMap(TLcdSLDColorMap aColorMap)
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.
aColorMap
- The color map. Must not be null
public TLcdSLDRasterSymbolizer.Builder<T> geometry(TLcdOGCPropertyName aGeometry)
Specifies the geometry that is styled by this symbolizer.
This method must not be called when geometry(TLcdSLDGeometry)
or geometry(TLcdOGCFunction)
has already been called.
aGeometry
- A property name that points to a compatible geometry. Must not be null
TLcdOGCFilterFactory.property(TLcdDataType,
com.luciad.datamodel.TLcdDataProperty...)
public TLcdSLDRasterSymbolizer.Builder<T> geometry(TLcdOGCFunction aGeometryFunction)
Specifies the geometry that is styled by this symbolizer.
This method must not be called when geometry(TLcdSLDGeometry)
or geometry(TLcdOGCPropertyName)
has already been called.
aGeometryFunction
- A function that determines a compatible geometry. Must not be null
TLcdOGCFilterFactory.function(String, ILcdOGCExpression...)
public TLcdSLDRasterSymbolizer.Builder<T> geometry(TLcdSLDGeometry aGeometry)
Sets the geometry of the symbolizer.
This method must not be called when geometry(TLcdOGCPropertyName)
or geometry(TLcdOGCFunction)
has already been called.
aGeometry
- The geometry. Must not be null
public T 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.