|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.printing.Paragraph
This class implements a text paragraph with configurable parameters (font,...).
| Field Summary | |
protected java.lang.String |
identifier
|
protected Layer |
layer
|
protected javax.swing.text.Element |
paragraphElement
|
protected java.util.Vector |
sentences
|
protected java.lang.String |
textContain
|
| Fields inherited from interface com.ontimize.printing.ReportElement |
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, DEBUG, HEADERID, PIEID, SUMMARYID, TITLEID |
| Constructor Summary | |
Paragraph(java.lang.String id,
int leftMargin)
|
|
Paragraph(java.lang.String id,
int leftMargin,
int width)
|
|
| Method Summary | |
void |
add(java.lang.String text)
Adds a text to the paragraph with the default attributes (font, etc) |
void |
add(java.lang.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,
javax.swing.text.Element paragraphElement)
Insert page by page |
void |
insert(ReportFrame reportFrame,
java.lang.String identifier,
boolean multipage)
Insert in the template, in the element with the specified identifier |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String textContain
protected java.util.Vector sentences
protected java.lang.String identifier
protected Layer layer
protected javax.swing.text.Element paragraphElement
| Constructor Detail |
public Paragraph(java.lang.String id,
int leftMargin)
public Paragraph(java.lang.String id,
int leftMargin,
int width)
| Method Detail |
public void add(java.lang.String text)
text -
public void add(java.lang.String text,
TextAttributes attributes)
text - attributes -
public void insert(ReportFrame reportFrame,
boolean multipage)
throws java.lang.Exception
ReportElement
insert in interface ReportElementreportFrame - The report framemultipage - condition to know when report is multipage or not
java.lang.Exception - When an Exception occurs
protected void insert(ReportFrame reportFrame,
boolean multipage,
com.ontimize.printing.Paragraph.Sentence sentence,
javax.swing.text.Element paragraphElement)
reportFrame - multipage - sentence - paragraphElement -
public void insert(ReportFrame reportFrame,
java.lang.String identifier,
boolean multipage)
throws java.lang.Exception
insert in interface ReportElementreportFrame - The report frameidentifier - Position in template where element must be insertedmultipage - Condition to know when report is multipage or not
java.lang.Exception - When an Exception occurs
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||