net.comrom.chart
Class Plotter

java.lang.Object
  extended bynet.comrom.chart.ChartComponent
      extended bynet.comrom.chart.Plotter
Direct Known Subclasses:
BarPlotter, BarPlotter3D, GaugePlotter, LinePlotter, LinePlotter3D, PiePlotter, RadarPlotter

public class Plotter
extends ChartComponent

base class used to plot a chart.


Field Summary
 FillStyle back
          background of the plotter area.
 ChartImage backImage
          background image of the plotter area.
 int depth
          depth of the chart (in 3D charts).
 int visibleHeight
           
 int visibleWidth
           
 Scale XScale
          scale of the X Axis.
 Scale Y2Scale
          scale of the second Y axis.
 Scale YScale
          scale of the Y axis.
 
Fields inherited from class net.comrom.chart.ChartComponent
height, width, x, y
 
Constructor Summary
Plotter()
           
 
Method Summary
 void addSerie(DataSerie s)
           
 boolean getCombinable()
           
 int getNeedsAxis()
           
 DataSerie getSerie(int p)
           
 int getSeriesCount()
           
 void plot(ChartGraphics g)
           
 void plotBackground(ChartGraphics g, int bw, int bh, int offsetX, int offsetY)
           
 void replaceSerie(int p, DataSerie s)
           
 void setSerie(int p, DataSerie s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XScale

public Scale XScale
scale of the X Axis.


YScale

public Scale YScale
scale of the Y axis.


Y2Scale

public Scale Y2Scale
scale of the second Y axis.


back

public FillStyle back
background of the plotter area.


backImage

public ChartImage backImage
background image of the plotter area.


visibleWidth

public int visibleWidth

visibleHeight

public int visibleHeight

depth

public int depth
depth of the chart (in 3D charts).

Constructor Detail

Plotter

public Plotter()
Method Detail

getNeedsAxis

public int getNeedsAxis()

getCombinable

public boolean getCombinable()

plotBackground

public void plotBackground(ChartGraphics g,
                           int bw,
                           int bh,
                           int offsetX,
                           int offsetY)
Parameters:
g -
bw -
bh -
offsetX -
offsetY -
draws the background (internal use).

plot

public void plot(ChartGraphics g)
Parameters:
g -
plots the series.

getSeriesCount

public int getSeriesCount()

getSerie

public DataSerie getSerie(int p)

setSerie

public void setSerie(int p,
                     DataSerie s)

addSerie

public void addSerie(DataSerie s)

replaceSerie

public void replaceSerie(int p,
                         DataSerie s)
Parameters:
p -