de.cau.cs.kieler.klay.force
Class KGraphImporter

java.lang.Object
  extended by de.cau.cs.kieler.klay.force.KGraphImporter
All Implemented Interfaces:
IGraphImporter<KNode>

public class KGraphImporter
extends Object
implements IGraphImporter<KNode>

Manages the transformation of KGraphs to FGraphs.

Rating red

Constructor Summary
KGraphImporter()
           
 
Method Summary
 void applyLayout(FGraph fgraph)
          Apply the computed layout of a force graph to the original graph.
 FGraph importGraph(KNode kgraph)
          Create a force graph from the given graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KGraphImporter

public KGraphImporter()
Method Detail

importGraph

public FGraph importGraph(KNode kgraph)
Create a force graph from the given graph.

Specified by:
importGraph in interface IGraphImporter<KNode>
Parameters:
kgraph - the graph to turn into a force graph
Returns:
a force graph, or null if the input was not recognized

applyLayout

public void applyLayout(FGraph fgraph)
Apply the computed layout of a force graph to the original graph.

Specified by:
applyLayout in interface IGraphImporter<KNode>
Parameters:
fgraph - the graph for which layout is applied