public class TreeLayout extends AbstractLayout implements Layout
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DISTX |
static int |
DEFAULT_DISTY |
changeSupport, vertex_locations| Constructor and Description |
|---|
TreeLayout(SparseTree g) |
TreeLayout(SparseTree g,
int distx) |
TreeLayout(SparseTree g,
int distx,
int disty) |
| Modifier and Type | Method and Description |
|---|---|
void |
advancePositions()
?
|
void |
applyFilter(Graph g)
Applies the filter to the current graph.
|
static java.util.Vector |
getAtomics(Vertex p) |
int |
getDepth(Vertex v) |
Vertex |
getRootVertex() |
boolean |
incrementsAreDone()
?
|
protected void |
initialize_local_vertex(Vertex v)
?
|
void |
initialize(java.awt.Dimension size)
Initializer, calls intialize_local and initializeLocations
to start construction process.
|
protected void |
initializeLocations()
This method calls initialize_local_vertex for each vertex,
and also adds initial coordinate information for each vertex.
|
boolean |
isIncremental()
?
|
void |
setRootVertex(Vertex rootVertex_) |
addChangeListener, dontMove, fireStateChanged, forceMove, getAVertex, getBaseKey, getChangeListeners, getCoordinates, getCurrentSize, getEdge, getEdge, getGraph, getLocation, getStatus, getVertex, getVertex, getVertexIterator, getVisibleEdges, getVisibleGraph, getVisibleVertices, getX, getY, initialize_local, initialize, initializeLocation, isLocked, lockVertex, offsetVertex, postInitialize, removeChangeListener, resize, restart, unlockVertexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforceMove, getCurrentSize, getGraph, getLocation, getStatus, getVertex, getVertex, getVisibleEdges, getVisibleVertices, getX, getY, isLocked, lockVertex, resize, restart, unlockVertexgetVertexIteratorpublic static int DEFAULT_DISTX
public static int DEFAULT_DISTY
public TreeLayout(SparseTree g)
public TreeLayout(SparseTree g, int distx)
public TreeLayout(SparseTree g, int distx, int disty)
public static java.util.Vector getAtomics(Vertex p)
public void advancePositions()
advancePositions in interface LayoutadvancePositions in class AbstractLayoutLayout.advancePositions()public void applyFilter(Graph g)
AbstractLayoutapplyFilter in interface LayoutapplyFilter in class AbstractLayoutg - a filtered graph that is a subgraph of the Graph returned by getGraphLayout.applyFilter(Graph g)public int getDepth(Vertex v)
public Vertex getRootVertex()
public boolean incrementsAreDone()
incrementsAreDone in interface LayoutLayout.incrementsAreDone()public void initialize(java.awt.Dimension size)
AbstractLayoutinitialize in interface Layoutinitialize in class AbstractLayoutprotected void initialize_local_vertex(Vertex v)
initialize_local_vertex in class AbstractLayoutAbstractLayout.initialize_local_vertex(edu.uci.ics.jung.graph.Vertex)protected void initializeLocations()
AbstractLayoutinitializeLocations in class AbstractLayoutpublic boolean isIncremental()
isIncremental in interface LayoutLayout.isIncremental()public void setRootVertex(Vertex rootVertex_)
rootVertex_ - The rootVertex_ to set.