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) |
RadialTreeLayout(Forest<V,E> g,
int distx) |
RadialTreeLayout(Forest<V,E> g,
int distx,
int disty) |
Modifier and Type | Method and Description |
---|---|
Point2D |
apply(V v) |
protected void |
buildTree() |
Map<V,PolarPoint> |
getPolarLocations() |
protected void |
setCurrentPositionFor(V vertex) |
void |
setLocation(V v,
Point2D location)
Changes the layout coordinates of
v to location . |
void |
setSize(Dimension size)
This method is not supported by this class.
|
buildTree, getCenter, getGraph, getSize, initialize, isLocked, lock, reset, setGraph, setInitializer
protected Map<V,PolarPoint> polarLocations
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
v
to location
.setLocation
in interface Layout<V,E>
setLocation
in class TreeLayout<V,E>
v
- the vertex whose location is to be specifiedlocation
- the coordinates of the specified locationpublic Map<V,PolarPoint> getPolarLocations()
Copyright © 2015. All rights reserved.