All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class MSBChart.BarPlotter

java.lang.Object
   |
   +----MSBChart.ChartComponent
           |
           +----MSBChart.Plotter
                   |
                   +----MSBChart.BarPlotter

public class BarPlotter
extends Plotter

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

Example:

MSBChart.BarPlotter plot=new BarPlotter();
plot.interBarSpace=1;

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

 


Variable Index

 o barWidth
 o cumulative
 o interBarSpace
 o InterGroupSpace
 o verticalBars

Constructor Index

 o BarPlotter()

Method Index

 o addSerie(DataSerie)

Variables

 o verticalBars
 public boolean verticalBars
this fields indicates whether bars (horizontal) or columns (vertical) should be used.
 
 o barWidth
 public int barWidth
Width of the bar. This will be automatically calculated if not specified (pixels).
 o interBarSpace
 public int interBarSpace
space between two bars (pixels).
 
 o InterGroupSpace
 public double InterGroupSpace
 
space between two groups of bars (pixels). This will be automatically calculated if not specified.
 o cumulative
 public boolean cumulative
If true the bars will be display on the top of each other to create a stack bar chart.

Constructors

 o BarPlotter
 public BarPlotter()

Methods

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index