prefuse.action.layout
Class CollapsedStackLayout
java.lang.Object
prefuse.activity.Activity
prefuse.action.Action
prefuse.action.GroupAction
prefuse.action.layout.Layout
prefuse.action.layout.CollapsedStackLayout
public class CollapsedStackLayout
- extends Layout
Layout Action that updates the outlines of polygons in a stacked line chart,
properly setting the coordinates of "collapsed" stacks.
- Author:
- jeffrey heer
Fields inherited from class prefuse.action.Action |
m_vis |
Constructor Summary |
CollapsedStackLayout(java.lang.String group)
Create a new CollapsedStackLayout. |
CollapsedStackLayout(java.lang.String group,
java.lang.String field)
Create a new CollapsedStackLayout. |
Method Summary |
int |
getOrientation()
Returns the orientation of this layout. |
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
void |
setOrientation(int orient)
Sets the orientation of this layout. |
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 |
CollapsedStackLayout
public CollapsedStackLayout(java.lang.String group)
- Create a new CollapsedStackLayout. The polygon field is assumed to be
PolygonRenderer.POLYGON
.
- Parameters:
group
- the data group to layout
CollapsedStackLayout
public CollapsedStackLayout(java.lang.String group,
java.lang.String field)
- Create a new CollapsedStackLayout.
- Parameters:
group
- the data group to layoutfield
- the data field from which to lookup the polygons
getOrientation
public int getOrientation()
- Returns the orientation of this layout. One of
Constants.ORIENT_BOTTOM_TOP
(to grow bottom-up),
Constants.ORIENT_TOP_BOTTOM
(to grow top-down),
Constants.ORIENT_LEFT_RIGHT
(to grow left-right), or
Constants.ORIENT_RIGHT_LEFT
(to grow right-left).
- Returns:
- the orientation of this layout
setOrientation
public void setOrientation(int orient)
- Sets the orientation of this layout. Must be one of
Constants.ORIENT_BOTTOM_TOP
(to grow bottom-up),
Constants.ORIENT_TOP_BOTTOM
(to grow top-down),
Constants.ORIENT_LEFT_RIGHT
(to grow left-right), or
Constants.ORIENT_RIGHT_LEFT
(to grow right-left).
- Parameters:
orient
- the desired orientation of this layout
- Throws:
java.lang.IllegalArgumentException
- if the orientation value
is not a valid value
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