de.cau.cs.kieler.klay.layered.intermediate
Enum IntermediateLayoutProcessor

java.lang.Object
  extended by java.lang.Enum<IntermediateLayoutProcessor>
      extended by de.cau.cs.kieler.klay.layered.intermediate.IntermediateLayoutProcessor
All Implemented Interfaces:
Serializable, Comparable<IntermediateLayoutProcessor>

public enum IntermediateLayoutProcessor
extends Enum<IntermediateLayoutProcessor>

Definition of available intermediate layout processors for the layered layouter. This enumeration also serves as a factory for intermediate layout processors.

Rating red

Enum Constant Summary
BIG_NODES_PROCESSOR
          Splits big nodes into multiple layers to distribute them better and reduce whitespace.
EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER
          Makes sure nodes with layer constraints have only incoming or only outgoing edges.
EXTERNAL_PORT_CONSTRAINT_PROCESSOR
          Handles northern and southern external ports.
EXTERNAL_PORT_DUMMY_SIZE_PROCESSOR
          Adjusts the width of external port dummy nodes.
EXTERNAL_PORT_ORTHOGONAL_EDGE_ROUTER
          Routes edges incident to external ports orthogonally.
HYPEREDGE_DUMMY_MERGER
          Merges long edge dummy nodes belonging to the same hyperedge.
IN_LAYER_CONSTRAINT_PROCESSOR
          Makes sure that in-layer constraints are handled.
LAYER_CONSTRAINT_PROCESSOR
          Makes sure that layer constraints are taken care of.
LONG_EDGE_JOINER
          Takes a properly layered graph and removes the dummy nodes due to proper layering.
LONG_EDGE_SPLITTER
          Takes a layered graph and turns it into a properly layered graph.
NODE_MARGIN_CALCULATOR
          Calculates the margins of nodes according to the sizes of ports and labels.
NORTH_SOUTH_PORT_POSTPROCESSOR
          Removes dummy nodes inserted by the north south side preprocessor and routes edges.
NORTH_SOUTH_PORT_PREPROCESSOR
          Inserts dummy nodes to take care of northern and southern ports.
ODD_PORT_SIDE_PROCESSOR
          Takes a layered graph and inserts dummy nodes for edges connected to ports on odd sides.
PORT_ORDER_PROCESSOR
          Orders the port lists of nodes with fixed port order.
PORT_POSITION_PROCESSOR
          Sets the positions of ports.
PORT_SIDE_PROCESSOR
          Makes sure nodes have at least fixed port sides.
REVERSED_EDGE_RESTORER
          Takes the reversed edges of a graph and restores their original direction.
SELF_LOOP_PROCESSOR
          Takes care of self loops.
 
Method Summary
 ILayoutProcessor create()
          Creates an instance of the layout processor described by this instance.
static IntermediateLayoutProcessor valueOf(int i)
          Returns the enumeration value related to the given ordinal.
static IntermediateLayoutProcessor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IntermediateLayoutProcessor[] 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

EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER

public static final IntermediateLayoutProcessor EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER
Makes sure nodes with layer constraints have only incoming or only outgoing edges.


BIG_NODES_PROCESSOR

public static final IntermediateLayoutProcessor BIG_NODES_PROCESSOR
Splits big nodes into multiple layers to distribute them better and reduce whitespace.


EXTERNAL_PORT_CONSTRAINT_PROCESSOR

public static final IntermediateLayoutProcessor EXTERNAL_PORT_CONSTRAINT_PROCESSOR
Handles northern and southern external ports.


LAYER_CONSTRAINT_PROCESSOR

public static final IntermediateLayoutProcessor LAYER_CONSTRAINT_PROCESSOR
Makes sure that layer constraints are taken care of.


LONG_EDGE_SPLITTER

public static final IntermediateLayoutProcessor LONG_EDGE_SPLITTER
Takes a layered graph and turns it into a properly layered graph.


PORT_SIDE_PROCESSOR

public static final IntermediateLayoutProcessor PORT_SIDE_PROCESSOR
Makes sure nodes have at least fixed port sides.


ODD_PORT_SIDE_PROCESSOR

public static final IntermediateLayoutProcessor ODD_PORT_SIDE_PROCESSOR
Takes a layered graph and inserts dummy nodes for edges connected to ports on odd sides.


SELF_LOOP_PROCESSOR

public static final IntermediateLayoutProcessor SELF_LOOP_PROCESSOR
Takes care of self loops.


PORT_ORDER_PROCESSOR

public static final IntermediateLayoutProcessor PORT_ORDER_PROCESSOR
Orders the port lists of nodes with fixed port order.


NORTH_SOUTH_PORT_PREPROCESSOR

public static final IntermediateLayoutProcessor NORTH_SOUTH_PORT_PREPROCESSOR
Inserts dummy nodes to take care of northern and southern ports.


IN_LAYER_CONSTRAINT_PROCESSOR

public static final IntermediateLayoutProcessor IN_LAYER_CONSTRAINT_PROCESSOR
Makes sure that in-layer constraints are handled.


HYPEREDGE_DUMMY_MERGER

public static final IntermediateLayoutProcessor HYPEREDGE_DUMMY_MERGER
Merges long edge dummy nodes belonging to the same hyperedge.


PORT_POSITION_PROCESSOR

public static final IntermediateLayoutProcessor PORT_POSITION_PROCESSOR
Sets the positions of ports.


NODE_MARGIN_CALCULATOR

public static final IntermediateLayoutProcessor NODE_MARGIN_CALCULATOR
Calculates the margins of nodes according to the sizes of ports and labels.


EXTERNAL_PORT_DUMMY_SIZE_PROCESSOR

public static final IntermediateLayoutProcessor EXTERNAL_PORT_DUMMY_SIZE_PROCESSOR
Adjusts the width of external port dummy nodes.


EXTERNAL_PORT_ORTHOGONAL_EDGE_ROUTER

public static final IntermediateLayoutProcessor EXTERNAL_PORT_ORTHOGONAL_EDGE_ROUTER
Routes edges incident to external ports orthogonally.


LONG_EDGE_JOINER

public static final IntermediateLayoutProcessor LONG_EDGE_JOINER
Takes a properly layered graph and removes the dummy nodes due to proper layering.


NORTH_SOUTH_PORT_POSTPROCESSOR

public static final IntermediateLayoutProcessor NORTH_SOUTH_PORT_POSTPROCESSOR
Removes dummy nodes inserted by the north south side preprocessor and routes edges.


REVERSED_EDGE_RESTORER

public static final IntermediateLayoutProcessor REVERSED_EDGE_RESTORER
Takes the reversed edges of a graph and restores their original direction.

Method Detail

values

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

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

valueOf

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

valueOf

public static IntermediateLayoutProcessor valueOf(int i)
Returns the enumeration value related to the given ordinal.

Parameters:
i - ordinal value
Returns:
the related enumeration value

create

public ILayoutProcessor create()
Creates an instance of the layout processor described by this instance.

Returns:
the layout processor.