package nxm.sys.test;

/** Sample Swing JFrame for SD360 macro for %test_panel_jsetup.

    @author Neon Ngo
 */
@SuppressWarnings({"serial","rawtypes","unchecked"}) // <-- NOTE: JDK7 has some unchecked & rawtypes Xlint warnings that CANNOT be fixed since we still support JDK6
public class test_panel_jsetup_no_pane0 extends javax.swing.JFrame {

  /** Creates new form test_panel_jsetup_no_pane0 */
  public test_panel_jsetup_no_pane0() {
    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.
   */
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    state = new javax.swing.ButtonGroup();
    jSplitPane1 = new javax.swing.JSplitPane();
    jPanel1 = new javax.swing.JPanel();
    run = new javax.swing.JToggleButton();
    pause = new javax.swing.JToggleButton();
    exit = new javax.swing.JToggleButton();
    jLabel3 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    Shape = new javax.swing.JComboBox();
    sfreq = new javax.swing.JSpinner();
    jPanel2 = new javax.swing.JPanel();
    plot1 = new nxm.sys.libg.MidasDisplay();
    plot2 = new nxm.sys.libg.PushPopPanel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("test_panel_jsetup_no_pane0");
    setBounds(new java.awt.Rectangle(290, 365, 500, 250));
    setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

    jSplitPane1.setDividerLocation(220);

    state.add(run);
    run.setText("Run");
    run.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);

    state.add(pause);
    pause.setText("Pause");

    state.add(exit);
    exit.setText("Exit");

    jLabel3.setText("Shape");

    jLabel2.setText("SineFreq");

    Shape.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Sine", "Cosine", "Square", "Triangle", "SawTooth", "Pulse", "Constant", "Zero", "White" }));

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
      jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(jPanel1Layout.createSequentialGroup()
        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
          .addGroup(jPanel1Layout.createSequentialGroup()
            .addComponent(run, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(pause)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(exit, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))
          .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addComponent(jLabel3)
              .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
              .addComponent(sfreq, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
              .addComponent(Shape, javax.swing.GroupLayout.Alignment.LEADING, 0, 120, Short.MAX_VALUE))))
        .addContainerGap())
    );
    jPanel1Layout.setVerticalGroup(
      jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(jPanel1Layout.createSequentialGroup()
        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
          .addComponent(run)
          .addComponent(pause)
          .addComponent(exit))
        .addGap(27, 27, 27)
        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
          .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
          .addComponent(Shape, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
          .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
          .addComponent(sfreq, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        .addContainerGap(235, Short.MAX_VALUE))
    );

    jSplitPane1.setLeftComponent(jPanel1);

    javax.swing.GroupLayout plot1Layout = new javax.swing.GroupLayout(plot1);
    plot1.setLayout(plot1Layout);
    plot1Layout.setHorizontalGroup(
      plot1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGap(0, 257, Short.MAX_VALUE)
    );
    plot1Layout.setVerticalGroup(
      plot1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGap(0, 130, Short.MAX_VALUE)
    );

    plot2.setTitle("Plot With Push Pop Panel");

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
      jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(jPanel2Layout.createSequentialGroup()
        .addContainerGap()
        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
          .addComponent(plot2, javax.swing.GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE)
          .addComponent(plot1, javax.swing.GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE)))
    );
    jPanel2Layout.setVerticalGroup(
      jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(jPanel2Layout.createSequentialGroup()
        .addContainerGap()
        .addComponent(plot1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
        .addGap(18, 18, 18)
        .addComponent(plot2, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)
        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    );

    jSplitPane1.setRightComponent(jPanel2);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE)
        .addContainerGap())
    );
    layout.setVerticalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(layout.createSequentialGroup()
        .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 337, Short.MAX_VALUE)
        .addContainerGap())
    );

    pack();
  }// </editor-fold>//GEN-END:initComponents

  /** main
      @param args the command line arguments
   */
  public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
      public void run() {
        new test_panel_jsetup_no_pane0().setVisible(true);
      }
    });
  }

  // Variables declaration - do not modify//GEN-BEGIN:variables
  /** The shape combo box for selecting the shape of the line plot */
  private javax.swing.JComboBox Shape;
  /** The Exit button */
  private javax.swing.JToggleButton exit;
  /** The sine frequency label */
  private javax.swing.JLabel jLabel2;
  /** The shape label */
  private javax.swing.JLabel jLabel3;
  /** The left settings panel containing the Run, Pause, and Exit buttons, the shape combo box, and the sine frequency spinner */
  private javax.swing.JPanel jPanel1;
  /** The right plot panel containing both plots */
  private javax.swing.JPanel jPanel2;
  /** The split pane containing the left settings panel and the right plot panel */
  private javax.swing.JSplitPane jSplitPane1;
  /** The Pause button */
  private javax.swing.JToggleButton pause;
  /** The top plot */
  private nxm.sys.libg.MidasDisplay plot1;
  /** The bottom plot */
  private nxm.sys.libg.PushPopPanel plot2;
  /** The Run button */
  private javax.swing.JToggleButton run;
  /** The sine frequency spinner for setting the sinewave frequency of the line plot */
  private javax.swing.JSpinner sfreq;
  /** The state button group containing the Run, Pause, and Exit buttons */
  private javax.swing.ButtonGroup state;
  // End of variables declaration//GEN-END:variables

}
