View Javadoc

1   // Copyright 2006, FreeHEP
2   package org.freehep.graphicsio.test;
3   
4   import java.io.InputStream;
5   import java.io.InputStreamReader;
6   
7   import jas.hist.JASHist;
8   import jas.hist.XMLHistBuilder;
9   
10  /**
11   * 
12   * @author Mark Donszelmann
13   * @version $Id: TestHistogram.java 9338 2006-11-16 02:41:51Z duns $
14   */
15  public class TestHistogram extends TestingPanel {
16  
17  	private JASHist plot;
18  
19  	public TestHistogram(String[] args) throws Exception {
20  
21  		super(args);
22  		setName("Histogram");
23  
24  		String plotml = "TestHistogram.plotml";
25  		InputStream in = getClass().getResourceAsStream(plotml);
26  		XMLHistBuilder xhb = new XMLHistBuilder(new InputStreamReader(in), plotml);
27  		plot = xhb.getSoloPlot();
28  		plot.setAllowUserInteraction(false);
29          add(plot);
30  	}
31  
32  	public static void main(String[] args) throws Exception {
33  		new TestHistogram(args).runTest();
34  	}
35  
36  }