Package com.aspose.barcode.generation
Enum StringAlignment
- java.lang.Object
-
- java.lang.Enum<StringAlignment>
-
- com.aspose.barcode.generation.StringAlignment
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StringAlignment>
public enum StringAlignment extends java.lang.Enum<StringAlignment>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
android.text.Layout.Alignment
toAndroid()
static StringAlignment
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StringAlignment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEAR
public static final StringAlignment NEAR
-
CENTER
public static final StringAlignment CENTER
-
FAR
public static final StringAlignment FAR
-
-
Method Detail
-
values
public static StringAlignment[] 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 (StringAlignment c : StringAlignment.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StringAlignment 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
-
getValue
public int getValue()
-
toAndroid
public android.text.Layout.Alignment toAndroid()
-
-