/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* JPnlResults.java
*
* Created on 19/04/2010, 00:43:56
*/
package systole.view.tabs.finalsegment;
import java.util.Observable;
import java.util.Observer;
import systole.domain.analysis.results.AnalysisResult;
/**
*
* @author jmj
*/
public class JPnlResults extends javax.swing.JPanel implements Observer {
/** Creates new form JPnlResults
* @param analysisResult
*/
public JPnlResults() {
initComponents();
}
public void update(Observable o, Object arg) {
AnalysisResult result = (AnalysisResult) arg;
this.jLblAumento.setText(result.getIar().getValueAsString());
this.jLblOS50Value.setText(result.getAos().getValueAsString());
this.jLblTValue.setText(result.getT().getValueAsString());
this.jLblAODValue.setText(result.getAod().getValueAsString());
this.jLblFreCardciavaValue.setText(result.getHeartRateAsString());
this.revalidate();
}
/** 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() {
jPnlTitle = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jPnlIAR = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jLblAumento = new javax.swing.JLabel();
jLblIncrease = new javax.swing.JLabel();
jPnlFC = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
jLblFrecuency = new javax.swing.JLabel();
jLblFreCardciavaValue = new javax.swing.JLabel();
jPnlAOS = new javax.swing.JPanel();
jLblOS50 = new javax.swing.JLabel();
jLblOS50Value = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jPnlAOD = new javax.swing.JPanel();
jLblAODValue = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLblAOD = new javax.swing.JLabel();
jPnlT = new javax.swing.JPanel();
jLblT = new javax.swing.JLabel();
jLblTValue = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
setMinimumSize(new java.awt.Dimension(180, 96));
setName("Form"); // NOI18N
setPreferredSize(new java.awt.Dimension(180, 272));
setLayout(new java.awt.GridLayout(6, 1));
jPnlTitle.setName("jPnlTitle"); // NOI18N
jPnlTitle.setPreferredSize(new java.awt.Dimension(233, 30));
jPnlTitle.setLayout(new java.awt.BorderLayout());
jLabel1.setFont(jLabel1.getFont().deriveFont(jLabel1.getFont().getStyle() | java.awt.Font.BOLD, jLabel1.getFont().getSize()+5));
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(systole.view.SystoleApp.class).getContext().getResourceMap(JPnlResults.class);
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N
jPnlTitle.add(jLabel1, java.awt.BorderLayout.CENTER);
add(jPnlTitle);
jPnlIAR.setBackground(resourceMap.getColor("jPnlIAR.background")); // NOI18N
jPnlIAR.setName("jPnlIAR"); // NOI18N
jPnlIAR.setPreferredSize(new java.awt.Dimension(233, 30));
jLabel2.setFont(jLabel2.getFont().deriveFont((jLabel2.getFont().getStyle() | java.awt.Font.ITALIC), jLabel2.getFont().getSize()-2));
jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
jLabel2.setName("jLabel2"); // NOI18N
jLblAumento.setBackground(resourceMap.getColor("jLblAumento.background")); // NOI18N
jLblAumento.setFont(jLblAumento.getFont().deriveFont(jLblAumento.getFont().getStyle() | java.awt.Font.BOLD));
jLblAumento.setForeground(resourceMap.getColor("jLblAumento.foreground")); // NOI18N
jLblAumento.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
jLblAumento.setText(resourceMap.getString("jLblAumento.text")); // NOI18N
jLblAumento.setName("jLblAumento"); // NOI18N
jLblAumento.setOpaque(true);
jLblIncrease.setFont(jLblIncrease.getFont().deriveFont(jLblIncrease.getFont().getStyle() | java.awt.Font.BOLD, jLblIncrease.getFont().getSize()+1));
jLblIncrease.setText(resourceMap.getString("jLblIncrease.text")); // NOI18N
jLblIncrease.setName("jLblIncrease"); // NOI18N
javax.swing.GroupLayout jPnlIARLayout = new javax.swing.GroupLayout(jPnlIAR);
jPnlIAR.setLayout(jPnlIARLayout);
jPnlIARLayout.setHorizontalGroup(
jPnlIARLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlIARLayout.createSequentialGroup()
.addContainerGap()
.addGroup(jPnlIARLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPnlIARLayout.createSequentialGroup()
.addComponent(jLblIncrease)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 164, Short.MAX_VALUE)
.addComponent(jLblAumento, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
jPnlIARLayout.setVerticalGroup(
jPnlIARLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlIARLayout.createSequentialGroup()
.addGroup(jPnlIARLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLblIncrease)
.addComponent(jLblAumento))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel2)
.addGap(20, 20, 20))
);
add(jPnlIAR);
jPnlFC.setName("jPnlFC"); // NOI18N
jLabel6.setFont(jLabel6.getFont().deriveFont((jLabel6.getFont().getStyle() | java.awt.Font.ITALIC), jLabel6.getFont().getSize()-2));
jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
jLabel6.setName("jLabel6"); // NOI18N
jLblFrecuency.setFont(jLblFrecuency.getFont().deriveFont(jLblFrecuency.getFont().getStyle() | java.awt.Font.BOLD, jLblFrecuency.getFont().getSize()+1));
jLblFrecuency.setText(resourceMap.getString("jLblFrecuency.text")); // NOI18N
jLblFrecuency.setName("jLblFrecuency"); // NOI18N
jLblFreCardciavaValue.setFont(jLblFreCardciavaValue.getFont().deriveFont(jLblFreCardciavaValue.getFont().getStyle() | java.awt.Font.BOLD));
jLblFreCardciavaValue.setForeground(resourceMap.getColor("jLblFreCardciavaValue.foreground")); // NOI18N
jLblFreCardciavaValue.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
jLblFreCardciavaValue.setText(resourceMap.getString("jLblFreCardciavaValue.text")); // NOI18N
jLblFreCardciavaValue.setName("jLblFreCardciavaValue"); // NOI18N
jLblFreCardciavaValue.setOpaque(true);
javax.swing.GroupLayout jPnlFCLayout = new javax.swing.GroupLayout(jPnlFC);
jPnlFC.setLayout(jPnlFCLayout);
jPnlFCLayout.setHorizontalGroup(
jPnlFCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlFCLayout.createSequentialGroup()
.addContainerGap()
.addGroup(jPnlFCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLblFrecuency, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)
.addComponent(jLblFreCardciavaValue, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPnlFCLayout.setVerticalGroup(
jPnlFCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlFCLayout.createSequentialGroup()
.addGap(6, 6, 6)
.addGroup(jPnlFCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addComponent(jLblFrecuency)
.addComponent(jLblFreCardciavaValue))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel6)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
add(jPnlFC);
jPnlAOS.setBackground(resourceMap.getColor("jPnlAOS.background")); // NOI18N
jPnlAOS.setName("jPnlAOS"); // NOI18N
jPnlAOS.setPreferredSize(new java.awt.Dimension(233, 30));
jLblOS50.setFont(jLblOS50.getFont().deriveFont(jLblOS50.getFont().getStyle() | java.awt.Font.BOLD, jLblOS50.getFont().getSize()+1));
jLblOS50.setText(resourceMap.getString("jLblOS50.text")); // NOI18N
jLblOS50.setName("jLblOS50"); // NOI18N
jLblOS50Value.setBackground(resourceMap.getColor("jLblOS50Value.background")); // NOI18N
jLblOS50Value.setFont(jLblOS50Value.getFont().deriveFont(jLblOS50Value.getFont().getStyle() | java.awt.Font.BOLD));
jLblOS50Value.setForeground(resourceMap.getColor("jLblOS50Value.foreground")); // NOI18N
jLblOS50Value.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
jLblOS50Value.setText(resourceMap.getString("jLblOS50Value.text")); // NOI18N
jLblOS50Value.setName("jLblOS50Value"); // NOI18N
jLblOS50Value.setOpaque(true);
jLabel5.setFont(jLabel5.getFont().deriveFont((jLabel5.getFont().getStyle() | java.awt.Font.ITALIC), jLabel5.getFont().getSize()-2));
jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
jLabel5.setName("jLabel5"); // NOI18N
javax.swing.GroupLayout jPnlAOSLayout = new javax.swing.GroupLayout(jPnlAOS);
jPnlAOS.setLayout(jPnlAOSLayout);
jPnlAOSLayout.setHorizontalGroup(
jPnlAOSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlAOSLayout.createSequentialGroup()
.addContainerGap()
.addGroup(jPnlAOSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPnlAOSLayout.createSequentialGroup()
.addComponent(jLblOS50, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
.addComponent(jLblOS50Value, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
jPnlAOSLayout.setVerticalGroup(
jPnlAOSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlAOSLayout.createSequentialGroup()
.addGap(7, 7, 7)
.addGroup(jPnlAOSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLblOS50Value, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLblOS50, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel5)
.addContainerGap())
);
add(jPnlAOS);
jPnlAOD.setName("jPnlAOD"); // NOI18N
jPnlAOD.setPreferredSize(new java.awt.Dimension(233, 30));
jLblAODValue.setFont(jLblAODValue.getFont().deriveFont(jLblAODValue.getFont().getStyle() | java.awt.Font.BOLD));
jLblAODValue.setForeground(resourceMap.getColor("jLblAODValue.foreground")); // NOI18N
jLblAODValue.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
jLblAODValue.setText(resourceMap.getString("jLblAODValue.text")); // NOI18N
jLblAODValue.setName("jLblAODValue"); // NOI18N
jLblAODValue.setOpaque(true);
jLabel3.setFont(jLabel3.getFont().deriveFont((jLabel3.getFont().getStyle() | java.awt.Font.ITALIC), jLabel3.getFont().getSize()-2));
jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
jLabel3.setName("jLabel3"); // NOI18N
jLblAOD.setFont(jLblAOD.getFont().deriveFont(jLblAOD.getFont().getStyle() | java.awt.Font.BOLD, jLblAOD.getFont().getSize()+1));
jLblAOD.setText(resourceMap.getString("jLblAOD.text")); // NOI18N
jLblAOD.setName("jLblAOD"); // NOI18N
javax.swing.GroupLayout jPnlAODLayout = new javax.swing.GroupLayout(jPnlAOD);
jPnlAOD.setLayout(jPnlAODLayout);
jPnlAODLayout.setHorizontalGroup(
jPnlAODLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlAODLayout.createSequentialGroup()
.addContainerGap()
.addGroup(jPnlAODLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPnlAODLayout.createSequentialGroup()
.addComponent(jLblAOD)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 160, Short.MAX_VALUE)
.addComponent(jLblAODValue, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
jPnlAODLayout.setVerticalGroup(
jPnlAODLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlAODLayout.createSequentialGroup()
.addGap(10, 10, 10)
.addGroup(jPnlAODLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addComponent(jLblAOD)
.addComponent(jLblAODValue))
.addGap(1, 1, 1)
.addComponent(jLabel3)
.addContainerGap())
);
add(jPnlAOD);
jPnlT.setBackground(resourceMap.getColor("jPnlT.background")); // NOI18N
jPnlT.setName("jPnlT"); // NOI18N
jPnlT.setPreferredSize(new java.awt.Dimension(233, 30));
jLblT.setFont(jLblT.getFont().deriveFont(jLblT.getFont().getStyle() | java.awt.Font.BOLD, jLblT.getFont().getSize()+1));
jLblT.setText(resourceMap.getString("jLblT.text")); // NOI18N
jLblT.setName("jLblT"); // NOI18N
jLblTValue.setBackground(resourceMap.getColor("jLblTValue.background")); // NOI18N
jLblTValue.setFont(jLblTValue.getFont().deriveFont(jLblTValue.getFont().getStyle() | java.awt.Font.BOLD));
jLblTValue.setForeground(resourceMap.getColor("jLblTValue.foreground")); // NOI18N
jLblTValue.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
jLblTValue.setText(resourceMap.getString("jLblTValue.text")); // NOI18N
jLblTValue.setName("jLblTValue"); // NOI18N
jLblTValue.setOpaque(true);
jLabel4.setFont(jLabel4.getFont().deriveFont((jLabel4.getFont().getStyle() | java.awt.Font.ITALIC), jLabel4.getFont().getSize()-2));
jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
jLabel4.setName("jLabel4"); // NOI18N
javax.swing.GroupLayout jPnlTLayout = new javax.swing.GroupLayout(jPnlT);
jPnlT.setLayout(jPnlTLayout);
jPnlTLayout.setHorizontalGroup(
jPnlTLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlTLayout.createSequentialGroup()
.addGap(16, 16, 16)
.addGroup(jPnlTLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlTLayout.createSequentialGroup()
.addComponent(jLblT, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
.addComponent(jLblTValue, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
jPnlTLayout.setVerticalGroup(
jPnlTLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPnlTLayout.createSequentialGroup()
.addGap(5, 5, 5)
.addGroup(jPnlTLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addComponent(jLblT)
.addComponent(jLblTValue))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel4)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
add(jPnlT);
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLblAOD;
private javax.swing.JLabel jLblAODValue;
private javax.swing.JLabel jLblAumento;
private javax.swing.JLabel jLblFreCardciavaValue;
private javax.swing.JLabel jLblFrecuency;
private javax.swing.JLabel jLblIncrease;
private javax.swing.JLabel jLblOS50;
private javax.swing.JLabel jLblOS50Value;
private javax.swing.JLabel jLblT;
private javax.swing.JLabel jLblTValue;
private javax.swing.JPanel jPnlAOD;
private javax.swing.JPanel jPnlAOS;
private javax.swing.JPanel jPnlFC;
private javax.swing.JPanel jPnlIAR;
private javax.swing.JPanel jPnlT;
private javax.swing.JPanel jPnlTitle;
// End of variables declaration//GEN-END:variables
}