com.java4less.rchart
Class LineDataSerie

java.lang.Object
  |
  +--com.java4less.rchart.DataSerie
        |
        +--com.java4less.rchart.LineDataSerie
Direct Known Subclasses:
MaxMinDataSerie

public class LineDataSerie
extends DataSerie


A LineDataSerie is a DataSerie that must be plotted using lines.


double[] d1={1,2,3,4,5,4,2};
double[] d2={2,3,4,6,6.4,4.5,6.1};

LineDataSerie data1= new LineDataSerie(d1,new LineStyle(0.2f,java.awt.Color.blue,LineStyle.LINE_DOTS));
data1.drawPoint=true;
data1.icon=im1; // assignes image for the point

LineDataSerie data2= new LineDataSerie(d2,new LineStyle(0.2f,java.awt.Color.green,LineStyle.LINE_DOTS));
data2.drawPoint=true;
data2.icon=im2; // assignes image for the point


Field Summary
 boolean drawPoint
          if true a point will be displayed for each vakue of the serie.
 FillStyle fillStyle
          fill style used for area charts.
 java.awt.Image icon
          image used to draw the point of the serie.
 int lineType
          select line type.
 java.awt.Color pointColor
          color of the point
 LineStyle style
          style of the line for this serie.
 java.awt.Color valueColor
          color used to draw the values of the serie.
 java.awt.Font valueFont
          font used to draw the values of the serie.
 LineStyle vstyle
          style of the vertical line from the point to the x axis,
 
Fields inherited from class com.java4less.rchart.DataSerie
dataLabels, hotAreas, name, nullValue, secondYAxis, valueFormat
 
Constructor Summary
LineDataSerie(double[] x, double[] y, LineStyle s)
           
LineDataSerie(java.lang.Double[] x, java.lang.Double[] y, LineStyle s)
           
LineDataSerie(double[] y, LineStyle s)
           
LineDataSerie(java.lang.Double[] y, LineStyle s)
           
LineDataSerie(LineStyle s)
           
 
Methods inherited from class com.java4less.rchart.DataSerie
addData, doubleToString, getElementX, getElementY, getSize, setDatax
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

style

public LineStyle style
style of the line for this serie.

vstyle

public LineStyle vstyle
style of the vertical line from the point to the x axis,

icon

public java.awt.Image icon
image used to draw the point of the serie.

valueColor

public java.awt.Color valueColor
color used to draw the values of the serie.

valueFont

public java.awt.Font valueFont
font used to draw the values of the serie.

drawPoint

public boolean drawPoint
if true a point will be displayed for each vakue of the serie.

pointColor

public java.awt.Color pointColor
color of the point

fillStyle

public FillStyle fillStyle
fill style used for area charts.

lineType

public int lineType
select line type. The default is TYPE_LINE. Other values (TYPE_CUBIC_NATURAL,TYPE_B_SPLINES ) requiere the use of the curvePlotter.
Constructor Detail

LineDataSerie

public LineDataSerie(LineStyle s)

LineDataSerie

public LineDataSerie(double[] x,
                     double[] y,
                     LineStyle s)

LineDataSerie

public LineDataSerie(java.lang.Double[] x,
                     java.lang.Double[] y,
                     LineStyle s)

LineDataSerie

public LineDataSerie(java.lang.Double[] y,
                     LineStyle s)

LineDataSerie

public LineDataSerie(double[] y,
                     LineStyle s)