mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Merge remote-tracking branch
'origin/GP-625-tomnelson-full-fix-1.2-SNAPSHOT...'
This commit is contained in:
commit
0f4026c682
12 changed files with 235 additions and 101 deletions
|
@ -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); //
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue