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

java.lang.Object
  extended by java.lang.Enum<StyleConstants.Units>
      extended by org.graphstream.ui.graphicGraph.stylesheet.StyleConstants.Units
All Implemented Interfaces:
Serializable, Comparable<StyleConstants.Units>
Enclosing class:
StyleConstants

public static enum StyleConstants.Units
extends Enum<StyleConstants.Units>

The available units for numerical values.


Enum Constant Summary
GU
           
PERCENTS
           
PX
           
 
Method Summary
static StyleConstants.Units valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StyleConstants.Units[] 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

PX

public static final StyleConstants.Units PX

GU

public static final StyleConstants.Units GU

PERCENTS

public static final StyleConstants.Units PERCENTS
Method Detail

values

public static StyleConstants.Units[] 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.Units c : StyleConstants.Units.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.Units 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 © 2013. All Rights Reserved.