document.add(pghTitleB);
document.add(new Paragraph("\n\n", font9));
LwgPdfPTable tableBeg = new LwgPdfPTable(3);
tableBeg.setWidthPercentage(100);
tableBeg.getDefaultCell().setHorizontalAlignment(LwgElement.ALIGN_LEFT);
tableBeg.getDefaultCell().setVerticalAlignment(LwgElement.ALIGN_MIDDLE);
tableBeg.add(new LwgPhrase("Contractor:", font9));
tableBeg.add(new LwgPhrase("Job number:", font9));
tableBeg.add(new LwgPhrase("Enclosure:", font9));
document.add(tableBeg);
float[] columnDefinitionSizePrj =
{
15f, 40f,
};
LwgPdfPTable tablePrj = new LwgPdfPTable(columnDefinitionSizePrj);
tablePrj.setWidthPercentage(100);
tablePrj.getDefaultCell().setHorizontalAlignment(LwgElement.ALIGN_LEFT);
tablePrj.getDefaultCell().setVerticalAlignment(LwgElement.ALIGN_MIDDLE);
tablePrj.add(new LwgPhrase("Client/name of project:", font9));
tablePrj.add(new LwgPhrase("", font9));
tablePrj.add(new LwgPhrase("Dynamic probing test NÂș:", font9));
tablePrj.add(new LwgPhrase("", font9));
tablePrj.add(new LwgPhrase("Date:", font9));
tablePrj.add(new LwgPhrase("", font9));
tablePrj.add(new LwgPhrase("Type of dynamic probing test:", font9));
tablePrj.add(new LwgPhrase(strKind, font9));
tablePrj.add(new LwgPhrase("Lost/fixed cone", font9));
tablePrj.add(new LwgPhrase("Fixed/loose anvil", font9));
document.add(tablePrj);
float fltWidthDepth = 13f;
float fltWidthBlowCount = 17f;
float[] columnDefinitionSize =
{
fltWidthDepth, fltWidthBlowCount,
fltWidthDepth, fltWidthBlowCount,
fltWidthDepth, fltWidthBlowCount,
fltWidthDepth, fltWidthBlowCount,
fltWidthDepth, fltWidthBlowCount
};
LwgPdfPTable table = new LwgPdfPTable(columnDefinitionSize);
table.setWidthPercentage(100);
table.getDefaultCell().setHorizontalAlignment(LwgElement.ALIGN_CENTER);
table.getDefaultCell().setVerticalAlignment(LwgElement.ALIGN_MIDDLE);
String strNBlowcount = "N" + Integer.toString(intZStep);
LwgPhrase phrDepth = new LwgPhrase("Depth (m)", font9);
LwgPhrase phrBlowcount = new LwgPhrase(strNBlowcount, font9);
LwgPhrase phrTorque = new LwgPhrase("Torque :", font9);
//--
for (int i = 0; i < 5; i++)
{
table.add(phrDepth);
table.add(phrBlowcount);
}
int rowPack = (int) (100 / intZStep);
for (int j = 0; j < rowPack; j++)
{
for (int i = 0; i < 5; i++)
{
double dblDepth = (double) (intZStep * (j + 1)) / 100d + (double) 2 * i;
String strDepth = Double.toString(dblDepth);
table.add(new LwgPhrase(strDepth, font9));
table.add("");
}
}
for (int i = 0; i < 5; i++)
{
table.add(phrTorque);
table.add(new LwgPhrase("xxx Nm", font9));
}
for (int j = 0; j < rowPack; j++)
{
for (int i = 0; i < 5; i++)
{
double dblDepth = (double) (intZStep * (j + 1)) / 100d + (double) 2 * i + 1d;
String strDepth = Double.toString(dblDepth);
table.add(new LwgPhrase(strDepth, font9));
table.add("");
}
}
for (int i = 0; i < 5; i++)
{
table.add(phrTorque);
table.add(new LwgPhrase("xxx Nm", font9));
}
document.add(table);
String str = "\n"
+ "Other dataName" + "\n" + "\n"
+ "Groundwater: ....... m below starting point "
+ "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n"
+ "\n" + "\n" + "\n" + "\n"
+ "Name and signature of the operator in charge:" + "\n" + "\n";
LwgPdfPTable tableEnd = new LwgPdfPTable(1);
tableEnd.setWidthPercentage(100);
tableEnd.add(new Paragraph(str, font9));
document.add(tableEnd);