Package ghidra.service.graph
Class GraphActionContext
- java.lang.Object
 - 
- docking.ActionContext
 - 
- ghidra.service.graph.GraphActionContext
 
 
 
- 
- Direct Known Subclasses:
 EdgeGraphActionContext,VertexGraphActionContext
public class GraphActionContext extends ActionContext
The base ActionContext for the GraphDisplay instances. 
- 
- 
Constructor Summary
Constructors Constructor Description GraphActionContext(ComponentProvider componentProvider, AttributedGraph graph, java.util.Set<AttributedVertex> selectedVertices, AttributedVertex locatedVertex) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributedVertexgetFocusedVertex()Returns the focused vertex (similar concept to the cursor in a text document)AttributedGraphgetGraph()Returns the graphjava.util.Set<AttributedVertex>getSelectedVertices()Returns the set of selectedVertices in the graph- 
Methods inherited from class docking.ActionContext
getComponentProvider, getContextObject, getGlobalContext, getMouseEvent, getSourceComponent, getSourceObject, setContextObject, setMouseEvent, setSourceObject, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
GraphActionContext
public GraphActionContext(ComponentProvider componentProvider, AttributedGraph graph, java.util.Set<AttributedVertex> selectedVertices, AttributedVertex locatedVertex)
 
 - 
 
- 
Method Detail
- 
getGraph
public AttributedGraph getGraph()
Returns the graph- Returns:
 - the graph
 
 
- 
getSelectedVertices
public java.util.Set<AttributedVertex> getSelectedVertices()
Returns the set of selectedVertices in the graph- Returns:
 - the set of selectedVertices in the graph
 
 
- 
getFocusedVertex
public AttributedVertex getFocusedVertex()
Returns the focused vertex (similar concept to the cursor in a text document)- Returns:
 - the focused vertex
 
 
 - 
 
 -