Enum BoxTextElement.VerticalTextAlignment
- java.lang.Object
-
- java.lang.Enum<BoxTextElement.VerticalTextAlignment>
-
- org.openstreetmap.josm.gui.mappaint.styleelement.BoxTextElement.VerticalTextAlignment
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BoxTextElement.VerticalTextAlignment>
- Enclosing class:
- BoxTextElement
public static enum BoxTextElement.VerticalTextAlignment extends java.lang.Enum<BoxTextElement.VerticalTextAlignment>
MapCSS text-anchor-vertical
-
-
Constructor Summary
Constructors Modifier Constructor Description private
VerticalTextAlignment()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BoxTextElement.VerticalTextAlignment
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BoxTextElement.VerticalTextAlignment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABOVE
public static final BoxTextElement.VerticalTextAlignment ABOVE
Render above the box
-
TOP
public static final BoxTextElement.VerticalTextAlignment TOP
Align to the top of the box
-
CENTER
public static final BoxTextElement.VerticalTextAlignment CENTER
Render at the center of the box
-
BOTTOM
public static final BoxTextElement.VerticalTextAlignment BOTTOM
Align to the bottom of the box
-
BELOW
public static final BoxTextElement.VerticalTextAlignment BELOW
Render below the box
-
-
Constructor Detail
-
VerticalTextAlignment
private VerticalTextAlignment()
-
-
Method Detail
-
values
public static BoxTextElement.VerticalTextAlignment[] 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 (BoxTextElement.VerticalTextAlignment c : BoxTextElement.VerticalTextAlignment.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BoxTextElement.VerticalTextAlignment valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-