public class ISOMLayout0<V,E>
extends edu.uci.ics.jung.algorithms.layout.AbstractLayout<V,E>
implements edu.uci.ics.jung.algorithms.util.IterativeContext
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ISOMLayout0.ISOMVertexData
ISOM data attached to node
|
| Modifier and Type | Field and Description |
|---|---|
private double |
adaption |
private static double |
COOLING_FACTOR |
private double |
coolingFactor |
protected edu.uci.ics.jung.algorithms.layout.GraphElementAccessor<V,E> |
elementAccessor |
private int |
epoch |
private static int |
EPOCH0 |
private static double |
INITIAL_ADAPTION |
private double |
initialAdaption |
(package private) java.util.Map<V,ISOMLayout0.ISOMVertexData> |
isomVertexData
Vertex to ISOM data
|
private static int |
MARGIN |
private static int |
MAX_EPOCH |
private int |
maxEpoch |
private static double |
MIN_ADAPTION |
private static int |
MIN_RADIUS |
private double |
minAdaption |
private int |
minRadius |
private java.util.List<V> |
queue |
private int |
radius |
private static int |
RADIUS_CONSTANT_TIME |
private static int |
RADIUS0 |
private int |
radiusConstantTime |
private static int |
REPULSE |
| Constructor and Description |
|---|
ISOMLayout0(edu.uci.ics.jung.graph.Graph<V,E> g)
Creates an
ISOMLayout instance for the specified graph g. |
| Modifier and Type | Method and Description |
|---|---|
private void |
adjust() |
private void |
adjustVertex(V v,
java.awt.geom.Point2D tempXYD) |
boolean |
done()
Returns
true if the vertex positions are no longer being updated. |
protected ISOMLayout0.ISOMVertexData |
getISOMVertexData(V v) |
java.lang.String |
getStatus()
Returns the current number of epochs and execution status, as a string.
|
void |
initialize() |
boolean |
isIncremental()
This one is an incremental visualization.
|
void |
reset()
Resets the layout iteration count to 0, which allows the layout algorithm to continue updating vertex positions.
|
void |
step()
Advances the current positions of the graph elements.
|
private void |
updateParameters() |
private static final int MARGIN
private static final int MAX_EPOCH
private static final int RADIUS_CONSTANT_TIME
private static final int MIN_RADIUS
private static final int REPULSE
private static final double INITIAL_ADAPTION
private static final double MIN_ADAPTION
private static final double COOLING_FACTOR
private static final int EPOCH0
private static final int RADIUS0
final java.util.Map<V,ISOMLayout0.ISOMVertexData> isomVertexData
private final int maxEpoch
private int epoch
private final int radiusConstantTime
private int radius
private final int minRadius
private double adaption
private final double initialAdaption
private final double minAdaption
private final double coolingFactor
protected final edu.uci.ics.jung.algorithms.layout.GraphElementAccessor<V,E> elementAccessor
private final java.util.List<V> queue
protected ISOMLayout0.ISOMVertexData getISOMVertexData(V v)
public void initialize()
public void step()
step in interface edu.uci.ics.jung.algorithms.util.IterativeContextprivate void updateParameters()
private void adjust()
private void adjustVertex(V v, java.awt.geom.Point2D tempXYD)
public boolean isIncremental()
true is the layout algorithm is incremental, false otherwisepublic boolean done()
true if the vertex positions are no longer being updated. Currently ISOMLayout stops updating vertex positions after a
certain number of iterations have taken place.done in interface edu.uci.ics.jung.algorithms.util.IterativeContexttrue if the vertex position updates have stopped, false otherwisepublic void reset()
public java.lang.String getStatus()