| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.algorithms.layout.TreeLayout<V,E>
edu.uci.ics.jung.algorithms.layout.RadialTreeLayout<V,E>
public class RadialTreeLayout<V,E>
A radial layout for Tree or Forest graphs.
| Field Summary | |
|---|---|
| protected  Map<V,PolarPoint> | polarLocations | 
| Fields inherited from class edu.uci.ics.jung.algorithms.layout.TreeLayout | 
|---|
| alreadyDone, basePositions, DEFAULT_DISTX, DEFAULT_DISTY, distX, distY, graph, locations, m_currentPoint, size | 
| Constructor Summary | |
|---|---|
| RadialTreeLayout(Forest<V,E> g)Creates an instance for the specified graph with default X and Y distances. | |
| RadialTreeLayout(Forest<V,E> g,
                 int distx)Creates an instance for the specified graph and X distance with default Y distance. | |
| RadialTreeLayout(Forest<V,E> g,
                 int distx,
                 int disty)Creates an instance for the specified graph, X distance, and Y distance. | |
| Method Summary | |
|---|---|
| protected  void | buildTree() | 
|  Map<V,PolarPoint> | getPolarLocations()Returns the map from vertices to their locations in polar coordinates. | 
| protected  void | setCurrentPositionFor(V vertex) | 
|  void | setLocation(V v,
            Point2D location)set the location of a vertex | 
|  void | setSize(Dimension size)This method is not supported by this class. | 
|  Point2D | transform(V v) | 
| Methods inherited from class edu.uci.ics.jung.algorithms.layout.TreeLayout | 
|---|
| buildTree, getCenter, getGraph, getSize, initialize, isLocked, lock, reset, setGraph, setInitializer | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected Map<V,PolarPoint> polarLocations
| Constructor Detail | 
|---|
public RadialTreeLayout(Forest<V,E> g)
public RadialTreeLayout(Forest<V,E> g,
                        int distx)
public RadialTreeLayout(Forest<V,E> g,
                        int distx,
                        int disty)
| Method Detail | 
|---|
protected void buildTree()
buildTree in class TreeLayout<V,E>public void setSize(Dimension size)
TreeLayout
setSize in interface Layout<V,E>setSize in class TreeLayout<V,E>protected void setCurrentPositionFor(V vertex)
setCurrentPositionFor in class TreeLayout<V,E>
public void setLocation(V v,
                        Point2D location)
Layout
setLocation in interface Layout<V,E>setLocation in class TreeLayout<V,E>public Map<V,PolarPoint> getPolarLocations()
public Point2D transform(V v)
transform in interface org.apache.commons.collections15.Transformer<V,Point2D>transform in class TreeLayout<V,E>| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||