|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.rchart.DataSerie
public class 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[] |
htmlLinks
html links for the points when creating an html image map |
java.lang.String |
labelTemplate
template for the ChartLabel object using the @ tags. |
java.lang.String |
name
name of the serie |
double |
nullValue
|
Axis |
secondaryXAxis
shall this serie use a secondary x axis? |
Axis |
secondaryYAxis
shall this serie use a secondary y axis? |
boolean |
secondYAxis
if tue, the plotter will use the second Y axis scale to draw the data serie (see Chart.setY2Scale()). |
java.lang.String[] |
tips
tips for the values of the series |
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)
creates a data serie for the array y. |
|
DataSerie(double[] x,
double[] y)
creates a data serie for the array y. |
|
DataSerie(java.lang.Double[] x,
java.lang.Double[] y)
creates a data serie for the array of points (pairs of x,y values). |
|
DataSerie(double[] y,
int startingXValue)
|
|
DataSerie(java.lang.Double[] y,
int startingXValue)
|
Method Summary | |
---|---|
void |
addData(java.lang.Object x,
java.lang.Object y)
adds a point data to the data serie. |
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 |
replaceXValueAt(int index,
double newValue)
replace X value |
void |
replaceXYValueAt(int index,
double newValueX,
double newValueY)
replace pair of values X and Y |
void |
replaceYValueAt(int index,
double newValue)
replace Y value |
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 java.lang.String labelTemplate
public boolean secondYAxis
public double nullValue
public Axis secondaryXAxis
public Axis secondaryYAxis
public java.lang.String[] tips
public java.lang.String[] htmlLinks
Constructor Detail |
---|
public DataSerie()
public DataSerie(double[] x, double[] y)
public DataSerie(double[] y)
public DataSerie(java.lang.Double[] y)
public DataSerie(double[] y, int startingXValue)
public DataSerie(java.lang.Double[] y, int startingXValue)
public DataSerie(java.lang.Double[] x, 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 void replaceYValueAt(int index, double newValue)
index
- index of the value to replacenewValue
- public void replaceXValueAt(int index, double newValue)
index
- index of the value to replacenewValue
- public void replaceXYValueAt(int index, double newValueX, double newValueY)
index
- index of the value to replacenewValueX
- newValueY
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |