Package ghidra.app.services
Interface GraphService
-
public interface GraphServiceService for getting a Graph display.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Change Modifier and Type Method Description GraphDatacreateGraphContent()Create Graph Data compatible with this graph servicevoidfireLocationEvent(java.lang.Object location)Set the location for all connected graphs and fire a location event for Ghidra.booleanfireNotificationEvent(java.lang.String notificationType, GraphSelectionHandler handler)Handle notification from graph.voidfireSelectionEvent(java.lang.Object selection)Set the selection for all connected graphs and fire a selection event for Ghidra.GraphDisplaygetGraphDisplay()Get a graph display.GraphDisplaygetGraphDisplay(boolean newDisplay)Get a graph display.voidsetLocation(java.lang.Object location)Send specified location object to all connected graphs that understand the concept of "location."voidsetSelection(java.lang.Object selection)Send specified selection object to all connected graphs that understand the concept of "selection."
-
-
-
Method Detail
-
createGraphContent
GraphData createGraphContent()
Create Graph Data compatible with this graph service
-
getGraphDisplay
GraphDisplay getGraphDisplay(boolean newDisplay) throws GraphException
Get a graph display.- Parameters:
newDisplay- a new graph window will be used if true.- Throws:
GraphException- if unable to obtain a graph window.
-
getGraphDisplay
GraphDisplay getGraphDisplay() throws GraphException
Get a graph display.- Throws:
GraphException- if unable to obtain a graph window.
-
setSelection
void setSelection(java.lang.Object selection)
Send specified selection object to all connected graphs that understand the concept of "selection."- Parameters:
selection- selection object to interpret
-
setLocation
void setLocation(java.lang.Object location)
Send specified location object to all connected graphs that understand the concept of "location."- Parameters:
location- location object to interpret
-
fireSelectionEvent
void fireSelectionEvent(java.lang.Object selection)
Set the selection for all connected graphs and fire a selection event for Ghidra.- Parameters:
selection- selection object to interpret
-
fireLocationEvent
void fireLocationEvent(java.lang.Object location)
Set the location for all connected graphs and fire a location event for Ghidra.- Parameters:
location- location object to interpret
-
fireNotificationEvent
boolean fireNotificationEvent(java.lang.String notificationType, GraphSelectionHandler handler)Handle notification from graph.- Parameters:
notificationType- command generated from graphhandler- associated graph handler- Returns:
- true if notification was handled and there is no need for any other graph service provider to notified.
-
-