ProjektGraph/Main.java
2024-06-27 15:05:22 +02:00

32 lines
1.2 KiB
Java

import OurApplication.*;
import graph.EdgeMarking;
import graph.MarkedEdge;
import graph.MarkedVertex;
import graph.VertexMarking;
import visualisation.*;
import logging.*;
import visualisation.TextArea;
import javax.swing.*;
import java.awt.*;
public class Main {
public static void main(String[] args){
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);
test.init();
contentPane.add(test);
t.setVisible(true);
}
}