public class ISOMLayout<V,E> extends AbstractLayout<V,E> implements IterativeContext
Modifier and Type | Class and Description |
---|---|
protected static class |
ISOMLayout.ISOMVertexData |
Modifier and Type | Field and Description |
---|---|
protected GraphElementAccessor<V,E> |
elementAccessor |
graph, initialized, locations, size
Constructor and Description |
---|
ISOMLayout()
Creates an instance which does not initialize the vertex locations.
|
ISOMLayout(Graph<V,E> g)
Creates an
ISOMLayout instance for the specified graph g . |
Modifier and Type | Method and Description |
---|---|
boolean |
done()
Returns
true if the vertex positions are no longer being
updated. |
protected ISOMLayout.ISOMVertexData |
getISOMVertexData(V v) |
java.lang.String |
getStatus()
Returns the current number of epochs and execution status, as a string.
|
void |
initialize()
Initializes fields in the node that may not have
been set during the constructor.
|
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.
|
getGraph, getSize, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocation, setSize, transform
protected GraphElementAccessor<V,E> elementAccessor
public ISOMLayout()
public java.lang.String getStatus()
public void initialize()
Layout
initialize
in interface Layout<V,E>
public void step()
step
in interface IterativeContext
protected ISOMLayout.ISOMVertexData getISOMVertexData(V v)
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 IterativeContext
true
if the vertex position updates have stopped,
false
otherwiseCopyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence