View Javadoc

1   /*
2    * Copyright (C) 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic
3    *
4    * This program is free software: you can redistribute it and/or modify
5    * it under the terms of the GNU General Public License as published by
6    * the Free Software Foundation, either version 3 of the License, or
7    * (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16   */
17  package nl.tudelft.goal.visualizer.gui.panels;
18  
19  /**
20   *
21   * @author Michiel
22   */
23  public class UT2004AgentPanel extends javax.swing.JPanel {
24  
25      /**
26       * Creates new form UT2004AgentPanel
27       */
28      public UT2004AgentPanel() {
29          initComponents();
30      }
31  
32      /**
33       * This method is called from within the constructor to initialize the form.
34       * WARNING: Do NOT modify this code. The content of this method is always
35       * regenerated by the Form Editor.
36       */
37      @SuppressWarnings("unchecked")
38      // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
39      private void initComponents() {
40  
41          jLabel1 = new javax.swing.JLabel();
42          jLabel2 = new javax.swing.JLabel();
43          jProgressBar2 = new javax.swing.JProgressBar();
44          jProgressBar3 = new javax.swing.JProgressBar();
45  
46          jLabel1.setText("Health:");
47  
48          jLabel2.setText("Armor:");
49  
50          jProgressBar3.setValue(50);
51          jProgressBar3.setString("50%");
52  
53          javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
54          this.setLayout(layout);
55          layout.setHorizontalGroup(
56              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
57              .addGroup(layout.createSequentialGroup()
58                  .addComponent(jLabel1)
59                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 81, Short.MAX_VALUE)
60                  .addComponent(jProgressBar3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
61              .addGroup(layout.createSequentialGroup()
62                  .addComponent(jLabel2)
63                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
64                  .addComponent(jProgressBar2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
65          );
66          layout.setVerticalGroup(
67              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
68              .addGroup(layout.createSequentialGroup()
69                  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
70                      .addComponent(jLabel1)
71                      .addComponent(jProgressBar3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
72                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
73                  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
74                      .addComponent(jLabel2)
75                      .addComponent(jProgressBar2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
76                  .addGap(0, 266, Short.MAX_VALUE))
77          );
78      }// </editor-fold>//GEN-END:initComponents
79      // Variables declaration - do not modify//GEN-BEGIN:variables
80      private javax.swing.JLabel jLabel1;
81      private javax.swing.JLabel jLabel2;
82      private javax.swing.JProgressBar jProgressBar2;
83      private javax.swing.JProgressBar jProgressBar3;
84      // End of variables declaration//GEN-END:variables
85  }