public enum TextDirection extends Enum<TextDirection>
Java class for text-direction.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="text-direction">
<restriction base="{http://www.w3.org/2001/XMLSchema}token">
<enumeration value="ltr"/>
<enumeration value="rtl"/>
<enumeration value="lro"/>
<enumeration value="rlo"/>
</restriction>
</simpleType>
| Modifier and Type | Method and Description |
|---|---|
static TextDirection |
fromValue(String v) |
String |
value() |
static TextDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextDirection LTR
public static final TextDirection RTL
public static final TextDirection LRO
public static final TextDirection RLO
public static TextDirection[] values()
for (TextDirection c : TextDirection.values()) System.out.println(c);
public static TextDirection valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static TextDirection fromValue(String v)
Copyright © 2016 Audiveris Ltd. All rights reserved.