List of usage examples for com.lowagie.text Paragraph setIndentationLeft
public void setIndentationLeft(float indentation)
From source file:s2s.report.Report.java
License:GNU General Public License
public void writeText2(String strText) throws BadElementException, DocumentException { Paragraph pr = new Paragraph(strText != null ? strText.trim() : "", REPORT_SETTINGS.ftText2); pr.setIndentationLeft(10f); m_document.add(pr);//from ww w. j ava2 s.c om }
From source file:s2s.report.Report.java
License:GNU General Public License
public void writeText2Bold(String strText) throws BadElementException, DocumentException { Paragraph pr = new Paragraph(strText != null ? strText.trim() : "", REPORT_SETTINGS.ftText2B); pr.setIndentationLeft(10f); m_document.add(pr);/*from w w w . j a v a 2s .co m*/ }
From source file:s2s.report.Report.java
License:GNU General Public License
public void writeText3Bold(String strText) throws BadElementException, DocumentException { Paragraph pr = new Paragraph(strText != null ? strText.trim() : "", REPORT_SETTINGS.ftText13B); pr.setIndentationLeft(10f); m_document.add(pr);/*from w w w .j av a2s . co m*/ }
From source file:s2s.report.Report.java
License:GNU General Public License
public void writeText2BoldAndIndent(String strText, byte indentationLevel) throws BadElementException, DocumentException { Paragraph pr = new Paragraph(strText != null ? strText.trim() : "", REPORT_SETTINGS.ftText2B); if (indentationLevel < 1) indentationLevel = 1;/* w w w . j a v a2 s. com*/ pr.setIndentationLeft(10f + (20f * (indentationLevel - 1))); m_document.add(pr); }
From source file:s2s.report.Report.java
License:GNU General Public License
public void writeText2Justified(String strText) throws BadElementException, DocumentException { Paragraph pr = new Paragraph(strText != null ? strText.trim() : "", REPORT_SETTINGS.ftText2); pr.setAlignment(Element.ALIGN_JUSTIFIED); pr.setIndentationLeft(10f); m_document.add(pr);// w ww . j a va 2 s. c om }
From source file:s2s.report.Report.java
License:GNU General Public License
public void writeText2JustifiedAndIndent(String strText, byte indentationLevel) throws BadElementException, DocumentException { Paragraph pr = new Paragraph(strText != null ? strText.trim() : "", REPORT_SETTINGS.ftText2); pr.setAlignment(Element.ALIGN_JUSTIFIED); if (indentationLevel < 1) indentationLevel = 1;//www . java 2 s .c o m pr.setIndentationLeft(10f + (20f * (indentationLevel - 1))); m_document.add(pr); }
From source file:s2s.report.Report.java
License:GNU General Public License
public void writeText3(String strText, int iLevel) throws BadElementException, DocumentException { Paragraph pr = new Paragraph(strText != null ? strText.trim() : "", REPORT_SETTINGS.ftText3); pr.setIndentationLeft(5 * iLevel); m_document.add(pr);// w ww . j a v a2s. co m }
From source file:s2s.report.Report.java
License:GNU General Public License
public void writeText3(String strText) throws BadElementException, DocumentException { Paragraph pr = new Paragraph(strText != null ? strText.trim() : "", REPORT_SETTINGS.ftText3); pr.setIndentationLeft(15f); m_document.add(pr);/* ww w . jav a 2 s.c om*/ }
From source file:s2s.report.Report.java
License:GNU General Public License
public void writeText3_2(String strText) throws BadElementException, DocumentException { Paragraph pr = new Paragraph(strText != null ? strText.trim() : "", REPORT_SETTINGS.ftText3_2); pr.setIndentationLeft(15f); m_document.add(pr);// ww w. jav a 2 s . c om }
From source file:s2s.report.Report.java
License:GNU General Public License
public void writeText3_3(String strText) throws BadElementException, DocumentException { Paragraph pr = new Paragraph(strText != null ? strText.trim() : "", REPORT_SETTINGS.ftText2); pr.setIndentationLeft(25f); m_document.add(pr);//w ww . j av a2 s. c o m }