Package ghidra.graph.viewer.layout
Class JungLayoutProvider<V extends VisualVertex,E extends VisualEdge<V>,G extends JungDirectedVisualGraph<V,E>>
java.lang.Object
ghidra.graph.viewer.layout.AbstractLayoutProvider<V,E,G>
ghidra.graph.viewer.layout.JungLayoutProvider<V,E,G>
- Type Parameters:
V- the vertex typeE- the edge typeG- the graph type
- All Implemented Interfaces:
LayoutProvider<V,,E, G> LayoutProviderExtensionPoint<V,,E, G> ExtensionPoint
public abstract class JungLayoutProvider<V extends VisualVertex,E extends VisualEdge<V>,G extends JungDirectedVisualGraph<V,E>>
extends AbstractLayoutProvider<V,E,G>
A layout provider that works on
JungDirectedVisualGraphs. This class allows the
Jung layouts to be used where VisualGraphs are used.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLayout(G g) Returns an icon that can be used to show the provider a menu or toolbar.getLayout(G g, TaskMonitor monitor) Returns a new instance of the layout that this class providesMethods inherited from class ghidra.graph.viewer.layout.AbstractLayoutProvider
getPriorityLevel, initVertexLocationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.graph.viewer.layout.LayoutProvider
getLayoutName
-
Constructor Details
-
JungLayoutProvider
public JungLayoutProvider()
-
-
Method Details
-
createLayout
-
getLayout
Description copied from interface:LayoutProviderReturns a new instance of the layout that this class provides- Parameters:
g- the graphmonitor- a task monitor- Returns:
- the new layout
- Throws:
CancelledException- if the monitor was cancelled
-
getActionIcon
Description copied from interface:LayoutProviderReturns an icon that can be used to show the provider a menu or toolbar. This may return null, as an icon is not a requirement.- Specified by:
getActionIconin interfaceLayoutProvider<V extends VisualVertex,E extends VisualEdge<V>, G extends JungDirectedVisualGraph<V, E>> - Overrides:
getActionIconin classAbstractLayoutProvider<V extends VisualVertex,E extends VisualEdge<V>, G extends JungDirectedVisualGraph<V, E>> - Returns:
- an icon that can be used to show the provider a menu or toolbar
-