|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprefuse.activity.Activity
prefuse.action.Action
prefuse.action.GroupAction
prefuse.action.layout.Layout
prefuse.action.layout.graph.TreeLayout
ca.utoronto.cs.prefuseextensions.layout.StarburstLayout
public class StarburstLayout
TreeLayout instance that computes a radial space filling layout, laying out subsequent depth levels of a tree on circles of progressively increasing radius. Based on radial layout implementation for node-link diagrams by jeffrey heer.
Nested Class Summary | |
---|---|
static class |
StarburstLayout.LabelLayout
Set label positions. |
static class |
StarburstLayout.ScaleFontAction
|
static class |
StarburstLayout.WidthType
|
Field Summary | |
---|---|
static int |
DEFAULT_RADIUS
|
static prefuse.data.Schema |
PARAMS_SCHEMA
The schema for the parameters used by this layout. |
boolean |
rootRadiusHalf
Flag to set the radius of the root node to have the radius increment of the other nodes (looks better). |
Fields inherited from class prefuse.activity.Activity |
---|
DEFAULT_STEP_TIME, INFINITY |
Constructor Summary | |
---|---|
StarburstLayout(java.lang.String group)
Creates a new StarburstLayout. |
|
StarburstLayout(java.lang.String group,
int radius)
Creates a new RadialTreeLayout using the specified radius increment between levels of the layout. |
Method Summary | |
---|---|
boolean |
getAutoScale()
Indicates if the layout automatically scales to fit the layout bounds. |
double |
getRadiusIncrement()
Set the radius increment to use between concentric circles. |
StarburstLayout.WidthType |
getWidthType()
|
void |
run(double frac)
|
void |
setAngularBounds(double theta,
double width)
Constrains this layout to the specified angular sector |
void |
setAutoScale(boolean s)
Set whether or not the layout should automatically scale itself to fit the layout bounds. |
void |
setRadiusIncrement(double inc)
Set the radius increment to use between concentric circles. |
void |
setWidthType(StarburstLayout.WidthType widthType,
java.lang.String widthField)
Set the width type, which defines how angular widths are divided among nodes. |
Methods inherited from class prefuse.action.layout.graph.TreeLayout |
---|
getLayoutRoot, setLayoutRoot |
Methods inherited from class prefuse.action.layout.Layout |
---|
getLayoutAnchor, getLayoutBounds, setLayoutAnchor, setLayoutBounds, setMargin, setX, setY |
Methods inherited from class prefuse.action.GroupAction |
---|
getGroup, setGroup |
Methods inherited from class prefuse.action.Action |
---|
getVisualization, setVisualization |
Methods inherited from class prefuse.activity.Activity |
---|
addActivityListener, alwaysRunAfter, cancel, 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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_RADIUS
public boolean rootRadiusHalf
public static final prefuse.data.Schema PARAMS_SCHEMA
Constructor Detail |
---|
public StarburstLayout(java.lang.String group)
group
- the data group to process. This should resolve to
either a Graph or Tree instance.public StarburstLayout(java.lang.String group, int radius)
group
- the data group to process. This should resolve to
either a Graph or Tree instance.radius
- the radius increment to use between subsequent rings
in the layout.Method Detail |
---|
public double getRadiusIncrement()
public void setRadiusIncrement(double inc)
inc
- the radius increment between subsequent rings of the layoutsetAutoScale(boolean)
public boolean getAutoScale()
public void setAutoScale(boolean s)
s
- true to automatically scale to fit display, false otherwisepublic void setWidthType(StarburstLayout.WidthType widthType, java.lang.String widthField)
widthType
- the new widthType to use for layoutwidthField
- if widthType FIELD is selected, this is the name of the float data
field from which to take the counts for calculating the width such that
childValue/parentValue = fraction of parent angle assigned to childpublic StarburstLayout.WidthType getWidthType()
public void setAngularBounds(double theta, double width)
theta
- the starting angle, in radianswidth
- the angular width, in radianspublic void run(double frac)
run
in class prefuse.action.GroupAction
Action.run(double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |