Dirk Ulrich wrote:
>   See the attached GIF to see what I want to achieve (the first cell 
> with the traffic light).

One more thing: now if you add
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
the image and the text will be aligned in the center
as shown in your GIF.
That's because now you are working in 'text mode'
(you constructed a cell with a Phrase).
As soon as you use cell.addElement() you switch
to 'composite mode', and the alignment of the
composing elements is taken into account, NOT
the alignment of the cell.
br,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to