net.comrom.chart
Class DataSerie

java.lang.Object
  extended bynet.comrom.chart.DataSerie
Direct Known Subclasses:
BarDataSerie, LineDataSerie, PieDataSerie

public class DataSerie
extends java.lang.Object


Field Summary
 java.lang.String[] dataLabels
          labels for the values in the serie
 java.util.Vector hotAreas
           
 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()
           
DataSerie(double[] y)
           
DataSerie(java.lang.Double[] y)
           
DataSerie(double[] x, double[] y)
           
DataSerie(java.lang.Double[] x, java.lang.Double[] y)
           
DataSerie(double[] y, int startingXValue)
           
DataSerie(java.lang.Double[] y, int startingXValue)
           
 
Method Summary
 void addData(java.lang.Object x, java.lang.Object y)
           
 java.lang.Object getElementX(int i)
           
 java.lang.Object getElementY(int i)
           
 int getSize()
           
 void replaceXValueAt(int index, double newValue)
           
 void replaceXYValueAt(int index, double newValueX, double newValueY)
           
 void replaceYValueAt(int index, double newValue)
           
 void setDatax(double[] x)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hotAreas

public java.util.Vector hotAreas

dataLabels

public java.lang.String[] dataLabels
labels for the values in the serie


name

public java.lang.String name
name of the serie


valueFormat

public java.lang.String valueFormat
format of the labels of the values


labelTemplate

public java.lang.String labelTemplate
template for the ChartLabel object using the @ tags.


secondYAxis

public boolean secondYAxis
if tue, the plotter will use the second Y axis scale to draw the data serie (see Chart.setY2Scale()).


nullValue

public double nullValue

secondaryXAxis

public Axis secondaryXAxis
shall this serie use a secondary x axis?


secondaryYAxis

public Axis secondaryYAxis
shall this serie use a secondary y axis?


tips

public java.lang.String[] tips
tips for the values of the series


htmlLinks

public java.lang.String[] htmlLinks
html links for the points when creating an html image map

Constructor Detail

DataSerie

public DataSerie()

DataSerie

public DataSerie(double[] x,
                 double[] y)
Parameters:
x -
y -
creates a data serie for the array of points (pairs of x,y values).

DataSerie

public DataSerie(double[] y)

DataSerie

public DataSerie(java.lang.Double[] y)

DataSerie

public DataSerie(double[] y,
                 int startingXValue)

DataSerie

public DataSerie(java.lang.Double[] y,
                 int startingXValue)

DataSerie

public DataSerie(java.lang.Double[] x,
                 java.lang.Double[] y)
Method Detail

addData

public void addData(java.lang.Object x,
                    java.lang.Object y)
Parameters:
x -

getSize

public int getSize()

setDatax

public void setDatax(double[] x)

getElementX

public java.lang.Object getElementX(int i)

getElementY

public java.lang.Object getElementY(int i)

replaceYValueAt

public void replaceYValueAt(int index,
                            double newValue)

replaceXValueAt

public void replaceXValueAt(int index,
                            double newValue)

replaceXYValueAt

public void replaceXYValueAt(int index,
                             double newValueX,
                             double newValueY)