public static final class TLspRadarVideoStyle.Builder<B extends TLspRadarVideoStyle.Builder<B>> extends ALspStyle.Builder<B>
TLspRadarVideoStyle
objects.Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aStyle)
Sets all parameters on the builder based on the given style.
|
B |
amplitudeThreshold(double aAmplitudeThreshold)
Sets the minimum amplitude required for a blip to be displayed,
normalized into [0, 1] range.
|
B |
antialiasingHint(TLspRadarVideoStyle.AntialiasingHint aAntialiasingHint)
Sets the amount of antialiasing applied to the radar video feed.
|
B |
backgroundColor(Color aColor)
Sets the background color.
|
B |
blipAfterglow(double aAfterglow)
Sets the blip afterglow duration.
|
B |
blipAfterglowColor(Color aColor)
Sets the afterglow color.
|
B |
blipAfterglowMode(TLspRadarVideoStyle.AfterglowMode aMode)
Determines how the
afterglow duration is
interpreted. |
B |
blipColor(Color aColor)
Sets the blip color.
|
TLspRadarVideoStyle |
build()
Builds the style with the set parameters.
|
B |
intensity(double aIntensity)
Sets the blip intensity.
|
equals, hashCode
public B blipColor(Color aColor)
aColor
- the blip colorthis
public B blipAfterglowColor(Color aColor)
aColor
- the afterglow color, or null if afterglows should also use the primary blip color
this
public B backgroundColor(Color aColor)
aColor
- the background colorthis
public B blipAfterglow(double aAfterglow)
afterglow mode
.aAfterglow
- the afterglow duration for the blipsthis
public B blipAfterglowMode(TLspRadarVideoStyle.AfterglowMode aMode)
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
.aMode
- the interpretation of the afterglow duration (relative or absolute)this
public B amplitudeThreshold(double aAmplitudeThreshold)
aAmplitudeThreshold
- the blip amplitude thresholdthis
public B intensity(double aIntensity)
aIntensity
- the blip intensitythis
public B antialiasingHint(TLspRadarVideoStyle.AntialiasingHint aAntialiasingHint)
NONE
.aAntialiasingHint
- the antialiasing qualitythis
public B all(ALspStyle aStyle)
ALspStyle.Builder
all
in class ALspStyle.Builder<B extends TLspRadarVideoStyle.Builder<B>>
aStyle
- the style to copythis
public TLspRadarVideoStyle build()
ALspStyle.Builder
build
in class ALspStyle.Builder<B extends TLspRadarVideoStyle.Builder<B>>