KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dinamica > charts > HorizontalBarChart


1 package dinamica.charts;
2
3 import org.jfree.chart.plot.*;
4
5 /**
6  * Chart plugin for Horizontal Bar 2D charts with multiseries support
7  * Last update: 18/11/2003
8  * @author Martin Cordova (dinamica@martincordova.com)
9  */

10 public class HorizontalBarChart extends VerticalBarChart
11 {
12
13     public void configurePlot(Plot p)
14     {
15         super.configurePlot(p);
16         CategoryPlot plot = (CategoryPlot)p;
17         plot.setOrientation(PlotOrientation.HORIZONTAL);
18         plot.setDomainGridlinesVisible(false);
19     }
20     
21 }
22
Popular Tags