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 Details

    • Builder

      protected Builder()
      Default constructor.
  • Method Details

    • shader

      public B shader(ALspHypsometricShader aShader)
      Sets the hypsometric shader that will used to compute the hypsometric values.
      Parameters:
      aShader - the hypsometric shader
      Returns:
      this
    • colorModel

      public B colorModel(IndexColorModel aColorModel)
      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 the TLcdJetIndexColorModelFactory to create a color model.

      Parameters:
      aColorModel - the color model that maps hypsometric values to colors
      Returns:
      this
    • unknownValueColor

      public B unknownValueColor(Color aColor)
      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

      public B all(ALspStyle aStyle)
      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 class ALspStyle.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 class ALspStyle.Builder<B extends TLspHypsometricShadingStyle.Builder<B>>
      Returns:
      the resulting style