public static enum TextBlock.Align extends java.lang.Enum<TextBlock.Align>
| Modifier and Type | Method and Description |
|---|---|
abstract float |
getX(float lineWidth,
float blockWidth)
Returns the x offset for a line of text with width
lineWidth rendered as part of a
block of width blockWidth. |
static TextBlock.Align |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextBlock.Align[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextBlock.Align LEFT
public static final TextBlock.Align CENTER
public static final TextBlock.Align RIGHT
public static TextBlock.Align[] values()
for (TextBlock.Align c : TextBlock.Align.values()) System.out.println(c);
public static TextBlock.Align valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract float getX(float lineWidth,
float blockWidth)
lineWidth rendered as part of a
block of width blockWidth.Copyright © 2018. All Rights Reserved.