Interface GraphService


  • public interface GraphService
    Service for getting a Graph display.
    • 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.
      • 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 graph
        handler - associated graph handler
        Returns:
        true if notification was handled and there is no need for any other graph service provider to notified.