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

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

public enum NodeType
extends Enum<NodeType>

Definition of node types used in the layered approach.

Rating red

Enum Constant Summary
COMPOUND_SIDE
          a dummy node created to be part of a linear segment used to draw the sides of a compound node.
EXTERNAL_PORT
          a node representing an external port.
LONG_EDGE
          a dummy node created to split a long edge.
LOWER_COMPOUND_BORDER
          a dummy node created as lower border node to represent a subgraph node.
LOWER_COMPOUND_PORT
          a dummy node created to represent a port connected with an outgoing edge.
NORMAL
          a normal node is created from a node of the original graph.
NORTH_SOUTH_PORT
          a dummy node created to cope with ports at the northern or southern side.
UPPER_COMPOUND_BORDER
          a dummy node created as upper border node to represent a subgraph node.
UPPER_COMPOUND_PORT
          a dummy node created to represent a port connected with an incoming edge.
 
Method Summary
static NodeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeType[] 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

NORMAL

public static final NodeType NORMAL
a normal node is created from a node of the original graph.


LONG_EDGE

public static final NodeType LONG_EDGE
a dummy node created to split a long edge.


EXTERNAL_PORT

public static final NodeType EXTERNAL_PORT
a node representing an external port.


NORTH_SOUTH_PORT

public static final NodeType NORTH_SOUTH_PORT
a dummy node created to cope with ports at the northern or southern side.


UPPER_COMPOUND_BORDER

public static final NodeType UPPER_COMPOUND_BORDER
a dummy node created as upper border node to represent a subgraph node.


LOWER_COMPOUND_BORDER

public static final NodeType LOWER_COMPOUND_BORDER
a dummy node created as lower border node to represent a subgraph node.


UPPER_COMPOUND_PORT

public static final NodeType UPPER_COMPOUND_PORT
a dummy node created to represent a port connected with an incoming edge. Serving as one of the upper border nodes.


LOWER_COMPOUND_PORT

public static final NodeType LOWER_COMPOUND_PORT
a dummy node created to represent a port connected with an outgoing edge. Serving as one of the lower border nodes.


COMPOUND_SIDE

public static final NodeType COMPOUND_SIDE
a dummy node created to be part of a linear segment used to draw the sides of a compound node.

Method Detail

values

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

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

valueOf

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