|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.java4less.rchart.DataSerie
A data serie contains the values that must be plotted on the chart. It is nothing more than a list of values an a description of the values must be plotted (color, line style ...).
Field Summary | |
java.lang.String[] |
dataLabels
labels for the values in the serie |
java.util.Vector |
hotAreas
Internal. |
java.lang.String |
name
name of the serie |
double |
nullValue
|
boolean |
secondYAxis
if tue, the plotter will use the second Y axis scale to draw the data serie (see Chart.setY2Scale()). |
java.lang.String |
valueFormat
format of the labels of the values. |
Constructor Summary | |
DataSerie()
creates an empty data serie. |
|
DataSerie(double[] y)
creates a data serie for the array y. |
|
DataSerie(java.lang.Double[] y)
|
|
DataSerie(double[] x,
double[] y)
creates a data serie for the array y. |
|
DataSerie(java.lang.Double[] x,
java.lang.Double[] y)
|
Method Summary | |
void |
addData(java.lang.Object x,
java.lang.Object y)
Adds data to the data serie. |
java.lang.String |
doubleToString(java.lang.Double d)
|
java.lang.Object |
getElementX(int i)
returns x value of the element i. |
java.lang.Object |
getElementY(int i)
returns y value of the element i. |
int |
getSize()
returns the size of the data serie. |
void |
setDatax(double[] x)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.Vector hotAreas
public java.lang.String[] dataLabels
public java.lang.String name
public java.lang.String valueFormat
public boolean secondYAxis
public double nullValue
Constructor Detail |
public DataSerie()
public DataSerie(double[] x, double[] y)
public DataSerie(double[] y)
public DataSerie(java.lang.Double[] x, java.lang.Double[] y)
public DataSerie(java.lang.Double[] y)
Method Detail |
public void addData(java.lang.Object x, java.lang.Object y)
public int getSize()
public void setDatax(double[] x)
public java.lang.Object getElementX(int i)
public java.lang.Object getElementY(int i)
public java.lang.String doubleToString(java.lang.Double d)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |