public class StackedAreaChart extends Layout
m_anchor, m_bounds, m_bpts, m_insets, m_margin, m_tmpa, m_tmpbm_groupDEFAULT_STEP_TIME, INFINITY| Constructor and Description |
|---|
StackedAreaChart(java.lang.String group,
java.lang.String field,
java.lang.String[] columns)
Create a new StackedAreaChart.
|
StackedAreaChart(java.lang.String group,
java.lang.String field,
java.lang.String[] columns,
double threshold)
Create a new StackedAreaChart.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOrientation()
Returns the orientation of this layout.
|
double |
getPaddingPercentage()
Gets the percentage of the layout bounds that should be reserved for
empty space at the top of the stack.
|
ValuedRangeModel |
getRangeModel()
Get the range model describing the range occupied by the value
stack.
|
double |
getThreshold()
Get the minimum height threshold under which stacks should not be
made visible.
|
boolean |
isNormalized()
Indicates if the stacks are normalized, such that each
column is independently scaled.
|
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs.
|
void |
setColumns(java.lang.String[] cols)
Set the data columns used to compute the stacked layout
|
void |
setNormalized(boolean b)
Sets if the stacks are normalized, such that each
column is independently scaled.
|
void |
setOrientation(int orient)
Sets the orientation of this layout.
|
void |
setPaddingPercentage(double p)
Sets the percentage of the layout bounds that should be reserved for
empty space at the top of the stack.
|
void |
setThreshold(double threshold)
Set the minimum height threshold under which stacks should not be
made visible.
|
getLayoutAnchor, getLayoutBounds, setLayoutAnchor, setLayoutBounds, setMargin, setX, setYgetGroup, setGroupgetVisualization, run, setVisualizationaddActivityListener, 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, setStepTimepublic StackedAreaChart(java.lang.String group,
java.lang.String field,
java.lang.String[] columns)
group - the data group to layoutfield - the data field in which to store computed polygonscolumns - the various data fields, in sorted order, that
should be referenced for each consecutive point of a stack layerpublic StackedAreaChart(java.lang.String group,
java.lang.String field,
java.lang.String[] columns,
double threshold)
group - the data group to layoutfield - the data field in which to store computed polygonscolumns - the various data fields, in sorted order, that
should be referenced for each consecutive point of a stack layerthreshold - height threshold under which stacks should not
be made visible.public void setColumns(java.lang.String[] cols)
cols - the various data fields, in sorted order, that
should be referenced for each consecutive point of a stack layerpublic void setNormalized(boolean b)
b - true to normalize, false otherwisepublic boolean isNormalized()
public double getPaddingPercentage()
public void setPaddingPercentage(double p)
p - the padding percentage to usepublic double getThreshold()
public void setThreshold(double threshold)
threshold - the minimum height threshold for visibility to usepublic ValuedRangeModel getRangeModel()
public int getOrientation()
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).public void setOrientation(int orient)
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).orient - the desired orientation of this layoutjava.lang.IllegalArgumentException - if the orientation value
is not a valid valuepublic void run(double frac)
Actionrun in class GroupActionfrac - the fraction of this Action's duration that has elapsed.Action.run(double)