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()
Creates an instance which does not initialize the vertex locations.
|
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.
|
RadialTreeLayout(int distx)
Creates an instance for the specified graph and X distance with
default Y distance.
|
RadialTreeLayout(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()
public RadialTreeLayout(Forest<V,E> g)
public RadialTreeLayout(Forest<V,E> g, int distx)
public RadialTreeLayout(int distx)
public RadialTreeLayout(int distx, int disty)
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()
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence