Class LayoutPositions<V extends VisualVertex,​E extends VisualEdge<V>>


  • 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 Detail

      • 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()