Class TopoFRLayout<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.algorithms.layout.AbstractLayout<V,E>
-
- org.opennms.features.topology.app.internal.jung.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classTopoFRLayout.FRVertexData
-
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 voidcalcAttraction(E e)protected voidcalcPositions(V v)protected voidcalcRepulsion(V v1)booleandone()Returns true once the current iteration has passed the maximum count, MAX_ITERATIONS.protected TopoFRLayout.FRVertexDatagetFRData(V v)voidinitialize()booleanisIncremental()This one is an incremental visualization.voidreset()voidsetAttractionMultiplier(double attraction)Sets the attraction multiplier.voidsetMaxIterations(int maxIterations)Sets the maximum number of iterations.voidsetRepulsionMultiplier(double repulsion)Sets the repulsion multiplier.voidsetSize(Dimension size)voidstep()Moves the iteration forward one notch, calculation attraction and repulsion between vertices and edges and cooling the temperature.
-
-
-
Method Detail
-
setSize
public void setSize(Dimension size)
-
setAttractionMultiplier
public void setAttractionMultiplier(double attraction)
Sets the attraction multiplier.
-
setRepulsionMultiplier
public void setRepulsionMultiplier(double repulsion)
Sets the repulsion multiplier.
-
reset
public void reset()
-
initialize
public void initialize()
-
step
public void step()
Moves the iteration forward one notch, calculation attraction and repulsion between vertices and edges and cooling the temperature.- Specified by:
stepin interfaceedu.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.
-
getFRData
protected TopoFRLayout.FRVertexData getFRData(V v)
-
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:
donein interfaceedu.uci.ics.jung.algorithms.util.IterativeContext
-
-