Class ALspDensityStyle.Builder<B extends ALspDensityStyle.Builder<B>>

java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.style.ALspDensityStyle.Builder<B>
All Implemented Interfaces:
ILspWorldElevationStyle.Builder
Direct Known Subclasses:
ALspSoftDensityStyle.Builder, TLspDensityFillStyle.Builder
Enclosing class:
ALspDensityStyle

public abstract static class ALspDensityStyle.Builder<B extends ALspDensityStyle.Builder<B>> extends ALspStyle.Builder<B> implements ILspWorldElevationStyle.Builder
Builder used to create density styles.
Since:
2012.0
  • Method Details

    • 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 ALspDensityStyle.Builder<B>>
      Parameters:
      aStyle - the style to copy
      Returns:
      this
    • weight

      public B weight(float aWeight)
      Sets the weight of this style's contribution to the density plot. The default value is 1, meaning that each object which uses this style increments the density value by 1. The weight value must be between 0 and 1, with 0 meaning that objects do not contribute to the density plot at all. If needed, TLspIndexColorModelStyle.getScaleFactor() can be used to scale the range of the density values.
      Parameters:
      aWeight - the weight of this style's contribution to the density plot, between 0 and 1
      Returns:
      this
    • elevationMode

      public B elevationMode(ILspWorldElevationStyle.ElevationMode aMode)
      Description copied from interface: ILspWorldElevationStyle.Builder
      Specifies the elevation mode. The default mode depends on the specific implementation.
      Specified by:
      elevationMode in interface ILspWorldElevationStyle.Builder
      Parameters:
      aMode -
      Returns:
      this
    • build

      public abstract ALspDensityStyle build()
      Description copied from class: ALspStyle.Builder
      Builds the style with the set parameters.
      Specified by:
      build in class ALspStyle.Builder<B extends ALspDensityStyle.Builder<B>>
      Returns:
      the resulting style