Class StaticLayout<V,​E>

  • Type Parameters:
    V -
    E -
    All Implemented Interfaces:
    Layout<V,​E>, org.apache.commons.collections4.Transformer<V,​java.awt.geom.Point2D>

    public class StaticLayout<V,​E>
    extends AbstractLayout<V,​E>
    StaticLayout places the vertices in the locations specified by its Transformer initializer. Vertex locations can be placed in a Map and then supplied to this layout as follows: Transformer vertexLocations = TransformerUtils.mapTransformer(map);
    • Constructor Summary

      Constructors 
      Constructor Description
      StaticLayout​(edu.uci.ics.jung.graph.Graph<V,​E> graph)
      Creates an instance for the specified graph and default size; vertex locations are randomly assigned.
      StaticLayout​(edu.uci.ics.jung.graph.Graph<V,​E> graph, java.awt.Dimension size)
      Creates an instance for the specified graph and size.
      StaticLayout​(edu.uci.ics.jung.graph.Graph<V,​E> graph, org.apache.commons.collections4.Transformer<V,​java.awt.geom.Point2D> initializer)
      Creates an instance for the specified graph and locations, with default size.
      StaticLayout​(edu.uci.ics.jung.graph.Graph<V,​E> graph, org.apache.commons.collections4.Transformer<V,​java.awt.geom.Point2D> initializer, java.awt.Dimension size)
      Creates an instance for the specified graph, locations, and size.
    • Constructor Detail

      • StaticLayout

        public StaticLayout​(edu.uci.ics.jung.graph.Graph<V,​E> graph,
                            org.apache.commons.collections4.Transformer<V,​java.awt.geom.Point2D> initializer,
                            java.awt.Dimension size)
        Creates an instance for the specified graph, locations, and size.
      • StaticLayout

        public StaticLayout​(edu.uci.ics.jung.graph.Graph<V,​E> graph,
                            org.apache.commons.collections4.Transformer<V,​java.awt.geom.Point2D> initializer)
        Creates an instance for the specified graph and locations, with default size.
      • StaticLayout

        public StaticLayout​(edu.uci.ics.jung.graph.Graph<V,​E> graph)
        Creates an instance for the specified graph and default size; vertex locations are randomly assigned.
      • StaticLayout

        public StaticLayout​(edu.uci.ics.jung.graph.Graph<V,​E> graph,
                            java.awt.Dimension size)
        Creates an instance for the specified graph and size.
    • Method Detail

      • initialize

        public void initialize()
        Description copied from interface: Layout
        Initializes fields in the node that may not have been set during the constructor. Must be called before the iterations begin.
      • reset

        public void reset()