Class PinStyle

java.lang.Object
com.luciad.layers.styles.PinStyle
All Implemented Interfaces:
AutoCloseable

public final class PinStyle extends Object implements AutoCloseable
This class contains styling properties that can be used to configure pins for labels, see FeatureCanvas.LabelDrawCommand#pinStyle.

You can create instances of this class using PinStyle#newBuilder.

  • Method Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class Object
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • newBuilder Link icon

      @NotNull public static PinStyle.Builder newBuilder()
      Returns a new builder for creating a PinStyle.
      Returns:
      a new builder for creating a PinStyle.
    • getEndPosition Link icon

      @NotNull public PinStyle.EndPosition getEndPosition()
      Returns the location where the pin line connects to the label.
      Returns:
      the location where the pin line connects to the label.
    • getVisibilityThreshold Link icon

      public double getVisibilityThreshold()
      Returns the number of pixels that determine the visibility of a pin line.

      If the pin line length is smaller than this value, it will be discarded.

      Returns:
      the number of pixels that determine the visibility of a pin line.
    • getLineStyle Link icon

      @NotNull public LineStyle getLineStyle()
      Returns the line style used to paint the pin.
      Returns:
      the line style used to paint the pin
    • asBuilder Link icon

      @NotNull public PinStyle.Builder asBuilder()
      Returns a PinStyle builder that has all properties of this PinStyle.
      Returns:
      a PinStyle builder that has all properties of this PinStyle.