public class FRLayout extends AbstractLayout implements LayoutMutable
Modifier and Type | Class and Description |
---|---|
static class |
FRLayout.FRVertexData |
changeSupport, vertex_locations
Modifier and Type | Method and Description |
---|---|
void |
advancePositions()
Moves the iteration forward one notch, calculation attraction and
repulsion between vertices and edges and cooling the temperature.
|
void |
calcAttraction(Edge e) |
void |
calcPositions(Vertex v) |
void |
calcRepulsion(Vertex v1) |
void |
forceMove(Vertex picked,
double x,
double y)
Forcibly moves a vertex to the (x,y) location by setting its x and y
locations to the inputted location.
|
FRLayout.FRVertexData |
getFRData(Vertex v) |
java.lang.Object |
getKey()
Returns a visualization-specific key (that is, specific both to this
instance and AbstractLayout) that can be used to access
UserData related to the AbstractLayout.
|
java.lang.String |
getStatus()
Returns the current temperature and number of iterations elapsed, as a
string.
|
boolean |
incrementsAreDone()
Returns true once the current iteration has passed the maximum count,
MAX_ITERATIONS.
|
protected void |
initialize_local_vertex(Vertex v)
Initializes the local information on a single vertex.
|
protected void |
initialize_local()
Initializes all local information, and is called immediately within the
initialize() process.
|
boolean |
isIncremental()
This one is an incremental visualization.
|
void |
setAttractionMultiplier(double attraction) |
void |
setMaxIterations(int maxIterations) |
void |
setRepulsionMultiplier(double repulsion) |
void |
update() |
addChangeListener, applyFilter, dontMove, fireStateChanged, getAVertex, getBaseKey, getChangeListeners, getCoordinates, getCurrentSize, getEdge, getEdge, getGraph, getLocation, getVertex, getVertex, getVertexIterator, getVisibleEdges, getVisibleGraph, getVisibleVertices, getX, getY, initialize, initialize, initializeLocation, initializeLocations, isLocked, lockVertex, offsetVertex, postInitialize, removeChangeListener, resize, restart, unlockVertex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyFilter, getCurrentSize, getGraph, getLocation, getVertex, getVertex, getVisibleEdges, getVisibleVertices, getX, getY, initialize, isLocked, lockVertex, resize, restart, unlockVertex
getVertexIterator
public FRLayout(Graph g)
public void setAttractionMultiplier(double attraction)
public void setRepulsionMultiplier(double repulsion)
public void update()
update
in interface LayoutMutable
public java.lang.String getStatus()
getStatus
in interface Layout
getStatus
in class AbstractLayout
public void forceMove(Vertex picked, double x, double y)
AbstractLayout
forceMove
in interface Layout
forceMove
in class AbstractLayout
protected void initialize_local()
AbstractLayout
initialize_local
in class AbstractLayout
public java.lang.Object getKey()
protected void initialize_local_vertex(Vertex v)
AbstractLayout
initialize_local_vertex
in class AbstractLayout
public void advancePositions()
advancePositions
in interface Layout
advancePositions
in class AbstractLayout
Layout.advancePositions()
public void calcPositions(Vertex v)
public void calcAttraction(Edge e)
public void calcRepulsion(Vertex v1)
public void setMaxIterations(int maxIterations)
public FRLayout.FRVertexData getFRData(Vertex v)
public boolean isIncremental()
isIncremental
in interface Layout
public boolean incrementsAreDone()
incrementsAreDone
in interface Layout