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,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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
TopoFRLayout.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 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.
-
-
-
Method Detail
-
setSize
public void setSize(java.awt.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:
step
in 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:
done
in interfaceedu.uci.ics.jung.algorithms.util.IterativeContext
-
-