|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.OpenArrayData
public class OpenArrayData
A collection class used by the Statistic classes to hold their data. Implements the jclass.chart.Chartable interface in order that the data can be charted by a JClass chart. The data here is in tabular form (a Vector of Vectors) as x,y pairs. The first row holds the x values, while the next holds the y values that correspond to these x values. Any additional rows are additional y values that also correspond to the x values. Each x, y row pair is a series.
| Field Summary | |
|---|---|
java.lang.String[] |
ptLabels
|
| Constructor Summary | |
|---|---|
OpenArrayData()
Constructs this ArrayData object |
|
| Method Summary | |
|---|---|
void |
addSeries(java.lang.String label)
Adds a series with the specified name to the data table. |
void |
addX(double x)
Adds an x value |
void |
addY(double y,
int series)
Adds a Y value to the specified series |
int |
getColSize()
Gets the current column size. |
java.lang.Object |
getDataItem(int row,
int col)
|
java.lang.String |
getName()
|
int |
getNumRows()
|
java.lang.String[] |
getPointLabels()
|
java.util.Vector |
getRow(int row)
|
java.lang.String |
getSeriesLabel(int parm1)
|
java.util.Vector |
getSeriesLabels()
Gets the names (labels) of the series |
java.lang.String |
getSeriesName(int parm1)
|
void |
setPointLabels(java.lang.String[] labels)
Sets the point labels (labels for each x value) |
void |
setYValues(java.util.Vector yVals,
int series)
Sets a Vector of y values as a series |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String[] ptLabels
| Constructor Detail |
|---|
public OpenArrayData()
| Method Detail |
|---|
public void addX(double x)
x - the x value to add
public void addY(double y,
int series)
the - y value to addseries - the series to add the y value to.
public void setYValues(java.util.Vector yVals,
int series)
yVals - the y values to addseries - the series of these yValspublic void addSeries(java.lang.String label)
label - the label for the seriespublic void setPointLabels(java.lang.String[] labels)
labels - the labels to setpublic java.util.Vector getSeriesLabels()
public int getColSize()
public java.lang.Object getDataItem(int row,
int col)
public java.lang.String getName()
public int getNumRows()
public java.lang.String[] getPointLabels()
public java.util.Vector getRow(int row)
public java.lang.String getSeriesLabel(int parm1)
public java.lang.String getSeriesName(int parm1)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||