DocumentDirection
Contents
[
Hide
]Inheritance: java.lang.Object
public class DocumentDirection
Allows to specify the direction to flow the text in a document.
Fields
Field | Description |
---|---|
AUTO | Auto-detect direction. |
LEFT_TO_RIGHT | Left to right direction. |
RIGHT_TO_LEFT | Right to left direction. |
length |
Methods
Method | Description |
---|---|
fromName(String documentDirectionName) | |
getName(int documentDirection) | |
getValues() | |
toString(int documentDirection) |
AUTO
public static int AUTO
Auto-detect direction.
Remarks:
When this option is selected and text contains characters belonging to RTL scripts, the document direction will be set automatically to RTL.
LEFT_TO_RIGHT
public static int LEFT_TO_RIGHT
Left to right direction.
RIGHT_TO_LEFT
public static int RIGHT_TO_LEFT
Right to left direction.
length
public static int length
fromName(String documentDirectionName)
public static int fromName(String documentDirectionName)
Parameters:
Parameter | Type | Description |
---|---|---|
documentDirectionName | java.lang.String |
Returns: int
getName(int documentDirection)
public static String getName(int documentDirection)
Parameters:
Parameter | Type | Description |
---|---|---|
documentDirection | int |
Returns: java.lang.String
getValues()
public static int[] getValues()
Returns: int[]
toString(int documentDirection)
public static String toString(int documentDirection)
Parameters:
Parameter | Type | Description |
---|---|---|
documentDirection | int |
Returns: java.lang.String