Class TLspRadarVideoStyle.Builder<B extends TLspRadarVideoStyle.Builder<B>>

java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.realtime.lightspeed.radarvideo.TLspRadarVideoStyle.Builder<B>
Enclosing class:
TLspRadarVideoStyle

public static final class TLspRadarVideoStyle.Builder<B extends TLspRadarVideoStyle.Builder<B>> extends ALspStyle.Builder<B>
Builder used to create TLspRadarVideoStyle objects.
Since:
2014.1
  • Method Details

    • blipColor

      public B blipColor(Color aColor)
      Sets the blip color. The default is opaque green.
      Parameters:
      aColor - the blip color
      Returns:
      this
    • blipAfterglowColor

      public B blipAfterglowColor(Color aColor)
      Sets the afterglow color. The default is null.
      Parameters:
      aColor - the afterglow color, or null if afterglows should also use the primary blip color
      Returns:
      this
    • backgroundColor

      public B backgroundColor(Color aColor)
      Sets the background color. The default is black with 50% opacity.
      Parameters:
      aColor - the background color
      Returns:
      this
    • blipAfterglow

      public B blipAfterglow(double aAfterglow)
      Sets the blip afterglow duration. The default is 4 seconds. Note that the interpretation of this property depends on the afterglow mode.
      Parameters:
      aAfterglow - the afterglow duration for the blips
      Returns:
      this
    • blipAfterglowMode

      public B blipAfterglowMode(TLspRadarVideoStyle.AfterglowMode aMode)
      Determines how the afterglow duration is interpreted. If set to TLspRadarVideoStyle.AfterglowMode.ABSOLUTE, the afterglow is measured in seconds. If set to TLspRadarVideoStyle.AfterglowMode.RELATIVE, the afterglow is defined as a number of full 360 degree sweeps of the radar. The default is ABSOLUTE.
      Parameters:
      aMode - the interpretation of the afterglow duration (relative or absolute)
      Returns:
      this
    • amplitudeThreshold

      public B amplitudeThreshold(double aAmplitudeThreshold)
      Sets the minimum amplitude required for a blip to be displayed, normalized into [0, 1] range. The default is zero.
      Parameters:
      aAmplitudeThreshold - the blip amplitude threshold
      Returns:
      this
    • intensity

      public B intensity(double aIntensity)
      Sets the blip intensity. The default is 1.
      Parameters:
      aIntensity - the blip intensity
      Returns:
      this
    • antialiasingHint

      public B antialiasingHint(TLspRadarVideoStyle.AntialiasingHint aAntialiasingHint)
      Sets the amount of antialiasing applied to the radar video feed. The default is NONE.
      Parameters:
      aAntialiasingHint - the antialiasing quality
      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 TLspRadarVideoStyle.Builder<B>>
      Parameters:
      aStyle - the style to copy
      Returns:
      this
    • build

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