de.cau.cs.kieler.klay.layered.properties
Enum LayerConstraint

java.lang.Object
  extended by java.lang.Enum<LayerConstraint>
      extended by de.cau.cs.kieler.klay.layered.properties.LayerConstraint
All Implemented Interfaces:
Comparable<LayerConstraint>

public enum LayerConstraint
extends Enum<LayerConstraint>

Enumeration of layer constraint types. May be set on nodes to constrain in which layer they may appear.

See Also:
EdgeAndLayerConstraintEdgeReverser, LayerConstraintProcessor
Rating red

Enum Constant Summary
FIRST
          put into the first layer.
FIRST_SEPARATE
          put into a separate first layer; used internally.
LAST
          put into the last layer.
LAST_SEPARATE
          put into a separate last layer; used internally.
NONE
          no constraint on the layering.
 
Method Summary
static LayerConstraint valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LayerConstraint[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

NONE

public static final LayerConstraint NONE
no constraint on the layering.


FIRST

public static final LayerConstraint FIRST
put into the first layer.


FIRST_SEPARATE

public static final LayerConstraint FIRST_SEPARATE
put into a separate first layer; used internally.


LAST

public static final LayerConstraint LAST
put into the last layer.


LAST_SEPARATE

public static final LayerConstraint LAST_SEPARATE
put into a separate last layer; used internally.

Method Detail

values

public static LayerConstraint[] 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 (LayerConstraint c : LayerConstraint.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LayerConstraint 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