prefuse.action.layout.graph
Class BalloonTreeLayout
java.lang.Object
prefuse.activity.Activity
prefuse.action.Action
prefuse.action.GroupAction
prefuse.action.layout.Layout
prefuse.action.layout.graph.TreeLayout
prefuse.action.layout.graph.BalloonTreeLayout
public class BalloonTreeLayout
- extends TreeLayout
Layout that computes a circular "balloon-tree" layout of a tree.
This layout places children nodes radially around their parents, and is
equivalent to a top-down flattened view of a ConeTree.
The algorithm used is that of G. Melançon and I. Herman from their
research paper Circular Drawings of Rooted Trees, Reports of the Centre for
Mathematics and Computer Sciences, Report Number INS–9817, 1998.
- Author:
- jeffrey heer
Nested Class Summary |
static class |
BalloonTreeLayout.Params
Wrapper class holding parameters used for each node in this layout. |
Field Summary |
static java.lang.String |
PARAMS
The data field in which the parameters used by this layout are stored. |
static Schema |
PARAMS_SCHEMA
The schema for the parameters used by this layout. |
Fields inherited from class prefuse.action.Action |
m_vis |
Constructor Summary |
BalloonTreeLayout(java.lang.String group)
Create a new BalloonTreeLayout |
BalloonTreeLayout(java.lang.String group,
int minRadius)
Create a new BalloonTreeLayout |
Method Summary |
int |
getMinRadius()
Get the minimum radius used for a layout circle. |
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
void |
setMinRadius(int minRadius)
Set the minimum radius used for a layout circle. |
Methods inherited from class prefuse.activity.Activity |
addActivityListener, alwaysRunAfter, cancel, fireActivityCancelled, fireActivityFinished, fireActivityScheduled, fireActivityStarted, fireActivityStepped, getDuration, getNextTime, getPace, getPacingFunction, getStartTime, getStepTime, getStopTime, isEnabled, isRunning, isScheduled, removeActivityListener, run, runAfter, runAt, setDuration, setEnabled, setPacingFunction, setStartTime, setStepTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAMS
public static final java.lang.String PARAMS
- The data field in which the parameters used by this layout are stored.
- See Also:
- Constant Field Values
PARAMS_SCHEMA
public static final Schema PARAMS_SCHEMA
- The schema for the parameters used by this layout.
BalloonTreeLayout
public BalloonTreeLayout(java.lang.String group)
- Create a new BalloonTreeLayout
- Parameters:
group
- the data group to layout. Must resolve to a Graph
or Tree instance.
BalloonTreeLayout
public BalloonTreeLayout(java.lang.String group,
int minRadius)
- Create a new BalloonTreeLayout
- Parameters:
group
- the data group to layout. Must resolve to a Graph
or Tree instance.minRadius
- the minimum radius to use for a layout circle
getMinRadius
public int getMinRadius()
- Get the minimum radius used for a layout circle.
- Returns:
- the minimum layout radius
setMinRadius
public void setMinRadius(int minRadius)
- Set the minimum radius used for a layout circle.
- Parameters:
minRadius
- the minimum layout radius
run
public void run(double frac)
- Description copied from class:
Action
- Runs this Action, triggering whatever processing this Action performs.
Subclass this method to create custom Actions.
- Specified by:
run
in class GroupAction
- Parameters:
frac
- the fraction of this Action's duration that has elapsed.- See Also:
Action.run(double)
Copyright © 2007 Regents of the University of California