de.cau.cs.kieler.kiml.ogdf
Class SugiyamaLayouter

java.lang.Object
  extended by de.cau.cs.kieler.kiml.ogdf.OgdfLayouter
      extended by de.cau.cs.kieler.kiml.ogdf.SugiyamaLayouter

public class SugiyamaLayouter
extends OgdfLayouter

The Sugiyama layouter from the OGDF library.

Rating red

Field Summary
static float DEF_BORDER_SPACING
          default value for border spacing.
static int DEF_FAILS
          default value for layer distance.
static float DEF_LABEL_MARGIN_DISTANCE
          default value for label margin distance.
static float DEF_LABEL_SPACING
          default value for label edge distance.
static float DEF_MIN_SPACING
          default value for minimum spacing.
static int DEF_RUNS
          default value for layer distance.
static boolean DEF_TRANSPOSE
          default value for layer distance.
 
Fields inherited from class de.cau.cs.kieler.kiml.ogdf.OgdfLayouter
OPT_LABEL_EDGE_DISTANCE, OPT_LABEL_MARGIN_DISTANCE
 
Constructor Summary
SugiyamaLayouter()
           
 
Method Summary
 Object getDefault(String optionId)
          Returns the default value for the given layout option.
protected  void postProcess(KNode layoutNode)
          Performs post-processing on the given node.
 LayoutModule prepareLayouter(KNode layoutNode)
          Sets the layout specific options and modules depending on the options defined in the node.
 
Methods inherited from class de.cau.cs.kieler.kiml.ogdf.OgdfLayouter
applyLayout, doLayout, isUmlGraph, layoutLabels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEF_BORDER_SPACING

public static final float DEF_BORDER_SPACING
default value for border spacing.

See Also:
Constant Field Values

DEF_MIN_SPACING

public static final float DEF_MIN_SPACING
default value for minimum spacing.

See Also:
Constant Field Values

DEF_LABEL_SPACING

public static final float DEF_LABEL_SPACING
default value for label edge distance.

See Also:
Constant Field Values

DEF_LABEL_MARGIN_DISTANCE

public static final float DEF_LABEL_MARGIN_DISTANCE
default value for label margin distance.

See Also:
Constant Field Values

DEF_FAILS

public static final int DEF_FAILS
default value for layer distance.

See Also:
Constant Field Values

DEF_RUNS

public static final int DEF_RUNS
default value for layer distance.

See Also:
Constant Field Values

DEF_TRANSPOSE

public static final boolean DEF_TRANSPOSE
default value for layer distance.

See Also:
Constant Field Values
Constructor Detail

SugiyamaLayouter

public SugiyamaLayouter()
Method Detail

prepareLayouter

public LayoutModule prepareLayouter(KNode layoutNode)
Sets the layout specific options and modules depending on the options defined in the node.

Specified by:
prepareLayouter in class OgdfLayouter
Parameters:
layoutNode - the parent node
Returns:
the layout module

postProcess

protected void postProcess(KNode layoutNode)
Performs post-processing on the given node. The default implementation does nothing.

Overrides:
postProcess in class OgdfLayouter
Parameters:
layoutNode - the parent node

getDefault

public Object getDefault(String optionId)
Returns the default value for the given layout option.

Specified by:
getDefault in class OgdfLayouter
Parameters:
optionId - a layout option identifier
Returns:
the corresponding default value, or null if the option is not known