All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----MSBChart.ChartComponent | +----MSBChart.Plotter | +----MSBChart.BarPlotter
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);
public boolean verticalBars
this fields indicates whether bars (horizontal) or columns (vertical) should be used.
public int barWidth
Width of the bar. This will be automatically calculated if not specified (pixels).
public int interBarSpace
space between two bars (pixels).
public double InterGroupSpace
space between two groups of bars (pixels). This will be automatically calculated if not specified.
public boolean cumulative
If true the bars will be display on the top of each other to create a stack bar chart.
public BarPlotter()
public void addSerie(DataSerie s)
adds a serie to the plotter. Only BarDataSerie are allowed.
All Packages Class Hierarchy This Package Previous Next Index