public class RadialTreeLayout<V,E> extends TreeLayout<V,E>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<V,PolarPoint> |
polarLocations |
alreadyDone, basePositions, DEFAULT_DISTX, DEFAULT_DISTY, distX, distY, graph, locations, m_currentPoint, size
Constructor and Description |
---|
RadialTreeLayout(edu.uci.ics.jung.graph.Forest<V,E> g)
Creates an instance for the specified graph with default X and Y distances.
|
RadialTreeLayout(edu.uci.ics.jung.graph.Forest<V,E> g,
int distx)
Creates an instance for the specified graph and X distance with
default Y distance.
|
RadialTreeLayout(edu.uci.ics.jung.graph.Forest<V,E> g,
int distx,
int disty)
Creates an instance for the specified graph, X distance, and Y distance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildTree() |
java.util.Map<V,PolarPoint> |
getPolarLocations()
Returns the map from vertices to their locations in polar coordinates.
|
protected void |
setCurrentPositionFor(V vertex) |
void |
setLocation(V v,
java.awt.geom.Point2D location)
set the location of a vertex
|
void |
setSize(java.awt.Dimension size)
This method is not supported by this class.
|
java.awt.geom.Point2D |
transform(V v) |
buildTree, getCenter, getGraph, getSize, initialize, isLocked, lock, reset, setGraph, setInitializer
protected java.util.Map<V,PolarPoint> polarLocations
public RadialTreeLayout(edu.uci.ics.jung.graph.Forest<V,E> g)
public RadialTreeLayout(edu.uci.ics.jung.graph.Forest<V,E> g, int distx)
protected void buildTree()
buildTree
in class TreeLayout<V,E>
public void setSize(java.awt.Dimension size)
TreeLayout
protected void setCurrentPositionFor(V vertex)
setCurrentPositionFor
in class TreeLayout<V,E>
public void setLocation(V v, java.awt.geom.Point2D location)
Layout
setLocation
in interface Layout<V,E>
setLocation
in class TreeLayout<V,E>
public java.util.Map<V,PolarPoint> getPolarLocations()