Package com.luciad.view.lightspeed.style
Class TLspPinLineStyle.Builder<B extends TLspPinLineStyle.Builder<B>>
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.style.TLspLineStyle.Builder<B>
com.luciad.view.lightspeed.style.TLspPinLineStyle.Builder<B>
- All Implemented Interfaces:
ILspEffectsHintStyle.Builder,ILspTexturedStyle.Builder,ILspWorldElevationStyle.Builder
- Enclosing class:
TLspPinLineStyle
public static class TLspPinLineStyle.Builder<B extends TLspPinLineStyle.Builder<B>>
extends TLspLineStyle.Builder<B>
Builder for pin line styles. The default pin line style is a
black 1-pixel wide solid line.
See TLspLineStyle for examples on how to use this style.
- Since:
- 2012.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets all parameters on the builder based on the given style.build()Builds the style with the set parameters.pinEndPosition(TLspPinLineStyle.PinEndPosition aPinEndPosition) Sets the end position of the pin: the position where the pin connects to the label.pinVisibilityThreshold(int aPinVisibilityThreshold) Sets the threshold value at which the pin becomes invisible.Methods inherited from class com.luciad.view.lightspeed.style.TLspLineStyle.Builder
blendOverlap, blendOverlap, color, dashPattern, effectsHints, elevationMode, opacity, pixelOffset, repeatTexture, rotateTexture, scaleTexture, texture, textureCoordinatesMode, textureInterpolationType, textureMatrix, textureObject, toString, translateTexture, width, zOrderMethods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Constructor Details
-
Builder
protected Builder()Default constructor.
-
-
Method Details
-
pinEndPosition
Sets the end position of the pin: the position where the pin connects to the label.- Parameters:
aPinEndPosition- the pin end position- Returns:
this
-
pinVisibilityThreshold
Sets the threshold value at which the pin becomes invisible. This threshold value is a distance in pixels between the start and end points of the pin. For example: when this value is 3, and the distance between the pin start point and the label is only 2, then the pin of that label will not be painted.
When this value is 0, the pin will never be made invisible.
The default value is 33.
- Returns:
this- Since:
- 2019.0
-
all
Description copied from class:ALspStyle.BuilderSets 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.- Overrides:
allin classTLspLineStyle.Builder<B extends TLspPinLineStyle.Builder<B>>- Parameters:
aLineStyle- the style to copy- Returns:
this
-
build
Description copied from class:ALspStyle.BuilderBuilds the style with the set parameters.- Specified by:
buildin interfaceILspTexturedStyle.Builder- Overrides:
buildin classTLspLineStyle.Builder<B extends TLspPinLineStyle.Builder<B>>- Returns:
- the resulting style
-