Package ghidra.service.graph
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
ConstructorDescriptionGraphActionContext
(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 graphMethods inherited from class docking.DefaultActionContext
getComponentProvider, getContextObject, getEventClickModifiers, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceComponent, setSourceObject, toString
-
Constructor Details
-
GraphActionContext
public GraphActionContext(ComponentProvider componentProvider, AttributedGraph graph, Set<AttributedVertex> selectedVertices, AttributedVertex locatedVertex)
-
-
Method Details
-
getGraph
Returns the graph- Returns:
- the graph
-
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
-