GT-3019 - Function Graph - Added option for edge routing around vertices

This commit is contained in:
dragonmacher 2019-07-25 18:40:21 -04:00
parent ac98e609d7
commit a04185e942
24 changed files with 933 additions and 259 deletions

View file

@ -44,8 +44,8 @@ import ghidra.util.task.TaskMonitor;
*/
public class BowTieLayout extends AbstractVisualGraphLayout<FcgVertex, FcgEdge> {
protected BowTieLayout(FunctionCallGraph graph) {
super(graph);
protected BowTieLayout(FunctionCallGraph graph, String name) {
super(graph, name);
}
@Override
@ -58,7 +58,7 @@ public class BowTieLayout extends AbstractVisualGraphLayout<FcgVertex, FcgEdge>
getClass().getSimpleName());
}
BowTieLayout newLayout = new BowTieLayout((FunctionCallGraph) newGraph);
BowTieLayout newLayout = new BowTieLayout((FunctionCallGraph) newGraph, getLayoutName());
return newLayout;
}

View file

@ -38,7 +38,7 @@ public class BowTieLayoutProvider
public VisualGraphLayout<FcgVertex, FcgEdge> getLayout(FunctionCallGraph graph,
TaskMonitor monitor) throws CancelledException {
BowTieLayout layout = new BowTieLayout(graph);
BowTieLayout layout = new BowTieLayout(graph, NAME);
initVertexLocations(graph, layout);
return layout;
}