added javadoc and improved root predicate for loop vertices. changed CIRCLE symbol name

GP-625 updated module IP for jungrapht 1.2
missing comma
changed jungrapht version to 1.2
changed favored edge and comparator
rename for updates to exp layouts
updates for graph display api generalization
renamed exp layout
added placeholders for exp layouts
removed problematic changes to layouts
allow edge selection to be enabled. Begin to organize default graph api symbols in GraphDisplay
updates
full fix for GP-625
This commit is contained in:
dragonmacher 2021-03-03 09:22:36 -05:00 committed by ghidra1
parent 45927bb9c3
commit 76b66e2a53
12 changed files with 235 additions and 101 deletions

View file

@ -31,6 +31,7 @@ import ghidra.program.model.pcode.*;
import ghidra.service.graph.*;
import ghidra.util.Msg;
import java.util.*;
import static ghidra.service.graph.GraphDisplay.*;
public class GraphAST extends GhidraScript {
protected static final String COLOR_ATTRIBUTE = "Color";
@ -66,11 +67,12 @@ public class GraphAST extends GhidraScript {
buildGraph();
Map<String, String> properties = new HashMap<>();
properties.put("selectedVertexColor", "0xFF1493");
properties.put("selectedEdgeColor", "0xFF1493");
properties.put("initialLayoutAlgorithm", "Hierarchical MinCross Coffman Graham");
properties.put("displayVerticesAsIcons", "false");
properties.put("vertexLabelPosition", "S");
properties.put(SELECTED_VERTEX_COLOR, "0xFF1493");
properties.put(SELECTED_EDGE_COLOR, "0xFF1493");
properties.put(INITIAL_LAYOUT_ALGORITHM, "Hierarchical MinCross Coffman Graham");
properties.put(DISPLAY_VERTICES_AS_ICONS, "false");
properties.put(VERTEX_LABEL_POSITION, "S");
properties.put(ENABLE_EDGE_SELECTION, "true");
GraphDisplay graphDisplay =
graphDisplayBroker.getDefaultGraphDisplay(false, properties, monitor);
// graphDisplay.defineVertexAttribute(CODE_ATTRIBUTE); //