Class TLspDensityLayerBuilder

java.lang.Object
com.luciad.view.lightspeed.layer.ALspLayerBuilder
com.luciad.view.lightspeed.layer.density.TLspDensityLayerBuilder

@Deprecated public final class TLspDensityLayerBuilder extends ALspLayerBuilder
Deprecated.
The TLspLayer and its corresponding builder TLspShapeLayerBuilder can deal with density styles. Consult the class javadoc of TLspShapePainter for more information on how to use density styling with a regular shape layer.
Builder for creating ILspLayer instances that visualize density plots of geometric shapes. This builder is the recommended way of creating new density plots of a model that contains ILcdShape elements.

This layer builder uses the following default settings to allow for easy layer setup, they can all be overridden using the methods available on this builder:

  • Default styles for points, curves and surfaces are used if none are specified. The actual styling parameters are taken from TLspDensityPointStyle, TLspDensityLineStyle and TLspDensityFillStyle.
  • Default style for the false color index
  • Labeling is disabled.
  • The model descriptor display name is used as layer label.
  • Culling is enabled.
  • Density plots are not draped
Selection and editing are always disabled. Aside from ALspDensityStyle instances, the painter also accepts TLspIconStyle, TLspLineStyle, TLspWorldSizedLineStyle, and TLspFillStyle. Note that the style should use gray-scale colors.
Since:
2012.0
  • Method Details

    • newBuilder

      public static TLspDensityLayerBuilder newBuilder()
      Deprecated.
      Returns:
      a new layer builder with the default settings.
    • newBuilder

      public static TLspDensityLayerBuilder newBuilder(ILspLayer.LayerType aLayerType)
      Deprecated.
      Creates a TLspDensityLayerBuilder.newBuilder with the given layer type.

      When creating a layer for use with dynamic data, it is highly recommended to use the ILspLayer.LayerType.REALTIME layer type, since it provides various performance enhancements for dynamic data. Failing to do so may result in a non-negligible performance cost.

      Parameters:
      aLayerType - the layer type for the layer built by this builder
      Returns:
      a new layer builder with the given layer type
    • build

      Deprecated.
      Description copied from class: ALspLayerBuilder

      Creates a new layer instance.

      Specified by:
      build in class ALspLayerBuilder
      Returns:
      the new layer instance
    • labelEditable

      public TLspDensityLayerBuilder labelEditable(boolean aEditable)
      Deprecated.
      Sets whether the labels of the layer should be editable. A default label editor will be used if no label editor is provided.
      Parameters:
      aEditable - whether the labels of the layer should be editable
      Returns:
      this
      See Also:
    • labeled

      public TLspDensityLayerBuilder labeled()
      Deprecated.
      Sets whether to show labels with a default style. The Object.toString() method will be used to retrieve the label text.
      Returns:
      this
    • bodyStyler

      public TLspDensityLayerBuilder bodyStyler(ILspStyler aBodyStyler)
      Deprecated.
      Sets the given body styler for the given paint state.

      The following styles are supported:

      Parameters:
      aBodyStyler - the new body styler for the layer
      Returns:
      this
    • bodyStyles

      public TLspDensityLayerBuilder bodyStyles(ALspStyle... aBodyStyles)
      Deprecated.
      Sets the given body styles.

      The following styles are supported:

      Parameters:
      aBodyStyles - the new body styles for the layer
      Returns:
      this
    • labelStyler

      public TLspDensityLayerBuilder labelStyler(TLspPaintState aPaintState, ILspStyler aLabelStyler)
      Deprecated.
      Sets the given label styles for the given paint state.

      If you need control over other labeling aspects such as positioning or priorities, use an ALspLabelStyler.

      The following styles are supported:

    • ALspLabelTextProviderStyle to specify which text to use (default is toString()). See also TLspDataObjectLabelTextProviderStyle.
    • TLspLabelBoxStyle to specify fill color or frames
    • TLspLabelOpacityStyle to specify the opacity and modulation color.
    • TLspPinLineStyle to draw pins for the labels (see TLspLabelPainter)