|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.visualization.AbstractLayout
scratch.scott.FastScalableMDS
public class FastScalableMDS
Field Summary | |
---|---|
protected double |
diameter
The diameter of the visible graph. |
protected UnweightedShortestPath |
unweightedShortestPaths
Stores graph distances between vertices of the visible graph |
Fields inherited from class edu.uci.ics.jung.visualization.AbstractLayout |
---|
changeSupport, vertex_locations |
Constructor Summary | |
---|---|
FastScalableMDS(Graph g)
|
Method Summary | |
---|---|
void |
advancePositions()
Implementors must override this method in order to create a Layout. |
String |
getStatus()
Returns the current status of the sytem, or null if there is no particular status to report. |
boolean |
incrementsAreDone()
Returns true once the current iteration has passed the maximum count. |
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. |
protected void |
initializeLocations()
This method calls initialize_local_vertex for each vertex, and also adds initial coordinate information for each vertex. |
boolean |
isIncremental()
This one is an incremental visualization. |
void |
setMaxIterations(int maxIterations)
|
Methods inherited from class edu.uci.ics.jung.visualization.AbstractLayout |
---|
addChangeListener, applyFilter, dontMove, fireStateChanged, forceMove, getAVertex, getBaseKey, getChangeListeners, getCoordinates, getCurrentSize, getEdge, getEdge, getGraph, getLocation, getVertex, getVertex, getVertexIterator, getVisibleEdges, getVisibleGraph, getVisibleVertices, getX, getY, initialize, initialize, initializeLocation, isLocked, lockVertex, offsetVertex, postInitialize, removeChangeListener, resize, restart, unlockVertex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double diameter
protected UnweightedShortestPath unweightedShortestPaths
Constructor Detail |
---|
public FastScalableMDS(Graph g)
Method Detail |
---|
public void advancePositions()
AbstractLayout
Note that "locked" vertices are not to be moved; however, it is the policy of the visualization to decide how to handle them, and what to do with the vertices around them. Prototypical code might include a clipping like
for (Iterator i = getVertices().iterator(); i.hasNext() ) { Vertex v = (Vertex) i.next(); if (! dontmove.contains( v ) ) { ... // handle the node } else { // ignore the node } }
advancePositions
in interface Layout
advancePositions
in class AbstractLayout
Layout.advancePositions()
public String getStatus()
AbstractLayout
getStatus
in interface Layout
getStatus
in class AbstractLayout
public boolean incrementsAreDone()
protected void initialize_local()
AbstractLayout
initialize_local
in class AbstractLayout
protected void initialize_local_vertex(Vertex v)
AbstractLayout
initialize_local_vertex
in class AbstractLayout
protected void initializeLocations()
AbstractLayout
initializeLocations
in class AbstractLayout
public boolean isIncremental()
public void setMaxIterations(int maxIterations)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |