public class Paragraph extends Object implements ReportElement
| Modifier and Type | Field and Description |
|---|---|
protected String |
identifier |
protected Layer |
layer |
protected Element |
paragraphElement |
protected Vector |
sentences |
protected String |
textContain |
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, DEBUG, HEADERID, PIEID, SUMMARYID, TITLEID| Constructor and Description |
|---|
Paragraph(String id,
int leftMargin) |
Paragraph(String id,
int leftMargin,
int width) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String text)
Adds a text to the paragraph with the default attributes (font, etc)
|
void |
add(String text,
TextAttributes attributes)
Adds a text to the paragraph with the specified attributes
|
void |
insert(ReportFrame reportFrame,
boolean multipage)
Method that inserts the correct HTML code in report.
|
protected void |
insert(ReportFrame reportFrame,
boolean multipage,
com.ontimize.printing.Paragraph.Sentence sentence,
Element paragraphElement)
Insert page by page
|
void |
insert(ReportFrame reportFrame,
String identifier,
boolean multipage)
Insert in the template, in the element with the specified identifier
|
protected String textContain
protected Vector sentences
protected String identifier
protected Layer layer
protected Element paragraphElement
public Paragraph(String id, int leftMargin)
public Paragraph(String id, int leftMargin, int width)
public void add(String text)
text - public void add(String text, TextAttributes attributes)
text - attributes - public void insert(ReportFrame reportFrame, boolean multipage) throws Exception
ReportElementinsert in interface ReportElementreportFrame - The report framemultipage - condition to know when report is multipage or notException - When an Exception occursprotected void insert(ReportFrame reportFrame, boolean multipage, com.ontimize.printing.Paragraph.Sentence sentence, Element paragraphElement)
reportFrame - multipage - sentence - paragraphElement - public void insert(ReportFrame reportFrame, String identifier, boolean multipage) throws Exception
insert in interface ReportElementreportFrame - The report frameidentifier - Position in template where element must be insertedmultipage - Condition to know when report is multipage or notException - When an Exception occursCopyright © 2016 Imatia Innovation S.L.. All rights reserved.