Enum Text.TextAlignment
- java.lang.Object
-
- java.lang.Enum<Text.TextAlignment>
-
- ch.andre601.fluxpoint4j.image.format.Text.TextAlignment
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Text.TextAlignment>
- Enclosing class:
- Text
public static enum Text.TextAlignment extends java.lang.Enum<Text.TextAlignment>
Used to determine the text-alignment.
The text-alignment can have an affect on thehorizontal text-position
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
static Text.TextAlignment
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Text.TextAlignment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEFT
public static final Text.TextAlignment LEFT
Left text-alignment.
-
MIDDLE
public static final Text.TextAlignment MIDDLE
Centered text-alignment.
-
RIGHT
public static final Text.TextAlignment RIGHT
Right text-alignment.
-
-
Method Detail
-
values
public static Text.TextAlignment[] 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 (Text.TextAlignment c : Text.TextAlignment.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Text.TextAlignment 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
-
getName
public java.lang.String getName()
-
-