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, unlockVertex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forceMove, getCurrentSize, getGraph, getLocation, getStatus, getVertex, getVertex, getVisibleEdges, getVisibleVertices, getX, getY, isLocked, lockVertex, resize, restart, unlockVertex
getVertexIterator
public 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 Layout
advancePositions
in class AbstractLayout
Layout.advancePositions()
public void applyFilter(Graph g)
AbstractLayout
applyFilter
in interface Layout
applyFilter
in class AbstractLayout
g
- a filtered graph that is a subgraph of the Graph returned by getGraph
Layout.applyFilter(Graph g)
public int getDepth(Vertex v)
public Vertex getRootVertex()
public boolean incrementsAreDone()
incrementsAreDone
in interface Layout
Layout.incrementsAreDone()
public void initialize(java.awt.Dimension size)
AbstractLayout
initialize
in interface Layout
initialize
in class AbstractLayout
protected void initialize_local_vertex(Vertex v)
initialize_local_vertex
in class AbstractLayout
AbstractLayout.initialize_local_vertex(edu.uci.ics.jung.graph.Vertex)
protected void initializeLocations()
AbstractLayout
initializeLocations
in class AbstractLayout
public boolean isIncremental()
isIncremental
in interface Layout
Layout.isIncremental()
public void setRootVertex(Vertex rootVertex_)
rootVertex_
- The rootVertex_ to set.