Class GraphActionContext
java.lang.Object
docking.DefaultActionContext
ghidra.service.graph.GraphActionContext
- All Implemented Interfaces:
ActionContext
- Direct Known Subclasses:
EdgeGraphActionContext, VertexGraphActionContext
The base ActionContext for the GraphDisplay instances.
-
Constructor Summary
ConstructorsConstructorDescriptionGraphActionContext(ComponentProvider componentProvider, AttributedGraph graph, Set<AttributedVertex> selectedVertices, AttributedVertex locatedVertex) -
Method Summary
Modifier and TypeMethodDescriptionReturns the focused vertex (similar concept to the cursor in a text document)getGraph()Returns the graphReturns the set of selectedVertices in the graph
-
Constructor Details
-
GraphActionContext
public GraphActionContext(ComponentProvider componentProvider, AttributedGraph graph, Set<AttributedVertex> selectedVertices, AttributedVertex locatedVertex)
-
-
Method Details
-
getGraph
-
getSelectedVertices
Returns the set of selectedVertices in the graph- Returns:
- the set of selectedVertices in the graph
-
getFocusedVertex
Returns the focused vertex (similar concept to the cursor in a text document)- Returns:
- the focused vertex
-