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, unlockVertexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyFilter, getCurrentSize, getGraph, getLocation, getVertex, getVertex, getVisibleEdges, getVisibleVertices, getX, getY, initialize, isLocked, lockVertex, resize, restart, unlockVertexgetVertexIteratorpublic FRLayout(Graph g)
public void setAttractionMultiplier(double attraction)
public void setRepulsionMultiplier(double repulsion)
public void update()
update in interface LayoutMutablepublic java.lang.String getStatus()
getStatus in interface LayoutgetStatus in class AbstractLayoutpublic void forceMove(Vertex picked, double x, double y)
AbstractLayoutforceMove in interface LayoutforceMove in class AbstractLayoutprotected void initialize_local()
AbstractLayoutinitialize_local in class AbstractLayoutpublic java.lang.Object getKey()
protected void initialize_local_vertex(Vertex v)
AbstractLayoutinitialize_local_vertex in class AbstractLayoutpublic void advancePositions()
advancePositions in interface LayoutadvancePositions in class AbstractLayoutLayout.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 Layoutpublic boolean incrementsAreDone()
incrementsAreDone in interface Layout