Package ghidra.graph.featurette
Class VgSatelliteFeaturette<V extends VisualVertex,E extends VisualEdge<V>,G extends VisualGraph<V,E>>
java.lang.Object
ghidra.graph.featurette.VgSatelliteFeaturette<V,E,G>
- Type Parameters:
V
- the vertex typeE
- the edge typeG
- the graph type
- All Implemented Interfaces:
VisualGraphFeaturette<V,
E, G>
public class VgSatelliteFeaturette<V extends VisualVertex,E extends VisualEdge<V>,G extends VisualGraph<V,E>>
extends Object
implements VisualGraphFeaturette<V,E,G>
A sub-feature that provides a satellite viewer to
VisualGraphComponentProvider
s
Note: this class installs actions to manipulate the satellite view. For these to be
correctly enabled, you must produce VgActionContext
objects in your
VisualGraphComponentProvider.getActionContext(MouseEvent)
method. Specifically,
the context returned must be a type of VgActionContext
, with the
VgActionContext.shouldShowSatelliteActions()
returning true.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(VisualGraphComponentProvider<V, E, G> provider) Called to initialize this feature when the provider and view are readyvoid
providerClosed
(VisualGraphComponentProvider<V, E, G> provider) Called when the client provider is closedvoid
providerOpened
(VisualGraphComponentProvider<V, E, G> provider) Called when the client provider is openedvoid
readConfigState
(SaveState saveState) Called when the client wishes to restore configuration state.void
remove()
Called when the provider is being disposedvoid
writeConfigState
(SaveState saveState) Called when the client wishes to save configuration state.
-
Constructor Details
-
VgSatelliteFeaturette
public VgSatelliteFeaturette()
-
-
Method Details
-
writeConfigState
Description copied from interface:VisualGraphFeaturette
Called when the client wishes to save configuration state. Features can add any state they wish to be persisted over tool launches.- Specified by:
writeConfigState
in interfaceVisualGraphFeaturette<V extends VisualVertex,
E extends VisualEdge<V>, G extends VisualGraph<V, E>> - Parameters:
saveState
- the container for state information
-
readConfigState
Description copied from interface:VisualGraphFeaturette
Called when the client wishes to restore configuration state. Features can read state previously saved from a call toVisualGraphFeaturette.writeConfigState(SaveState)
.- Specified by:
readConfigState
in interfaceVisualGraphFeaturette<V extends VisualVertex,
E extends VisualEdge<V>, G extends VisualGraph<V, E>> - Parameters:
saveState
- the container for state information
-
init
Description copied from interface:VisualGraphFeaturette
Called to initialize this feature when the provider and view are ready- Specified by:
init
in interfaceVisualGraphFeaturette<V extends VisualVertex,
E extends VisualEdge<V>, G extends VisualGraph<V, E>> - Parameters:
provider
- the provider associated with this feature
-
providerOpened
Description copied from interface:VisualGraphFeaturette
Called when the client provider is opened- Specified by:
providerOpened
in interfaceVisualGraphFeaturette<V extends VisualVertex,
E extends VisualEdge<V>, G extends VisualGraph<V, E>> - Parameters:
provider
- the provider
-
providerClosed
Description copied from interface:VisualGraphFeaturette
Called when the client provider is closed- Specified by:
providerClosed
in interfaceVisualGraphFeaturette<V extends VisualVertex,
E extends VisualEdge<V>, G extends VisualGraph<V, E>> - Parameters:
provider
- the provider
-
getSatelliteProvider
-
remove
public void remove()Description copied from interface:VisualGraphFeaturette
Called when the provider is being disposed- Specified by:
remove
in interfaceVisualGraphFeaturette<V extends VisualVertex,
E extends VisualEdge<V>, G extends VisualGraph<V, E>>
-