|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.algorithms.layout.BalloonLayout<V,E>
public class BalloonLayout<V,E>
Implements the balloon layout for the supplied Tree or Forest.
Field Summary | |
---|---|
protected Map<V,Point2D> |
locations
|
protected Map<V,PolarPoint> |
polarLocations
|
protected Map<V,Double> |
radii
|
Constructor Summary | |
---|---|
BalloonLayout(Forest<V,E> g)
|
|
BalloonLayout(Tree<V,E> g)
|
Method Summary | |
---|---|
Point2D |
getCenter()
|
Point2D |
getCenter(V v)
|
Graph<V,E> |
getGraph()
Returns the full graph (the one that was passed in at construction time) that this Layout refers to. |
Map<V,Double> |
getRadii()
|
Dimension |
getSize()
Returns the current size of the visualization's space. |
void |
initialize()
Initializes fields in the node that may not have been set during the constructor. |
boolean |
isLocked(V v)
Returns true if the position of vertex v
is locked. |
void |
lock(V v,
boolean state)
Sets a flag which fixes this vertex in place. |
void |
reset()
|
void |
setGraph(Graph<V,E> graph)
setter for graph |
void |
setInitializer(
provides initial locations for all vertices. |
void |
setLocation(V v,
Point2D location)
set the location of a vertex |
protected void |
setPolars(List<V> kids,
Point2D parentLocation,
double parentRadius)
|
protected void |
setRootPolar(V root)
|
protected void |
setRootPolars(List<V> roots)
|
void |
setSize(Dimension size)
|
Point2D |
transform(V v)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<V,Point2D> locations
protected Map<V,PolarPoint> polarLocations
protected Map<V,Double> radii
Constructor Detail |
---|
public BalloonLayout(Forest<V,E> g)
public BalloonLayout(Tree<V,E> g)
Method Detail |
---|
protected void setRootPolars(List<V> roots)
protected void setRootPolar(V root)
protected void setPolars(List<V> kids, Point2D parentLocation, double parentRadius)
public void setSize(Dimension size)
setSize
in interface Layout<V,E>
public Graph<V,E> getGraph()
Layout
getGraph
in interface Layout<V,E>
public Dimension getSize()
Layout
getSize
in interface Layout<V,E>
public void initialize()
Layout
initialize
in interface Layout<V,E>
public boolean isLocked(V v)
Layout
true
if the position of vertex v
is locked.
isLocked
in interface Layout<V,E>
public void lock(V v, boolean state)
Layout
lock
in interface Layout<V,E>
v
- vertexpublic void reset()
reset
in interface Layout<V,E>
public void setGraph(Graph<V,E> graph)
Layout
setGraph
in interface Layout<V,E>
public void setInitializer(initializer)
Layout
setInitializer
in interface Layout<V,E>
public Point2D getCenter()
public Point2D getCenter(V v)
public void setLocation(V v, Point2D location)
Layout
setLocation
in interface Layout<V,E>
public Point2D transform(V v)
public Map<V,Double> getRadii()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |