Package com.itextpdf.layout.properties
Enum BaseDirection
- java.lang.Object
-
- java.lang.Enum<BaseDirection>
-
- com.itextpdf.layout.properties.BaseDirection
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BaseDirection>
public enum BaseDirection extends java.lang.Enum<BaseDirection>
A specialized enum holding the possible values for a textIElement
's base direction. This class is meant to be used as the value for theProperty.BASE_DIRECTION
key in anIPropertyContainer
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT_BIDI
LEFT_TO_RIGHT
NO_BIDI
RIGHT_TO_LEFT
-
Constructor Summary
Constructors Modifier Constructor Description private
BaseDirection()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BaseDirection
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BaseDirection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_BIDI
public static final BaseDirection NO_BIDI
-
DEFAULT_BIDI
public static final BaseDirection DEFAULT_BIDI
-
LEFT_TO_RIGHT
public static final BaseDirection LEFT_TO_RIGHT
-
RIGHT_TO_LEFT
public static final BaseDirection RIGHT_TO_LEFT
-
-
Method Detail
-
values
public static BaseDirection[] 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 (BaseDirection c : BaseDirection.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseDirection 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
-
-