59 lines
1.9 KiB
Java
59 lines
1.9 KiB
Java
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<63>fer
|
||
* DHBW Stuttgart/Campus Horb AI2008<br>
|
||
* <br>
|
||
*/
|
||
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){
|
||
LogElementList<TestLogElement>logList=new LogElementList<TestLogElement>();
|
||
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<TestDrawArea, TestTextArea, TestParameterArea, TestAlgorithm, TestLogElement, TestLegendArea> applet=new HybridWindow<TestDrawArea,TestTextArea,TestParameterArea,TestAlgorithm,TestLogElement,TestLegendArea>(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);
|
||
}
|
||
|
||
}
|