org.graphstream.ui.graphicGraph.stylesheet
Enum StyleConstants.TextAlignment
java.lang.Object
java.lang.Enum<StyleConstants.TextAlignment>
org.graphstream.ui.graphicGraph.stylesheet.StyleConstants.TextAlignment
- All Implemented Interfaces:
- Serializable, Comparable<StyleConstants.TextAlignment>
- Enclosing class:
- StyleConstants
public static enum StyleConstants.TextAlignment
- extends Enum<StyleConstants.TextAlignment>
How to align words around their attach point.
CENTER
public static final StyleConstants.TextAlignment CENTER
LEFT
public static final StyleConstants.TextAlignment LEFT
RIGHT
public static final StyleConstants.TextAlignment RIGHT
AT_LEFT
public static final StyleConstants.TextAlignment AT_LEFT
AT_RIGHT
public static final StyleConstants.TextAlignment AT_RIGHT
UNDER
public static final StyleConstants.TextAlignment UNDER
ABOVE
public static final StyleConstants.TextAlignment ABOVE
JUSTIFY
public static final StyleConstants.TextAlignment JUSTIFY
ALONG
public static final StyleConstants.TextAlignment ALONG
values
public static StyleConstants.TextAlignment[] 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 (StyleConstants.TextAlignment c : StyleConstants.TextAlignment.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static StyleConstants.TextAlignment valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2012. All Rights Reserved.