Enum LabelLineConnection

    • Enum Constant Detail

      • 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 Detail

      • values

        public static LabelLineConnection[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LabelLineConnection c : LabelLineConnection.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LabelLineConnection valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null