View Javadoc

1   // Copyright 2001-2006 freehep
2   package org.freehep.graphicsio.test;
3   
4   import java.awt.Dimension;
5   
6   /**
7    * @author Simon Fischer
8    * @version $Id: TestApplication.java 10306 2007-01-13 00:45:55Z duns $
9    */
10  public class TestApplication {
11  
12      public static void main(String[] args) throws Exception {
13  
14          // Create a new frame to hold everything.
15          TestingFrame frame = new TestingFrame("Test Application");
16  
17          // Create a new instance of this class and add it to the frame.
18          frame.addPanel("All", new TestAll(null));
19          frame.addPanel("Clip", new TestClip(null));
20          frame.addPanel("Colors", new TestColors(null));
21          frame.addPanel("Custom Strokes", new TestCustomStrokes(null));
22          frame.addPanel("FontDerivation", new TestFontDerivation(null));
23          frame.addPanel("Fonts", new TestFonts(null));
24          frame.addPanel("Histogram", new TestHistogram(null));
25          frame.addPanel("HTML", new TestHTML(null));
26          frame.addPanel("Image2D", new TestImage2D(null));
27          frame.addPanel("Images", new TestImages(null));
28          frame.addPanel("Labels", new TestLabels(null));
29          frame.addPanel("Line Styles", new TestLineStyles(null));
30          frame.addPanel("Offset", new TestOffset(null));
31          frame.addPanel("Paint", new TestPaint(null));
32          frame.addPanel("PrintColors", new TestPrintColors(null));
33          frame.addPanel("Scatter Plot", new TestScatterPlot(null));
34          frame.addPanel("Shapes", new TestShapes(null));
35          frame.addPanel("Symbols", new TestSymbols2D(null));
36          frame.addPanel("Text2D", new TestText2D(null));
37          frame.addPanel("Tagged String", new TestTaggedString(null));
38          frame.addPanel("Transforms", new TestTransforms(null));
39          frame.addPanel("Transparency", new TestTransparency(null));
40          frame.addPanel("Rendering", new TestRenderingHints(null));
41  
42          // Give the frame a size and make it visible.
43          frame.pack();
44          frame.setSize(new Dimension(1024, 768));
45          frame.setVisible(true);
46      }
47  }