package testApplication; import javax.swing.JFrame; import logging.LogElementList; import visualisation.HybridWindow; /** * This application provides an example for using logging and visualization packages. * It uses extended classes from logging and visualization. * @see testApplication.TestAlgorithm * @see testApplication.TestApplication * @see testApplication.TestDrawArea * @see testApplication.TestHybridWindow * @see testApplication.TestLogElement * @see testApplication.TestParameterArea * @see testApplication.TestTextArea * @see testApplication.TestLegendArea * @see javax.swing.JPanel * @author MSch�fer * DHBW Stuttgart/Campus Horb AI2008
*
*/ public class TestApplication { /** * Standard constructor. */ public TestApplication() { super(); } /** * The applications main method. * Creates a HybridWindow with TestParameterArea, TestLegendArea ,TestDrawArea, TestTextArea and TestAlgorithm and starts it. * @param args */ public static void main(String[]args){ LogElementListlogList=new LogElementList(); TestParameterArea parameterArea=new TestParameterArea(); TestDrawArea drawArea=new TestDrawArea(logList,"visualization"); TestTextArea textArea=new TestTextArea(logList); TestAlgorithm algorithm=new TestAlgorithm(parameterArea); TestLegendArea legendArea=new TestLegendArea(); HybridWindow applet=new HybridWindow(drawArea,textArea,parameterArea,algorithm,logList,legendArea); JFrame frame=new JFrame("Visualise"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(applet); frame.pack(); applet.init(); applet.start(); frame.setSize(800,600); frame.setVisible(true); } }