ProjektGraph/Main.java

32 lines
1.2 KiB
Java
Raw Normal View History

2024-06-27 13:05:22 +00:00
import OurApplication.*;
import graph.EdgeMarking;
import graph.MarkedEdge;
import graph.MarkedVertex;
import graph.VertexMarking;
2024-06-27 09:07:46 +00:00
import visualisation.*;
import logging.*;
2024-06-27 13:05:22 +00:00
import visualisation.TextArea;
import javax.swing.*;
import java.awt.*;
2024-06-27 09:07:46 +00:00
public class Main {
public static void main(String[] args){
2024-06-27 13:05:22 +00:00
JFrame t = new JFrame("Hallo");
JPanel contentPane = new JPanel(new GridLayout());
t.setSize(900, 900);
t.setContentPane(contentPane);
LogElementList<OurLogElement>logList=new LogElementList<OurLogElement>();
OurParameterArea parameterArea=new OurParameterArea();
OurDrawArea drawArea=new OurDrawArea(logList,"visualizationTest");
OurTextArea textArea=new OurTextArea(logList);
OurAlgorithm algorithm=new OurAlgorithm(parameterArea);
OurLegendArea legendArea=new OurLegendArea();
HybridWindow<OurDrawArea, OurTextArea, OurParameterArea, OurAlgorithm, OurLogElement, OurLegendArea> test = new HybridWindow<OurDrawArea, OurTextArea, OurParameterArea, OurAlgorithm, OurLogElement, OurLegendArea>(drawArea,textArea,parameterArea,algorithm,logList,legendArea);
2024-06-27 09:07:46 +00:00
test.init();
2024-06-27 13:05:22 +00:00
contentPane.add(test);
t.setVisible(true);
2024-06-27 09:07:46 +00:00
}
}