public class RadialTreeLayout<V,E> extends TreeLayout<V,E>
Modifier and Type | Field and Description |
---|---|
protected Map<V,PolarPoint> |
polarLocations |
alreadyDone, basePositions, DEFAULT_DISTX, DEFAULT_DISTY, distX, distY, graph, locations, m_currentPoint, size
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
buildTree, getCenter, getGraph, getSize, initialize, isLocked, lock, reset, setGraph, setInitializer
protected Map<V,PolarPoint> polarLocations
public RadialTreeLayout(Forest<V,E> g)
public RadialTreeLayout(Forest<V,E> g, int distx)
protected void buildTree()
buildTree
in class TreeLayout<V,E>
public void setSize(Dimension size)
TreeLayout
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()
Copyright © 2014. All rights reserved.