Package org.jzy3d.plot3d.text.align
Enum Horizontal
- java.lang.Object
-
- java.lang.Enum<Horizontal>
-
- org.jzy3d.plot3d.text.align.Horizontal
-
- All Implemented Interfaces:
Serializable
,Comparable<Horizontal>
public enum Horizontal extends Enum<Horizontal>
Provides constants for defining the horizontal alignment of a text, w.r.t. its position.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Horizontal
valueOf(String name)
Returns the enum constant of this type with the specified name.static Horizontal[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEFT
public static final Horizontal LEFT
Left horizontal alignment.
-
RIGHT
public static final Horizontal RIGHT
Right horizontal alignment.
-
CENTER
public static final Horizontal CENTER
Centered horizontal alignment.
-
-
Method Detail
-
values
public static Horizontal[] 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 (Horizontal c : Horizontal.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Horizontal 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
-
-