Package ghidra.graph.support
Class TestGraphLayout
- java.lang.Object
-
- ghidra.graph.viewer.layout.JungWrappingVisualGraphLayoutAdapter<AbstractTestVertex,TestEdge>
-
- ghidra.graph.support.TestGraphLayout
-
- All Implemented Interfaces:
com.google.common.base.Function<AbstractTestVertex,java.awt.geom.Point2D>
,edu.uci.ics.jung.algorithms.layout.Layout<AbstractTestVertex,TestEdge>
,VisualGraphLayout<AbstractTestVertex,TestEdge>
public class TestGraphLayout extends JungWrappingVisualGraphLayoutAdapter<AbstractTestVertex,TestEdge>
A graph layout used for testing.
-
-
Field Summary
-
Fields inherited from class ghidra.graph.viewer.layout.JungWrappingVisualGraphLayoutAdapter
delegate
-
-
Constructor Summary
Constructors Constructor Description TestGraphLayout(edu.uci.ics.jung.algorithms.layout.Layout<AbstractTestVertex,TestEdge> jungLayout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestGraphLayout
cloneLayout(VisualGraph<AbstractTestVertex,TestEdge> newGraph)
Creates a new version of this layout using the given graph.-
Methods inherited from class ghidra.graph.viewer.layout.JungWrappingVisualGraphLayoutAdapter
addLayoutListener, apply, calculateLocations, cloneJungLayout, dispose, getEdgeLabelRenderer, getEdgeRenderer, getEdgeShapeTransformer, getGraph, getSize, getVisualGraph, initialize, isLocked, lock, removeLayoutListener, reset, setGraph, setInitializer, setLocation, setLocation, setSize, usesEdgeArticulations
-
-
-
-
Constructor Detail
-
TestGraphLayout
public TestGraphLayout(edu.uci.ics.jung.algorithms.layout.Layout<AbstractTestVertex,TestEdge> jungLayout)
-
-
Method Detail
-
cloneLayout
public TestGraphLayout cloneLayout(VisualGraph<AbstractTestVertex,TestEdge> newGraph)
Description copied from interface:VisualGraphLayout
Creates a new version of this layout using the given graph. Also, the new layout will have the same state as this layout (i.e., vertex positions (and edge articulations, if applicable)).- Specified by:
cloneLayout
in interfaceVisualGraphLayout<AbstractTestVertex,TestEdge>
- Overrides:
cloneLayout
in classJungWrappingVisualGraphLayoutAdapter<AbstractTestVertex,TestEdge>
- Parameters:
newGraph
- the new graph for the new layout- Returns:
- the new layout
-
-