prefuse.action.layout
Class CircleLayout
java.lang.Object
prefuse.activity.Activity
prefuse.action.Action
prefuse.action.GroupAction
prefuse.action.layout.Layout
prefuse.action.layout.CircleLayout
public class CircleLayout
- extends Layout
Layout action that positions visual items along a circle. By default,
items are sorted in the order in which they iterated over.
- Author:
- jeffrey heer
Fields inherited from class prefuse.action.Action |
m_vis |
Constructor Summary |
CircleLayout(java.lang.String group)
Create a CircleLayout; the radius of the circle layout will be computed
automatically based on the display size. |
CircleLayout(java.lang.String group,
double radius)
Create a CircleLayout; use the specified radius for the the circle layout,
regardless of the display size. |
Method Summary |
double |
getRadius()
Return the radius of the layout circle. |
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
void |
setRadius(double radius)
Set the radius of the 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 |
CircleLayout
public CircleLayout(java.lang.String group)
- Create a CircleLayout; the radius of the circle layout will be computed
automatically based on the display size.
- Parameters:
group
- the data group to layout
CircleLayout
public CircleLayout(java.lang.String group,
double radius)
- Create a CircleLayout; use the specified radius for the the circle layout,
regardless of the display size.
- Parameters:
group
- the data group to layoutradius
- the radius of the circle layout.
getRadius
public double getRadius()
- Return the radius of the layout circle.
- Returns:
- the circle radius
setRadius
public void setRadius(double radius)
- Set the radius of the layout circle.
- Parameters:
radius
- the circle radius to use
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