Package ghidra.app.services
Interface GraphService
-
public interface GraphService
Service for getting a Graph display.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GraphData
createGraphContent()
Create Graph Data compatible with this graph servicevoid
fireLocationEvent(java.lang.Object location)
Set the location for all connected graphs and fire a location event for Ghidra.boolean
fireNotificationEvent(java.lang.String notificationType, GraphSelectionHandler handler)
Handle notification from graph.void
fireSelectionEvent(java.lang.Object selection)
Set the selection for all connected graphs and fire a selection event for Ghidra.GraphDisplay
getGraphDisplay()
Get a graph display.GraphDisplay
getGraphDisplay(boolean newDisplay)
Get a graph display.void
setLocation(java.lang.Object location)
Send specified location object to all connected graphs that understand the concept of "location."void
setSelection(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.
-
-