public static class TLspPinLineStyle.Builder<B extends TLspPinLineStyle.Builder<B>> extends TLspLineStyle.Builder<B>
See TLspLineStyle for examples on how to use this style.
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aLineStyle)
Sets all parameters on the builder based on the given style.
|
TLspPinLineStyle |
build()
Builds the style with the set parameters.
|
B |
pinEndPosition(TLspPinLineStyle.PinEndPosition aPinEndPosition)
Sets the end position of the pin: the position where the pin connects to the label.
|
B |
pinVisibilityThreshold(int aPinVisibilityThreshold)
Sets the threshold value at which the pin becomes invisible.
|
blendOverlap, blendOverlap, color, dashPattern, effectsHints, elevationMode, opacity, pixelOffset, repeatTexture, rotateTexture, scaleTexture, texture, textureCoordinatesMode, textureInterpolationType, textureMatrix, textureObject, toString, translateTexture, width, zOrder
equals, hashCode
public B pinEndPosition(TLspPinLineStyle.PinEndPosition aPinEndPosition)
aPinEndPosition
- the pin end positionthis
public B pinVisibilityThreshold(int aPinVisibilityThreshold)
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.
this
public B all(ALspStyle aLineStyle)
ALspStyle.Builder
all
in class TLspLineStyle.Builder<B extends TLspPinLineStyle.Builder<B>>
aLineStyle
- the style to copythis
public TLspPinLineStyle build()
ALspStyle.Builder
build
in interface ILspTexturedStyle.Builder
build
in class TLspLineStyle.Builder<B extends TLspPinLineStyle.Builder<B>>