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 java.lang.Object implements VisualGraphFeaturette<V,E,G>
A sub-feature that provides a satellite viewer toVisualGraphComponentProvidersNote: this class installs actions to manipulate the satellite view. For these to be correctly enabled, you must produce
VgActionContextobjects in yourVisualGraphComponentProvider.getActionContext(MouseEvent)method. Specifically, the context returned must be a type ofVgActionContext, with theVgActionContext.shouldShowSatelliteActions()returning true.
-
-
Constructor Summary
Constructors Constructor Description VgSatelliteFeaturette()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentProvidergetSatelliteProvider()voidinit(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.
-
-
-
Method Detail
-
writeConfigState
public void writeConfigState(SaveState saveState)
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
public void readConfigState(SaveState saveState)
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
public void init(VisualGraphComponentProvider<V,E,G> provider)
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
public void providerOpened(VisualGraphComponentProvider<V,E,G> provider)
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
public void providerClosed(VisualGraphComponentProvider<V,E,G> provider)
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
public ComponentProvider 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>>
-
-