org.graphstream.ui.graphicGraph.stylesheet
Enum StyleConstants.TextAlignment

java.lang.Object
  extended by java.lang.Enum<StyleConstants.TextAlignment>
      extended by 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.


Enum Constant Summary
ABOVE
           
ALONG
           
AT_LEFT
           
AT_RIGHT
           
CENTER
           
JUSTIFY
           
LEFT
           
RIGHT
           
UNDER
           
 
Method Summary
static StyleConstants.TextAlignment valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StyleConstants.TextAlignment[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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 © 2011. All Rights Reserved.