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,​java.awt.geom.Point2D>

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

      • Fields inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout

        graph, initialized, locations, size
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void calcAttraction​(E e)  
      protected void calcPositions​(V v)  
      protected void calcRepulsion​(V v1)  
      boolean done()
      Returns true once the current iteration has passed the maximum count, MAX_ITERATIONS.
      protected TopoFRLayout.FRVertexData getFRData​(V v)  
      void initialize()  
      boolean isIncremental()
      This one is an incremental visualization.
      void reset()  
      void setAttractionMultiplier​(double attraction)
      Sets the attraction multiplier.
      void setMaxIterations​(int maxIterations)
      Sets the maximum number of iterations.
      void setRepulsionMultiplier​(double repulsion)
      Sets the repulsion multiplier.
      void setSize​(java.awt.Dimension size)  
      void step()
      Moves the iteration forward one notch, calculation attraction and repulsion between vertices and edges and cooling the temperature.
      • Methods inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout

        getGraph, getSize, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocation, transform
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.awt.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