GP-310 - Graphing - Updated mouse handling to be consistent with other graph widgets.

This commit is contained in:
ghidravore 2020-11-02 14:15:01 -05:00
parent 956e8ef342
commit d9a1c8906f
43 changed files with 1468 additions and 474 deletions

View file

@ -72,10 +72,11 @@ public class GraphServicesScreenShots extends GhidraScreenShotGenerator {
AttributedEdge e2 = graph.addEdge(v1, v3);
e2.setAttribute("EdgeType", "Unconditional-Call");
display.setGraph(graph, "test", false, TaskMonitor.DUMMY);
display.setGraph(graph, "Program Graph", false, TaskMonitor.DUMMY);
waitForSwing();
setGraphWindowSize(700, 500);
((DefaultGraphDisplay) display).centerAndScale();
runSwing(() -> ((DefaultGraphDisplay) display).centerAndScale());
waitForSwing();
captureProvider(DefaultGraphDisplayComponentProvider.class);
}
@ -95,7 +96,7 @@ public class GraphServicesScreenShots extends GhidraScreenShotGenerator {
provider.getComponent().requestFocus();
paintFix(window);
});
waitForSwing();
}
}