Package org.geotools.api.style
Enum Class TextSymbolizer.GroupPriority
- All Implemented Interfaces:
Serializable,Comparable<TextSymbolizer.GroupPriority>,Constable
- Enclosing interface:
- TextSymbolizer
Ways to compute the priority of a group of labels from the priorities of its features.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract doublepriority(DoubleSummaryStatistics priorities) Returns the group priority, given the priorities of all the features in the groupstatic TextSymbolizer.GroupPriorityReturns the enum constant of this class with the specified name.static TextSymbolizer.GroupPriority[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
Takes the highest feature priority, for priorities that rank features, e.g. a road class
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
priority
Returns the group priority, given the priorities of all the features in the group
-