pl.piotrsukiennik.jbrain.gui.SimulationHistoryPanel.java Source code

Java tutorial

Introduction

Here is the source code for pl.piotrsukiennik.jbrain.gui.SimulationHistoryPanel.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.piotrsukiennik.jbrain.gui;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import pl.piotrsukiennik.jbrain.app.SimulationController;
import pl.piotrsukiennik.jbrain.visual.BrainVisualizer;
import pl.piotrsukiennik.jbrain.visual.SpikesGraph;

import java.util.Map;

/**
 *
 * @author Piotr Sukiennik
 */
@Component
public class SimulationHistoryPanel extends javax.swing.JPanel {

    /**
     * Creates new form SimulationHistoryPanel
     */
    public SimulationHistoryPanel() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        simulationHistoryPane = new javax.swing.JTabbedPane();

        setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(simulationHistoryPane, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE));
        layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(simulationHistoryPane, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE));
    }// </editor-fold>//GEN-END:initComponents

    public void add(SimulationPanel simulationPanel) {
        simulationHistoryPane.addTab(simulationPanel.getName(), simulationPanel);
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTabbedPane simulationHistoryPane;
    // End of variables declaration//GEN-END:variables
}