Class TopoFRLayout<V,​E>

  • All Implemented Interfaces:
    edu.uci.ics.jung.algorithms.layout.Layout<V,​E>, edu.uci.ics.jung.algorithms.util.IterativeContext, org.apache.commons.collections15.Transformer<V,​Point2D>

    public class TopoFRLayout<V,​E>
    extends edu.uci.ics.jung.algorithms.layout.AbstractLayout<V,​E>
    implements edu.uci.ics.jung.algorithms.util.IterativeContext
    • Constructor Detail

      • TopoFRLayout

        public TopoFRLayout​(edu.uci.ics.jung.graph.Graph<V,​E> g)
        Creates an instance for the specified graph.
    • Method Detail

      • setSize

        public void setSize​(Dimension size)
        Specified by:
        setSize in interface edu.uci.ics.jung.algorithms.layout.Layout<V,​E>
        Overrides:
        setSize in class edu.uci.ics.jung.algorithms.layout.AbstractLayout<V,​E>
      • setAttractionMultiplier

        public void setAttractionMultiplier​(double attraction)
        Sets the attraction multiplier.
      • setRepulsionMultiplier

        public void setRepulsionMultiplier​(double repulsion)
        Sets the repulsion multiplier.
      • reset

        public void reset()
        Specified by:
        reset in interface edu.uci.ics.jung.algorithms.layout.Layout<V,​E>
      • initialize

        public void initialize()
        Specified by:
        initialize in interface edu.uci.ics.jung.algorithms.layout.Layout<V,​E>
      • step

        public void step()
        Moves the iteration forward one notch, calculation attraction and repulsion between vertices and edges and cooling the temperature.
        Specified by:
        step in interface edu.uci.ics.jung.algorithms.util.IterativeContext
      • calcPositions

        protected void calcPositions​(V v)
      • calcAttraction

        protected void calcAttraction​(E e)
      • calcRepulsion

        protected void calcRepulsion​(V v1)
      • setMaxIterations

        public void setMaxIterations​(int maxIterations)
        Sets the maximum number of iterations.
      • isIncremental

        public boolean isIncremental()
        This one is an incremental visualization.
      • done

        public boolean done()
        Returns true once the current iteration has passed the maximum count, MAX_ITERATIONS.
        Specified by:
        done in interface edu.uci.ics.jung.algorithms.util.IterativeContext