1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
Font font = new Font(Font.FontFamily.COURIER, 10, Font.NORMAL);
Font fontloc = new Font(Font.FontFamily.COURIER, 10, Font.NORMAL, BaseColor.RED);
Font fontint = new Font(Font.FontFamily.COURIER, 10, Font.NORMAL, BaseColor.BLUE);
cell1RSloc = new PdfPCell(new Phrase());
cell1RSint = new PdfPCell(new Phrase());
//RS locaux
for(iRS=nbRS; iRS<nbRS+60; iRS++)
{
String loc;
String locf = "";
if(iRS<taille)
{
if(tabRSloc[iRS]==1)
{
loc="x";
}
else
{
loc=" ";
}
locf = locf + loc;
nbR++;
}
if(nbR == 10)
{
nbR = 0;
locf = locf + " ";
}
RSloc = RSloc + locf;
}
//RS internet
for(iRS=nbRS; iRS<nbRS+60; iRS++)
{
String in;
String inf = "";
if(iRS<taille)
{
if(tabRSint[iRS]==1)
{
in="x";
}
else
{
in=" ";
}
inf = inf + in;
nbR++;
}
if(nbR == 10)
{
nbR = 0;
inf = inf + " ";
}
RSint = RSint + inf;
}
cell2RSloc = new PdfPCell(new Phrase(RSloc,fontloc));
cell2RSint = new PdfPCell(new Phrase(RSint,fontint)); |
Partager