2020-03-21 00:37:09 +00:00
|
|
|
package de.wwwu.awolf.view.panels.tabs;
|
2017-09-10 15:45:47 +00:00
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
import java.awt.*;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implementierung verschiedener Algorithmen zur Berechnung von Ausgleichsgeraden.
|
|
|
|
*
|
|
|
|
* @Author: Armin Wolf
|
|
|
|
* @Email: a_wolf28@uni-muenster.de
|
|
|
|
* @Date: 26.06.2017.
|
|
|
|
*/
|
|
|
|
public class TSPanel extends TabPanel {
|
|
|
|
|
|
|
|
|
|
|
|
private JPanel continer;
|
|
|
|
private GridBagConstraints gbc;
|
|
|
|
|
2017-10-17 06:34:55 +00:00
|
|
|
/**
|
|
|
|
* Konstruktor
|
|
|
|
*/
|
2017-09-10 15:45:47 +00:00
|
|
|
public TSPanel() {
|
|
|
|
super();
|
|
|
|
|
|
|
|
this.continer = new JPanel();
|
|
|
|
this.continer.setLayout(new GridBagLayout());
|
|
|
|
|
|
|
|
this.gbc = new GridBagConstraints();
|
|
|
|
this.gbc.anchor = GridBagConstraints.NORTH;
|
|
|
|
this.gbc.fill = GridBagConstraints.HORIZONTAL;
|
|
|
|
|
|
|
|
JPanel buttonPanel = new JPanel();
|
|
|
|
buttonPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
|
|
|
|
|
|
|
|
gbc.insets = new Insets(10, 0, 10, 0);
|
|
|
|
gbc.gridx = 0;
|
|
|
|
gbc.gridy = 0;
|
|
|
|
gbc.weightx = 0.05;
|
|
|
|
gbc.weighty = 0.05;
|
|
|
|
buttonPanel.add(getStartButton());
|
|
|
|
continer.add(buttonPanel, gbc);
|
|
|
|
|
|
|
|
getNorthPanel().add(continer, BorderLayout.CENTER);
|
|
|
|
this.add(getNorthPanel(), BorderLayout.NORTH);
|
|
|
|
}
|
|
|
|
}
|