Package ghidra.graph.viewer.layout
Class LayoutPositions<V extends VisualVertex,E extends VisualEdge<V>>
- java.lang.Object
-
- ghidra.graph.viewer.layout.LayoutPositions<V,E>
-
public class LayoutPositions<V extends VisualVertex,E extends VisualEdge<V>> extends java.lang.Object
Simple container class to hold vertex locations (points) and edge articulation locations (points). The only complicated code in this class is the use of transformers to create copies of the given points as they are accessed so that the original points remain unmodified.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V extends VisualVertex,E extends VisualEdge<V>>
LayoutPositions<V,E>createEmptyPositions()
static <V extends VisualVertex,E extends VisualEdge<V>>
LayoutPositions<V,E>createNewPositions(java.util.Map<V,java.awt.geom.Point2D> vertexLocations, java.util.Map<E,java.util.List<java.awt.geom.Point2D>> edgeArticulations)
void
dispose()
static <V extends VisualVertex,E extends VisualEdge<V>>
LayoutPositions<V,E>getCurrentPositions(VisualGraph<V,E> graph, edu.uci.ics.jung.algorithms.layout.Layout<V,E> graphLayout)
java.util.Map<E,java.util.List<java.awt.geom.Point2D>>
getEdgeArticulations()
java.util.Map<V,java.awt.geom.Point2D>
getVertexLocations()
-
-
-
Method Detail
-
getCurrentPositions
public static <V extends VisualVertex,E extends VisualEdge<V>> LayoutPositions<V,E> getCurrentPositions(VisualGraph<V,E> graph, edu.uci.ics.jung.algorithms.layout.Layout<V,E> graphLayout)
-
createEmptyPositions
public static <V extends VisualVertex,E extends VisualEdge<V>> LayoutPositions<V,E> createEmptyPositions()
-
createNewPositions
public static <V extends VisualVertex,E extends VisualEdge<V>> LayoutPositions<V,E> createNewPositions(java.util.Map<V,java.awt.geom.Point2D> vertexLocations, java.util.Map<E,java.util.List<java.awt.geom.Point2D>> edgeArticulations)
-
getVertexLocations
public java.util.Map<V,java.awt.geom.Point2D> getVertexLocations()
-
getEdgeArticulations
public java.util.Map<E,java.util.List<java.awt.geom.Point2D>> getEdgeArticulations()
-
dispose
public void dispose()
-
-