Class BalloonLayout<V,E>
java.lang.Object
edu.uci.ics.jung.algorithms.layout.TreeLayout<V,E>
edu.uci.ics.jung.algorithms.layout.BalloonLayout<V,E>
- All Implemented Interfaces:
com.google.common.base.Function<V,Point2D>, Layout<V, E>, Function<V, Point2D>
A
Layout implementation that assigns positions to Tree or
Forest vertices using associations with nested circles ("balloons").
A balloon is nested inside another balloon if the first balloon's subtree
is a subtree of the second balloon's subtree.-
Field Summary
FieldsFields inherited from class TreeLayout
alreadyDone, basePositions, DEFAULT_DISTX, DEFAULT_DISTY, distX, distY, graph, locations, m_currentPoint, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRadii()voidsetLocation(V v, Point2D location) Changes the layout coordinates ofvtolocation.protected voidprotected voidsetRootPolar(V root) protected voidvoidThis method is not supported by this class.Methods inherited from class TreeLayout
buildTree, buildTree, getCenter, getGraph, getSize, initialize, isLocked, lock, reset, setCurrentPositionFor, setGraph, setInitializerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
polarLocations
-
radii
-
-
Constructor Details
-
BalloonLayout
-
-
Method Details
-
setRootPolars
protected void setRootPolars() -
setRootPolar
-
setPolars
-
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). -
getCenter
-
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
-
apply
-
getRadii
-