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, unlockVertex
public CircleLayout(Graph g)
public java.lang.String getStatus()
AbstractLayout
getStatus
in interface Layout
getStatus
in class AbstractLayout
public 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)
AbstractLayout
initialize_local_vertex
in class AbstractLayout
protected void initialize_local()
AbstractLayout
initialize_local
in class AbstractLayout
protected void initializeLocations()
AbstractLayout
initializeLocations
in class AbstractLayout
public CircleLayout.CircleVertexData getCircleData(Vertex v)
public void advancePositions()
advancePositions
in interface Layout
advancePositions
in class AbstractLayout
Layout.advancePositions()