public class CircleLayout extends AbstractLayout
| Modifier and Type | Class and Description |
|---|---|
static class |
CircleLayout.CircleVertexData |
changeSupport, vertex_locations| Constructor and Description |
|---|
CircleLayout(Graph g) |
| Modifier and Type | Method and Description |
|---|---|
void |
advancePositions()
Do nothing.
|
CircleLayout.CircleVertexData |
getCircleData(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.
|
double |
getRadius() |
java.lang.String |
getStatus()
Returns the current status of the sytem, or null if there
is no particular status to report.
|
boolean |
incrementsAreDone()
Returns true;
|
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 not incremental.
|
void |
orderVertices(Vertex[] vertices)
Specifies the order of vertices.
|
void |
setRadius(double radius) |
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, unlockVertexpublic CircleLayout(Graph g)
public java.lang.String getStatus()
AbstractLayoutgetStatus in interface LayoutgetStatus in class AbstractLayoutpublic boolean isIncremental()
public boolean incrementsAreDone()
public double getRadius()
public void setRadius(double radius)
public void orderVertices(Vertex[] vertices)
The default implemention shuffles elements randomly.
public java.lang.Object getKey()
protected void initialize_local_vertex(Vertex v)
AbstractLayoutinitialize_local_vertex in class AbstractLayoutprotected void initialize_local()
AbstractLayoutinitialize_local in class AbstractLayoutprotected void initializeLocations()
AbstractLayoutinitializeLocations in class AbstractLayoutpublic CircleLayout.CircleVertexData getCircleData(Vertex v)
public void advancePositions()
advancePositions in interface LayoutadvancePositions in class AbstractLayoutLayout.advancePositions()