/*
 * Decompiled with CFR 0_132.
 */
package DFT;

import DFT.Graph;
import DFT.Tools;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.LayoutManager;
import javax.swing.JFrame;
import javax.swing.JPanel;
import signals.Signals;

public class TraceDFT
extends JFrame {
    private static final long serialVersionUID = 1L;
    private Graph graph;
    private Tools tools;
    private JPanel container = new JPanel();

    public TraceDFT(Signals s, int width) {
        this.setTitle("DFT");
        this.setSize(width + 20, 500);
        this.setLocationRelativeTo(null);
        this.setDefaultCloseOperation(1);
        this.container.setLayout(new BorderLayout());
        this.graph = new Graph();
        this.tools = new Tools(s, width, this.graph);
        this.tools.setPreferredSize(new Dimension(this.getWidth(), 90));
        this.container.add((Component)this.tools, "North");
        this.container.add((Component)this.graph, "Center");
        this.setContentPane(this.container);
        this.setVisible(true);
        this.tools.repaint();
    }
}

