Enum Class LabelLineConnection

java.lang.Object
java.lang.Enum<LabelLineConnection>
com.esri.arcgisruntime.mapping.labeling.LabelLineConnection
All Implemented Interfaces:
Serializable, Comparable<LabelLineConnection>, Constable

public enum LabelLineConnection extends Enum<LabelLineConnection>
The strategy for whether line features with the same label, and matching end vertices, should be joined before sharing a label.
Since:
100.11.0
  • Enum Constant Details

    • AUTOMATIC

      public static final LabelLineConnection AUTOMATIC
      The default approach for connectable features is to connect them (MINIMIZE_LABELS).

      This value corresponds to no value being specified for a LabelDefinition.getLineConnection() property.

      Since:
      100.11.0
    • MINIMIZE_LABELS

      public static final LabelLineConnection MINIMIZE_LABELS
      Line geometries with the same label and coincident end vertices should be considered together as a single, continuous geometry when placing labels.

      For example, if a single label is being placed on a line feature, then the single location will be chosen along the combined geometries. This combining will ignore junctions, so it may be ambiguous which line feature after a junction is the continuation of the earlier geometry.

      Since:
      100.11.0
    • NONE

      public static final LabelLineConnection NONE
      Keep one label per line feature geometry.
      Since:
      100.11.0
    • UNAMBIGUOUS_LABELS

      public static final LabelLineConnection UNAMBIGUOUS_LABELS
      Line geometries with the same label and coincident end vertices should be joined, until they hit a junction.

      For example, if a single label is being placed on a line geometry (composed of multiple features' geometries, but all having the same label text), then a label will be placed on both sides of any junction, to make it unambiguous which geometries are the continuation of the initial geometry.

      Since:
      100.11.0
  • Method Details

    • values

      public static LabelLineConnection[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LabelLineConnection valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null