Package ghidra.service.graph

# Interface GraphDisplayListener

All Known Implementing Classes:
  `DummyGraphDisplayListener`

public interface GraphDisplayListener
Interface for being notified when the user interacts with a visual graph display

- ## Method Summary

  Modifier and Type
  Method
  Description
  `GraphDisplayListener`
  `cloneWith(GraphDisplay graphDisplay)`
  Makes a new GraphDisplayListener of the same type as the specific instance of this GraphDisplayListener
  `void`
  `dispose()`
  Tells the listener that it is no longer needed and it can release any listeners/resources.
  `void`
  `locationFocusChanged(AttributedVertex vertex)`
  Notification that the "focused" (active) vertex has changed
  `void`
  `selectionChanged(Set<AttributedVertex> vertices)`
  Notification that the set of selected vertices has changed

- ## Method Details

  - ### selectionChanged

    void selectionChanged(Set<AttributedVertex> vertices)
    Notification that the set of selected vertices has changed
    Parameters:
      `vertices` - the set of currently selected vertices

  - ### locationFocusChanged

    void locationFocusChanged(AttributedVertex vertex)
    Notification that the "focused" (active) vertex has changed
    Parameters:
      `vertex` - the vertex that is currently "focused"

  - ### cloneWith

    GraphDisplayListener cloneWith(GraphDisplay graphDisplay)
    Makes a new GraphDisplayListener of the same type as the specific instance of this GraphDisplayListener
    Parameters:
      `graphDisplay` - the new `GraphDisplay` the new listener will support
    Returns:
      A new instance of a GraphDisplayListener that is the same type as as the instance on which it is called

  - ### dispose

    void dispose()
    Tells the listener that it is no longer needed and it can release any listeners/resources. This will be called when a `GraphDisplay` is disposed or if this listener is replaced.