Enum Class TextSymbolizer.GroupPriority

All Implemented Interfaces:
Serializable, Comparable<TextSymbolizer.GroupPriority>, Constable
Enclosing interface:
TextSymbolizer

public static enum TextSymbolizer.GroupPriority extends Enum<TextSymbolizer.GroupPriority>
Ways to compute the priority of a group of labels from the priorities of its features.
  • Enum Constant Details

    • SUM

      public static final TextSymbolizer.GroupPriority SUM
      Adds up the feature priorities, so bigger groups win, e.g. with a priority based on area or length (default for backward compatibility)
    • MAX

      public static final TextSymbolizer.GroupPriority MAX
      Takes the highest feature priority, for priorities that rank features, e.g. a road class
  • Method Details

    • values

      public static TextSymbolizer.GroupPriority[] 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 TextSymbolizer.GroupPriority 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
    • priority

      public abstract double priority(DoubleSummaryStatistics priorities)
      Returns the group priority, given the priorities of all the features in the group