public abstract class AbstractSingleValueSetPlot extends java.lang.Object implements SingleValueSetPlot
SingleValueSetPlot
that implements the methods from SetPlot
via the additional methods in SingleValueSetPlot
.Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
labels |
Constructor and Description |
---|
AbstractSingleValueSetPlot() |
Modifier and Type | Method and Description |
---|---|
double[] |
getCounts()
sum the contents of the dataset returning an array by set
|
java.lang.String[] |
getLegends()
get the legend strings
|
Table |
getTable(java.lang.String quantity)
Create a table representing the data in this
SetPlot . |
boolean |
hasLegends() |
void |
permSets(int new_nset,
int[] perm)
permute the contents of the sets in a Dataset
labels are also permuted/truncated.
|
void |
scale(float scale)
rescale all the data by a factor
|
void |
setLegends(java.lang.String[] leg)
set the legends strings These are the labels for the different sets in this
SetPlot |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, get, set
getNumSets, setNumSets
public Table getTable(java.lang.String quantity)
SetPlot
SetPlot
.
Each set of data produces a row of the table keyed by the corresponding label.
The data columns produced are chosen by the implementing class subject to the advice that
multiple SetPlot
s that can co-exist in a single chart should also make sense when combined into
a single table.public final void permSets(int new_nset, int[] perm)
SetPlot
public void scale(float scale)
Plot
public final double[] getCounts()
SetPlot
public java.lang.String[] getLegends()
SetPlot
getLegends
in interface SetPlot
public void setLegends(java.lang.String[] leg)
SetPlot
SetPlot
setLegends
in interface SetPlot
public boolean hasLegends()
hasLegends
in interface SetPlot