mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-757 - Function Graph - review fixes
This commit is contained in:
@@ -224,8 +224,10 @@ public class FGComponent extends GraphComponent<FGVertex, FGEdge, FunctionGraph>
|
|||||||
Color bgColor = options.getGraphBackgroundColor();
|
Color bgColor = options.getGraphBackgroundColor();
|
||||||
if (bgColor.equals(VisualGraphOptions.DEFAULT_GRAPH_BACKGROUND_COLOR)) {
|
if (bgColor.equals(VisualGraphOptions.DEFAULT_GRAPH_BACKGROUND_COLOR)) {
|
||||||
|
|
||||||
// Give user notice when seeing the graph for a non-function. Don't do this if the
|
// Give user notice when seeing the graph for a non-function (such as an undefined
|
||||||
// user has manually set the background color (this would require another option).
|
// function), as this is typical for Ghidra UI widgets.
|
||||||
|
// Don't do this if the user has manually set the background color (this would require
|
||||||
|
// another option).
|
||||||
Function function = functionGraphData.getFunction();
|
Function function = functionGraphData.getFunction();
|
||||||
if (function instanceof UndefinedFunction) {
|
if (function instanceof UndefinedFunction) {
|
||||||
viewer.setBackground(UNDEFINED_FUNCTION_COLOR);
|
viewer.setBackground(UNDEFINED_FUNCTION_COLOR);
|
||||||
|
|||||||
@@ -93,15 +93,17 @@ public interface FGVertex extends VisualVertex {
|
|||||||
public void clearColor();
|
public void clearColor();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Signals to this vertex that it is associated with a group. False implies that this vertex
|
* Signals to this vertex that it is associated with a group
|
||||||
* is not and has not been part of a group. True signals that this vertex is not currently
|
|
||||||
* grouped, but that it has been part of a group and can be put back into its group form
|
|
||||||
* again.
|
|
||||||
*
|
*
|
||||||
* @param groupInfo True if this vertex is a associate with a group
|
* @param groupInfo the new group info for this vertex; null if the vertex is no longer part
|
||||||
|
* of a group
|
||||||
*/
|
*/
|
||||||
public void updateGroupAssociationStatus(GroupHistoryInfo groupInfo);
|
public void updateGroupAssociationStatus(GroupHistoryInfo groupInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The group info for this vertex if it is in a group; null if not in a group
|
||||||
|
* @return the group info or null
|
||||||
|
*/
|
||||||
public GroupHistoryInfo getGroupInfo();
|
public GroupHistoryInfo getGroupInfo();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -75,11 +75,18 @@ public class SatelliteGraphViewer<V extends VisualVertex, E extends VisualEdge<V
|
|||||||
return new VisualVertexSatelliteRenderer<>();
|
return new VisualVertexSatelliteRenderer<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The options for this viewer
|
||||||
|
* @param options the options
|
||||||
|
*/
|
||||||
public void setGraphOptions(VisualGraphOptions options) {
|
public void setGraphOptions(VisualGraphOptions options) {
|
||||||
this.options = options;
|
this.options = options;
|
||||||
optionsChanged();
|
optionsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called to signal that the options used by this viewer have changed
|
||||||
|
*/
|
||||||
public void optionsChanged() {
|
public void optionsChanged() {
|
||||||
setBackground(options.getGraphBackgroundColor());
|
setBackground(options.getGraphBackgroundColor());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user