// PUT HEADER
if (this.reportSettingsProperties.loadUseAOD()) {
Chunk amp = new Chunk("Amplitud OD" + System.getProperty("line.separator") + Units.amplitude);
amp.setFont(indexFont);
PdfPCell amplitud = new PdfPCell(new Paragraph(amp));
amplitud.setHorizontalAlignment(Element.ALIGN_CENTER);
amplitud.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(amplitud);
}
if (this.reportSettingsProperties.loadUseIAR()) {
Chunk aume = new Chunk("Aumentación" + System.getProperty("line.separator") + Units.amplitude);
aume.setFont(indexFont);
PdfPCell aumentacion = new PdfPCell(new Paragraph(aume));
aumentacion.setHorizontalAlignment(Element.ALIGN_CENTER);
aumentacion.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(aumentacion);
}
if (this.reportSettingsProperties.loadUseAOS()) {
Chunk an = new Chunk("Ancho 50% OS" + System.getProperty("line.separator") + Units.miliseconds);
an.setFont(indexFont);
PdfPCell ancho = new PdfPCell(new Paragraph(an));
ancho.setHorizontalAlignment(Element.ALIGN_CENTER);
ancho.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(ancho);
}
if (this.reportSettingsProperties.loadUseIMC()) {
Chunk m = new Chunk("Masa Corporal");
m.setFont(indexFont);
PdfPCell masa = new PdfPCell(new Paragraph(m));
masa.setHorizontalAlignment(Element.ALIGN_CENTER);
masa.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(masa);
}
if (this.reportSettingsProperties.loadUseFC()) {
Chunk f = new Chunk("Frecuencia Card." + System.getProperty("line.separator") + "[ppm]");
f.setFont(indexFont);
PdfPCell freq = new PdfPCell(new Paragraph(f));
freq.setHorizontalAlignment(Element.ALIGN_CENTER);
freq.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(freq);
}
if (this.reportSettingsProperties.loadUseRS()) {
Chunk r = new Chunk("Reflejo Sist." + System.getProperty("line.separator") + Units.miliseconds);
r.setFont(indexFont);
PdfPCell rs = new PdfPCell(new Paragraph(r));
rs.setHorizontalAlignment(Element.ALIGN_CENTER);
rs.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(rs);
}
if (this.reportSettingsProperties.loadUseAOD()) {
Chunk ampCk = new Chunk(analysisResult.getAod().getValueAsString());
ampCk.setFont(indexValueFont);
PdfPCell ampValue = new PdfPCell(new Paragraph(ampCk));
ampValue.setHorizontalAlignment(Element.ALIGN_CENTER);
ampValue.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(ampValue);
}
if (this.reportSettingsProperties.loadUseIAR()) {
Chunk aumCk = new Chunk(analysisResult.getIar().getValueAsString());
aumCk.setFont(indexValueFont);
PdfPCell aum = new PdfPCell(new Paragraph(aumCk));
aum.setHorizontalAlignment(Element.ALIGN_CENTER);
aum.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(aum);
}
if (this.reportSettingsProperties.loadUseAOS()) {
Chunk anchCk = new Chunk(analysisResult.getAos().getValueAsString());
anchCk.setFont(indexValueFont);
PdfPCell anch = new PdfPCell(new Paragraph(anchCk));
anch.setHorizontalAlignment(Element.ALIGN_CENTER);
anch.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(anch);
}
if (this.reportSettingsProperties.loadUseIMC()) {
Chunk masCk = new Chunk(analysis.getClinicalInformation().getIMCasString());
masCk.setFont(indexValueFont);
PdfPCell mas = new PdfPCell(new Paragraph(masCk));
mas.setHorizontalAlignment(Element.ALIGN_CENTER);
mas.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(mas);
}
if (this.reportSettingsProperties.loadUseFC()) {
Chunk freqCk = new Chunk(analysisResult.getHeartRateAsString());
freqCk.setFont(indexValueFont);
PdfPCell freqC = new PdfPCell(new Paragraph(freqCk));
freqC.setHorizontalAlignment(Element.ALIGN_CENTER);
freqC.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(freqC);
}
if (this.reportSettingsProperties.loadUseRS()) {
Chunk rs = new Chunk(analysisResult.getT().getValueAsString());
rs.setFont(indexValueFont);
PdfPCell rsC = new PdfPCell(new Paragraph(rs));
rsC.setHorizontalAlignment(Element.ALIGN_CENTER);
rsC.setVerticalAlignment(Element.ALIGN_MIDDLE);
indicesTable.addCell(rsC);
}
this.document.add(indicesTable);
}