net.sf.latexdraw.glib.models.interfaces
Enum IText.TextPosition
java.lang.Object
java.lang.Enum<IText.TextPosition>
net.sf.latexdraw.glib.models.interfaces.IText.TextPosition
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<IText.TextPosition>
- Enclosing interface:
- IText
public static enum IText.TextPosition
- extends java.lang.Enum<IText.TextPosition>
The position of the text (bottom-right, top-left, etc.).
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
BOT_LEFT
public static final IText.TextPosition BOT_LEFT
BOT
public static final IText.TextPosition BOT
BOT_RIGHT
public static final IText.TextPosition BOT_RIGHT
TOP_LEFT
public static final IText.TextPosition TOP_LEFT
TOP
public static final IText.TextPosition TOP
TOP_RIGHT
public static final IText.TextPosition TOP_RIGHT
values
public static IText.TextPosition[] 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 (IText.TextPosition c : IText.TextPosition.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static IText.TextPosition 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 name
java.lang.NullPointerException
- if the argument is null
getLatexToken
public abstract java.lang.String getLatexToken()
- Returns:
- The latex token corresponding to the text position.
- Since:
- 3.0
getTextPosition
public static IText.TextPosition getTextPosition(java.lang.String latexToken)
- Parameters:
latexToken
- The latex token to test.
- Returns:
- The TextPosition enumeration item corresponding to the given latex token.
- Since:
- 3.0