Package org.geotools.api.style
Enum TextSymbolizer.GraphicPlacement
- Object
-
- Enum<TextSymbolizer.GraphicPlacement>
-
- GraphicPlacement
-
- All Implemented Interfaces:
Serializable
,Comparable<TextSymbolizer.GraphicPlacement>
- Enclosing interface:
- TextSymbolizer
public static enum TextSymbolizer.GraphicPlacement extends Enum<TextSymbolizer.GraphicPlacement>
GraphicPlacemnts controls the position of the Graphic associated with the label
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INDEPENDENT
Places the graphic independent of the label own offset and anchor, but applying the Graphic offset and anchor instead, on top of the chosen label point.LABEL
Centered with the label, thus moving with it considering its offsets and anchors relative to the label point.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextSymbolizer.GraphicPlacement
valueOf(String name)
Returns the enum constant of this type with the specified name.static TextSymbolizer.GraphicPlacement[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LABEL
public static final TextSymbolizer.GraphicPlacement LABEL
Centered with the label, thus moving with it considering its offsets and anchors relative to the label point. If not specified, this is the default behavior.
-
INDEPENDENT
public static final TextSymbolizer.GraphicPlacement INDEPENDENT
Places the graphic independent of the label own offset and anchor, but applying the Graphic offset and anchor instead, on top of the chosen label point. This allows to create graphics that are at an offset compared to the label
-
-
Method Detail
-
values
public static TextSymbolizer.GraphicPlacement[] 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 (TextSymbolizer.GraphicPlacement c : TextSymbolizer.GraphicPlacement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextSymbolizer.GraphicPlacement 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 nameNullPointerException
- if the argument is null
-
-