mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GT-3020 - Function Graph - fixed edge visual state that was being
overwritten after mutation operations
This commit is contained in:
parent
cb94773ce5
commit
e646deabc1
16 changed files with 242 additions and 93 deletions
|
@ -17,7 +17,7 @@ package ghidra.app.plugin.core.functiongraph.graph.jung.renderer;
|
|||
|
||||
import ghidra.app.plugin.core.functiongraph.graph.FGEdge;
|
||||
|
||||
public class DecompilerDominanceArticulatedEdgeTransformer extends FGArticulatedEdgeTransformer {
|
||||
public class DNLArticulatedEdgeTransformer extends FGArticulatedEdgeTransformer {
|
||||
|
||||
@Override
|
||||
public int getOverlapOffset(FGEdge edge) {
|
|
@ -34,7 +34,7 @@ import ghidra.app.decompiler.DecompInterface;
|
|||
import ghidra.app.decompiler.DecompileOptions;
|
||||
import ghidra.app.plugin.core.functiongraph.graph.FGEdge;
|
||||
import ghidra.app.plugin.core.functiongraph.graph.FunctionGraph;
|
||||
import ghidra.app.plugin.core.functiongraph.graph.jung.renderer.DecompilerDominanceArticulatedEdgeTransformer;
|
||||
import ghidra.app.plugin.core.functiongraph.graph.jung.renderer.DNLArticulatedEdgeTransformer;
|
||||
import ghidra.app.plugin.core.functiongraph.graph.vertex.FGVertex;
|
||||
import ghidra.app.plugin.core.functiongraph.graph.vertex.GroupedFunctionGraphVertex;
|
||||
import ghidra.graph.VisualGraph;
|
||||
|
@ -103,7 +103,7 @@ public class DecompilerNestedLayout extends AbstractFGLayout {
|
|||
|
||||
@Override
|
||||
public Function<FGEdge, Shape> getEdgeShapeTransformer() {
|
||||
return new DecompilerDominanceArticulatedEdgeTransformer();
|
||||
return new DNLArticulatedEdgeTransformer();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -715,7 +715,7 @@ public class DecompilerNestedLayout extends AbstractFGLayout {
|
|||
// assumption: edges that move to the left in this layout are return flows that happen
|
||||
// after the code block has been executed. We dim those a bit so that they
|
||||
// produce less clutter.
|
||||
e.setAlpha(.25);
|
||||
e.setDefaultAlpha(.25);
|
||||
}
|
||||
|
||||
private Column getOutermostCol(LayoutLocationMap<FGVertex, FGEdge> layoutLocations,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue