de.cau.cs.kieler.klay.force
Class KGraphImporter
java.lang.Object
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

Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KGraphImporter
public KGraphImporter()
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