Class TLspPinLineStyle.Builder<B extends 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 Details

    • Builder

      protected Builder()
      Default constructor.
  • Method Details

    • pinEndPosition

      public B pinEndPosition(TLspPinLineStyle.PinEndPosition aPinEndPosition)
      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

      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.

      Returns:
      this
      Since:
      2019.0
    • all

      public B all(ALspStyle aLineStyle)
      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.

      Overrides:
      all in class TLspLineStyle.Builder<B extends TLspPinLineStyle.Builder<B>>
      Parameters:
      aLineStyle - the style to copy
      Returns:
      this
    • build

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