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
VisualGraphComponentProviders
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidinit(VisualGraphComponentProvider<V, E, G> provider) Called to initialize this feature when the provider and view are readyvoidproviderClosed(VisualGraphComponentProvider<V, E, G> provider) Called when the client provider is closedvoidproviderOpened(VisualGraphComponentProvider<V, E, G> provider) Called when the client provider is openedvoidreadConfigState(SaveState saveState) Called when the client wishes to restore configuration state.voidremove()Called when the provider is being disposedvoidwriteConfigState(SaveState saveState) Called when the client wishes to save configuration state.
-
Constructor Details
-
VgSatelliteFeaturette
public VgSatelliteFeaturette()
-
-
Method Details
-
writeConfigState
Description copied from interface:VisualGraphFeaturetteCalled when the client wishes to save configuration state. Features can add any state they wish to be persisted over tool launches.- Specified by:
writeConfigStatein 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:VisualGraphFeaturetteCalled when the client wishes to restore configuration state. Features can read state previously saved from a call toVisualGraphFeaturette.writeConfigState(SaveState).- Specified by:
readConfigStatein 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:VisualGraphFeaturetteCalled to initialize this feature when the provider and view are ready- Specified by:
initin 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:VisualGraphFeaturetteCalled when the client provider is opened- Specified by:
providerOpenedin interfaceVisualGraphFeaturette<V extends VisualVertex,E extends VisualEdge<V>, G extends VisualGraph<V, E>> - Parameters:
provider- the provider
-
providerClosed
Description copied from interface:VisualGraphFeaturetteCalled when the client provider is closed- Specified by:
providerClosedin 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:VisualGraphFeaturetteCalled when the provider is being disposed- Specified by:
removein interfaceVisualGraphFeaturette<V extends VisualVertex,E extends VisualEdge<V>, G extends VisualGraph<V, E>>
-
deselectAllSatellitePositions
public void deselectAllSatellitePositions()
-