Documentation of 'edu.uci.ics.jung.algorithms.layout.SpringLayout2' Java class
SpringLayout2
edu.uci.ics.jung.algorithms.layout

Class SpringLayout2<V,E>

  • All Implemented Interfaces:
    com.google.common.base.Function<V,java.awt.geom.Point2D>, Layout<V,E>, IterativeContext


    public class SpringLayout2<V,E>
    extends SpringLayout<V,E>
    The SpringLayout package represents a visualization of a set of nodes. The SpringLayout, which is initialized with a Graph, assigns X/Y locations to each node. When called relax(), the SpringLayout moves the visualization forward one step.
    • Constructor Detail

      • SpringLayout2

        public SpringLayout2(Graph<V,E> g)
        Constructor for a SpringLayout for a raw graph with associated dimension--the input knows how big the graph is. Defaults to the unit length function.
        Parameters:
        g - the graph on which the layout algorithm is to operate
      • SpringLayout2

        public SpringLayout2(Graph<V,E> g,
                             com.google.common.base.Function<E,java.lang.Integer> length_function)
        Constructor for a SpringLayout for a raw graph with associated component.
        Parameters:
        g - the Graph to lay out
        length_function - provides a length for each edge

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.