pedviz.algorithms.sugiyama
Interface Splitter

All Known Implementing Classes:
RandomSplitter, SicknessSplitter

public interface Splitter

This interface defines methods for an algorithm that can split the given graph in two walls. It can be used as a WallSplitter for the SugiyamaLayout class.

Version:
0.1
Author:
Lukas Forer

Method Summary
 void afterSplit(Graph graph)
          This method will be run after the graph was split.
 void beforeSplit(Graph graph)
          This method will be run before the graph will be split.
 int getWall(Graph graph, Node node, int index)
          Returns the id of the wall for the given node.
 

Method Detail

getWall

int getWall(Graph graph,
            Node node,
            int index)
Returns the id of the wall for the given node. The id is dependent from the used algorithm.

Parameters:
graph - the Graph object
node - the Node object
index - the index of the Node in the given Graph

beforeSplit

void beforeSplit(Graph graph)
This method will be run before the graph will be split.

Parameters:
graph - the Graph object

afterSplit

void afterSplit(Graph graph)
This method will be run after the graph was split.

Parameters:
graph - the Graph object