Class TLspHypsometricShadingStyle.Builder<B extends TLspHypsometricShadingStyle.Builder<B>>
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.tea.lightspeed.hypsometry.TLspHypsometricShadingStyle.Builder<B>
- Enclosing class:
TLspHypsometricShadingStyle
public static class TLspHypsometricShadingStyle.Builder<B extends TLspHypsometricShadingStyle.Builder<B>>
extends ALspStyle.Builder<B>
Builder for hypsometric shading styles.
To create a hypsometric shading style you need to specify:
- the shader: this determines what type of hypsometric computation is performed
- the color model: this determines how the hypsometric values are mapped to colors, you
can use a
color model factory
to create them
- Since:
- 2012.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets all parameters on the builder based on the given style.build()
Builds the style with the set parameters.colorModel
(IndexColorModel aColorModel) Sets the initial color model that will be use to map the hypsometric values to colors.shader
(ALspHypsometricShader aShader) Sets the hypsometric shader that will used to compute the hypsometric values.unknownValueColor
(Color aColor) Returns color that is used for hypsometric values that are unknown.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Constructor Details
-
Builder
protected Builder()Default constructor.
-
-
Method Details
-
shader
Sets the hypsometric shader that will used to compute the hypsometric values.- Parameters:
aShader
- the hypsometric shader- Returns:
this
-
colorModel
Sets the initial color model that will be use to map the hypsometric values to colors. The minimum and maximum hypsometric values will be mapped to respectively the first and last color of the color model. You can use theTLcdJetIndexColorModelFactory
to create a color model.- Parameters:
aColorModel
- the color model that maps hypsometric values to colors- Returns:
this
-
unknownValueColor
Returns color that is used for hypsometric values that are unknown. The hypsometric values are typically unknown when some elevation data is unknown. The default value is a transparent color.- Parameters:
aColor
- the color that is used for hypsometric values that are unknown- Returns:
this
-
all
Description copied from class:ALspStyle.Builder
Sets all parameters on the builder based on the given style. This is useful for example to create a new style that has almost all properties equal to another style.- Specified by:
all
in classALspStyle.Builder<B extends TLspHypsometricShadingStyle.Builder<B>>
- Parameters:
aStyle
- the style to copy- Returns:
this
-
build
Description copied from class:ALspStyle.Builder
Builds the style with the set parameters.- Specified by:
build
in classALspStyle.Builder<B extends TLspHypsometricShadingStyle.Builder<B>>
- Returns:
- the resulting style
-