Class RadialTreeLayout<V,E>
java.lang.Object
edu.uci.ics.jung.algorithms.layout.TreeLayout<V,E>
edu.uci.ics.jung.algorithms.layout.RadialTreeLayout<V,E>
- All Implemented Interfaces:
com.google.common.base.Function<V,,Point2D> Layout<V,,E> Function<V,Point2D>
A radial layout for Tree or Forest graphs.
- Author:
- Tom Nelson
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionRadialTreeLayout(Forest<V, E> g) RadialTreeLayout(Forest<V, E> g, int distx) RadialTreeLayout(Forest<V, E> g, int distx, int disty) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidsetCurrentPositionFor(V vertex) voidsetLocation(V v, Point2D location) Changes the layout coordinates ofvtolocation.voidThis method is not supported by this class.Methods inherited from class edu.uci.ics.jung.algorithms.layout.TreeLayout
buildTree, getCenter, getGraph, getSize, initialize, isLocked, lock, reset, setGraph, setInitializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
polarLocations
-
-
Constructor Details
-
RadialTreeLayout
-
RadialTreeLayout
-
RadialTreeLayout
-
-
Method Details
-
buildTree
protected void buildTree()- Overrides:
buildTreein classTreeLayout<V,E>
-
setSize
Description copied from class:TreeLayoutThis method is not supported by this class. The size of the layout is determined by the topology of the tree, and by the horizontal and vertical spacing (optionally set by the constructor). -
setCurrentPositionFor
- Overrides:
setCurrentPositionForin classTreeLayout<V,E>
-
setLocation
Description copied from interface:LayoutChanges the layout coordinates ofvtolocation.- Specified by:
setLocationin interfaceLayout<V,E> - Overrides:
setLocationin classTreeLayout<V,E> - Parameters:
v- the vertex whose location is to be specifiedlocation- the coordinates of the specified location
-
getPolarLocations
- Returns:
- a map from vertices to their locations in polar coordinates.
-
apply
-