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

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

public enum GraphProperties
extends Enum<GraphProperties>

An enumeration of properties a graph may have. These can be used as part of an EnumSet to base decisions on graph properties. For example, self-loop processing may be skipped if the graph doesn't contain self-loops in the first place.

An EnumSet for this enumeration can be attached to a graph via the Properties.GRAPH_PROPERTIES property.

Rating red

Enum Constant Summary
COMMENTS
          The graph contains comment boxes.
EXTERNAL_PORTS
          The graph contains dummy nodes representing external ports.
FLAT_HIERARCHICAL
          The graph is a flattened hierarchical graph.
HYPEREDGES
          The graph contains hyperedges.
HYPERNODES
          The graph contains hypernodes (nodes that are marked as such).
NON_FREE_PORTS
          The graph contains ports that are not free for positioning.
NORTH_SOUTH_PORTS
          The graph contains ports on the northern or southern side.
SELF_LOOPS
          The graph contains self-loops.
 
Method Summary
static GraphProperties valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GraphProperties[] 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

COMMENTS

public static final GraphProperties COMMENTS
The graph contains comment boxes.


EXTERNAL_PORTS

public static final GraphProperties EXTERNAL_PORTS
The graph contains dummy nodes representing external ports.


FLAT_HIERARCHICAL

public static final GraphProperties FLAT_HIERARCHICAL
The graph is a flattened hierarchical graph.


HYPEREDGES

public static final GraphProperties HYPEREDGES
The graph contains hyperedges.


HYPERNODES

public static final GraphProperties HYPERNODES
The graph contains hypernodes (nodes that are marked as such).


NON_FREE_PORTS

public static final GraphProperties NON_FREE_PORTS
The graph contains ports that are not free for positioning.


NORTH_SOUTH_PORTS

public static final GraphProperties NORTH_SOUTH_PORTS
The graph contains ports on the northern or southern side.


SELF_LOOPS

public static final GraphProperties SELF_LOOPS
The graph contains self-loops.

Method Detail

values

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

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

valueOf

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