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 Summary
Modifier and TypeMethodDescriptionSets all parameters on the builder based on the given style.amplitudeThreshold
(double aAmplitudeThreshold) Sets the minimum amplitude required for a blip to be displayed, normalized into [0, 1] range.antialiasingHint
(TLspRadarVideoStyle.AntialiasingHint aAntialiasingHint) Sets the amount of antialiasing applied to the radar video feed.backgroundColor
(Color aColor) Sets the background color.blipAfterglow
(double aAfterglow) Sets the blip afterglow duration.blipAfterglowColor
(Color aColor) Sets the afterglow color.Determines how theafterglow duration
is interpreted.Sets the blip color.build()
Builds the style with the set parameters.intensity
(double aIntensity) Sets the blip intensity.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Method Details
-
blipColor
Sets the blip color. The default is opaque green.- Parameters:
aColor
- the blip color- Returns:
this
-
blipAfterglowColor
Sets the afterglow color. The default is null.- Parameters:
aColor
- the afterglow color, or null if afterglows should also use theprimary blip color
- Returns:
this
-
backgroundColor
Sets the background color. The default is black with 50% opacity.- Parameters:
aColor
- the background color- Returns:
this
-
blipAfterglow
Sets the blip afterglow duration. The default is 4 seconds. Note that the interpretation of this property depends on theafterglow mode
.- Parameters:
aAfterglow
- the afterglow duration for the blips- Returns:
this
-
blipAfterglowMode
Determines how theafterglow duration
is interpreted. If set toTLspRadarVideoStyle.AfterglowMode.ABSOLUTE
, the afterglow is measured in seconds. If set toTLspRadarVideoStyle.AfterglowMode.RELATIVE
, the afterglow is defined as a number of full 360 degree sweeps of the radar. The default isABSOLUTE
.- Parameters:
aMode
- the interpretation of the afterglow duration (relative or absolute)- Returns:
this
-
amplitudeThreshold
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
Sets the blip intensity. The default is 1.- Parameters:
aIntensity
- the blip intensity- Returns:
this
-
antialiasingHint
Sets the amount of antialiasing applied to the radar video feed. The default isNONE
.- Parameters:
aAntialiasingHint
- the antialiasing quality- 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 TLspRadarVideoStyle.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 TLspRadarVideoStyle.Builder<B>>
- Returns:
- the resulting style
-