Package ghidra.graph.viewer.event.mouse
Interface VisualGraphMousePlugin<V extends VisualVertex,E extends VisualEdge<V>>
- Type Parameters:
V- the vertexE- the edge
- All Known Implementing Classes:
VisualGraphAbstractGraphMousePlugin,VisualGraphAnimatedPickingGraphMousePlugin,VisualGraphEdgeSelectionGraphMousePlugin,VisualGraphEventForwardingGraphMousePlugin,VisualGraphHoverMousePlugin,VisualGraphMouseTrackingGraphMousePlugin,VisualGraphPickingGraphMousePlugin,VisualGraphSatelliteAbstractGraphMousePlugin,VisualGraphSatelliteNavigationGraphMousePlugin,VisualGraphSatelliteScalingGraphMousePlugin,VisualGraphSatelliteTranslatingGraphMousePlugin,VisualGraphScalingGraphMousePlugin,VisualGraphScreenPositioningPlugin,VisualGraphScrollWheelPanningPlugin,VisualGraphTranslatingGraphMousePlugin,VisualGraphZoomingPickingGraphMousePlugin
public interface VisualGraphMousePlugin<V extends VisualVertex,E extends VisualEdge<V>>
An interface to provide a common set of methods for classes that could not otherwise
extend an abstract class. This interface signals that the implementer is a
VisualGraph
mouse plugin.
Note: The implementors of this interface still use the deprecated
InputEvent.getModifiers() method, since many of those classes extends from
3rd-party classes that still use them, such as PickingGraphMousePlugin. We will need
to update the library (if/when possible), or rewrite our code so that it does not use the
old 3rd-party algorithms.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddispose()Signals to perform any cleanup when this plugin is going awaydefault GraphViewer<V, E> Returns the primary/master graph viewer.default SatelliteGraphViewer<V, E> Returns the satellite graph viewer.default VisualGraphViewUpdater<V, E> getViewUpdater(GraphViewer<V, E> viewer) Returns the updater that is used to modify the primary graph viewer.default VisualGraphViewUpdater<V, E> Returns the updater that is used to modify the primary graph viewer.
-
Method Details
-
getViewer
-
getGraphViewer
Returns the primary/master graph viewer.- Parameters:
e- the mouse event from which to get the viewer- Returns:
- the viewer
-
getSatelliteGraphViewer
Returns the satellite graph viewer. This assumes that the mouse event originated from the satellite viewer.- Parameters:
e- the mouse event from which to get the viewer- Returns:
- the viewer
-
getViewUpdater
Returns the updater that is used to modify the primary graph viewer.- Parameters:
e- the mouse event from which to get the viewer- Returns:
- the updater
-
getViewUpdater
Returns the updater that is used to modify the primary graph viewer.- Parameters:
viewer- the viewer- Returns:
- the updater
-
dispose
default void dispose()Signals to perform any cleanup when this plugin is going away
-