com.java4less.rchart
Class BarPlotter3D

java.lang.Object
  |
  +--com.java4less.rchart.ChartComponent
        |
        +--com.java4less.rchart.Plotter
              |
              +--com.java4less.rchart.BarPlotter3D

public class BarPlotter3D
extends Plotter

Plotter used to draw a bar chart. It only admits DataSeries of type BarDataSerie.


Example:


com.java4less.rchart.BarPlotter3D plot=new BarPlotter3D();
plot.interBarSpace=1;


plot.addSerie(data2);
plot.addSerie(data1);


Field Summary
 double barsBase
          start bars at this position
 int barWidth
          Width of the bar.
 boolean cumulative
          If true the bars will be display on the top of each other to create a stack bar chart.
 boolean fullDepth
          if TRUE the depth of the bars will be the same as the depth of the charts.
 int interBarSpace
          space between two bars (pixels).
 double InterGroupSpace
          space between two groups of bars (pixels).
 boolean summedLabels
          if true labels will be the summed values of the bars
 boolean verticalBars
          this fields indicates whether bars (horizontal) or columns (vertical) should be used.
 
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
BarPlotter3D()
           
 
Method Summary
 void addSerie(DataSerie s)
          adds a serie to the plotter.
 
Methods inherited from class com.java4less.rchart.Plotter
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

verticalBars

public boolean verticalBars
this fields indicates whether bars (horizontal) or columns (vertical) should be used.

barWidth

public int barWidth
Width of the bar. This will be automatically calculated if not specified (pixels).

interBarSpace

public int interBarSpace
space between two bars (pixels).

InterGroupSpace

public double InterGroupSpace
space between two groups of bars (pixels). This will be automatically calculated if not specified.

cumulative

public boolean cumulative
If true the bars will be display on the top of each other to create a stack bar chart.

barsBase

public double barsBase
start bars at this position

fullDepth

public boolean fullDepth
if TRUE the depth of the bars will be the same as the depth of the charts. If FALSE the depth of the bars will be half of the width.

summedLabels

public boolean summedLabels
if true labels will be the summed values of the bars
Constructor Detail

BarPlotter3D

public BarPlotter3D()
Method Detail

addSerie

public void addSerie(DataSerie s)
adds a serie to the plotter. Only BarDataSerie are allowed.
Overrides:
addSerie in class Plotter