Class TLspPinLineStyle

All Implemented Interfaces:
ILspEffectsHintStyle, ILspTexturedStyle, ILspWorldElevationStyle, ILspStyler

public class TLspPinLineStyle extends TLspLineStyle
Style that defines a pin from an object's anchor point to its label.

By default, the pin is a 1-pixel black solid line.

Construction of a pin style is done through the Builder design pattern mechanism.
Since:
2012.0
  • Constructor Details

    • TLspPinLineStyle

      protected TLspPinLineStyle(TLspPinLineStyle.Builder aBuilder)
      Creates a new style with the properties that are set on the builder
      Parameters:
      aBuilder - a builder which will be used to initialize this style.
  • Method Details

    • newBuilder

      public static TLspPinLineStyle.Builder<?> newBuilder()
      Creates a new builder with the default values.
      Returns:
      the new builder.
    • asBuilder

      public TLspPinLineStyle.Builder<?> asBuilder()
      Creates a new builder initialized with all the properties of this style.
      Overrides:
      asBuilder in class TLspLineStyle
      Returns:
      the new builder.
    • getPinEndPosition

      public TLspPinLineStyle.PinEndPosition getPinEndPosition()
      Returns the end position of the pin: the position where the pin connects to the label.
      Returns:
      the end position of the pin.
    • getPinVisibilityThreshold

      public int getPinVisibilityThreshold()
      Returns the threshold (in pixels) at which the pin of a label becomes invisible. See TLspPinLineStyle.Builder.pinVisibilityThreshold(int) for more information.
      Returns:
      the threshold (in pixels) at which the pin of a label becomes invisible.
      Since:
      2019.0
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class TLspLineStyle
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class TLspLineStyle