com.java4less.rchart
Class LinePlotter

java.lang.Object
  |
  +--com.java4less.rchart.ChartComponent
        |
        +--com.java4less.rchart.Plotter
              |
              +--com.java4less.rchart.LinePlotter
Direct Known Subclasses:
CurvePlotter

public class LinePlotter
extends Plotter


This is the plotter used to draw a line chart. It only admits DataSeries of type LineDataSerie.

Example:

com.java4less.rchart.LinePlotter plot=new LinePlotter();

chart.addSerie(data2);
chart.addSerie(data1);


Field Summary
 boolean fixedLimits
          clip lines using maximum and minimum values if the scale?
 int MaxMinType
          Type of the chart (ONLY MAXMIN CHARTS).
static int MM_CANDLESTICK
          Candlestick chart
static int MM_NORMAL
          normal line chart
static int MM_OHLC
          OHLC chart
 int pointSize
          size of squares that represent points.
static int TYPE_B_SPLINES
          b-spline curve.
static int TYPE_CUBIC_NATURAL
          curve.
static int TYPE_LEAST_SQUARES_LINE
          create a line using the least squares method.
static int TYPE_LINE
          normal lines
 
Fields inherited from class com.java4less.rchart.Plotter
back, backImage, depth, visibleHeight, visibleWidth, XScale, Y2Scale, YScale
 
Fields inherited from class com.java4less.rchart.ChartComponent
height, width, x, y
 
Constructor Summary
LinePlotter()
           
 
Methods inherited from class com.java4less.rchart.Plotter
addSerie, getCombinable, getNeedsAxis, getSerie, getSeriesCount, plot, plotBackground, replaceSerie, setSerie
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_LINE

public static final int TYPE_LINE
normal lines

TYPE_CUBIC_NATURAL

public static final int TYPE_CUBIC_NATURAL
curve. You must use the class CurvePlotter.

TYPE_B_SPLINES

public static final int TYPE_B_SPLINES
b-spline curve. You must use the class CurvePlotter.

TYPE_LEAST_SQUARES_LINE

public static final int TYPE_LEAST_SQUARES_LINE
create a line using the least squares method.

MM_NORMAL

public static final int MM_NORMAL
normal line chart

MM_OHLC

public static final int MM_OHLC
OHLC chart

MM_CANDLESTICK

public static final int MM_CANDLESTICK
Candlestick chart

fixedLimits

public boolean fixedLimits
clip lines using maximum and minimum values if the scale?

MaxMinType

public int MaxMinType
Type of the chart (ONLY MAXMIN CHARTS). The value can be (NORMAL, OHLC o CANDLESTICK. The first one needs maximum and minimum values, the other two also close values.

pointSize

public int pointSize
size of squares that represent points.
Constructor Detail

LinePlotter

public LinePlotter()