prefuse.action.layout
Class CollapsedSubtreeLayout
java.lang.Object
prefuse.activity.Activity
prefuse.action.Action
prefuse.action.GroupAction
prefuse.action.layout.Layout
prefuse.action.layout.CollapsedSubtreeLayout
public class CollapsedSubtreeLayout
- extends Layout
Layout Action that sets the positions for newly collapsed or newly
expanded nodes of a tree. This action updates positions such that
nodes flow out from their parents or collapse back into their parents
upon animated transitions.
- Author:
- jeffrey heer
Fields inherited from class prefuse.action.Action |
m_vis |
Method Summary |
int |
getOrientation()
Get the layout orientation, determining which point nodes will collapse
or exapnd from. |
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
void |
setOrientation(int orientation)
Set the layout orientation, determining which point nodes will collapse
or exapnd from. |
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 |
CollapsedSubtreeLayout
public CollapsedSubtreeLayout(java.lang.String group)
- Create a new CollapsedSubtreeLayout. By default, nodes will collapse
to the center point of their parents.
- Parameters:
group
- the data group to layout (only newly collapsed or newly
expanded items will be considered, as determined by their current
visibility settings).
CollapsedSubtreeLayout
public CollapsedSubtreeLayout(java.lang.String group,
int orientation)
- Create a new CollapsedSubtreeLayout.
- Parameters:
group
- the data group to layout (only newly collapsed or newly
expanded items will be considered, as determined by their current
visibility settings).orientation
- the layout orientation, determining which point
nodes will collapse/expand from. Valid values are
Constants.ORIENT_CENTER
,
Constants.ORIENT_LEFT_RIGHT
,
Constants.ORIENT_RIGHT_LEFT
,
Constants.ORIENT_TOP_BOTTOM
, and
Constants.ORIENT_BOTTOM_TOP
.
getOrientation
public int getOrientation()
- Get the layout orientation, determining which point nodes will collapse
or exapnd from. Valid values are
Constants.ORIENT_CENTER
,
Constants.ORIENT_LEFT_RIGHT
,
Constants.ORIENT_RIGHT_LEFT
,
Constants.ORIENT_TOP_BOTTOM
, and
Constants.ORIENT_BOTTOM_TOP
.
- Returns:
- the layout orientation
setOrientation
public void setOrientation(int orientation)
- Set the layout orientation, determining which point nodes will collapse
or exapnd from. Valid values are
Constants.ORIENT_CENTER
,
Constants.ORIENT_LEFT_RIGHT
,
Constants.ORIENT_RIGHT_LEFT
,
Constants.ORIENT_TOP_BOTTOM
, and
Constants.ORIENT_BOTTOM_TOP
.
- Parameters:
orientation
- the layout orientation 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