Package dev.avelar.mapnik
Enum Class Symbolizer.LabelPlacement
- All Implemented Interfaces:
Serializable,Comparable<Symbolizer.LabelPlacement>,Constable
- Enclosing class:
- Symbolizer
Where labels go relative to the geometry.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOn a grid with every other row shifted.On a regular grid across a polygon.Inside a polygon, at a point that is certainly inside.Along a line, following it.At a point on the geometry (the centroid of a polygon, the middle of a line).At the pole of inaccessibility of a polygon: the point farthest from its edges.At each vertex. -
Method Summary
Modifier and TypeMethodDescriptionstatic Symbolizer.LabelPlacementReturns the enum constant of this class with the specified name.static Symbolizer.LabelPlacement[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POINT
At a point on the geometry (the centroid of a polygon, the middle of a line). -
LINE
Along a line, following it. -
VERTEX
At each vertex. -
INTERIOR
Inside a polygon, at a point that is certainly inside. -
POLYLABEL
At the pole of inaccessibility of a polygon: the point farthest from its edges. -
GRID
On a regular grid across a polygon. -
ALTERNATING_GRID
On a grid with every other row shifted.
-
-
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
-