| Package | Description |
|---|---|
| net.sf.nervalreports.core |
| Modifier and Type | Method and Description |
|---|---|
ReportColor |
ReportGenerator.addColor(int red,
int green,
int blue,
String name)
Declare a color in RGB mode.
|
void |
ReportGenerator.addCurrentPageNumber()
Add the current page number to the report.
|
void |
ReportGenerator.addImage(byte[] img,
String imgName,
int width)
Add an image defined by a byte array of its format (usually it's safe to consider that all ReportGenerator's
who support images will support PNG and JPG images formats here).
|
void |
ReportGenerator.addImage(byte[] img,
String imgName,
int width,
int height)
Add an image defined by a byte array of its format, defining its width and height.
|
void |
ReportGenerator.addLineBreak()
Add a line break to the document.
|
void |
ReportGenerator.addLineSpaces(int n)
Add
n blank lines to the report. |
void |
ReportGenerator.addLinkedImage(String imgLink,
int width)
Add an image to the document by its link.
|
void |
ReportGenerator.addLinkedImage(String imgLink,
int width,
int height)
Add an image to the document by its link.
|
void |
ReportGenerator.addSeparatorLine()
Add an horizontal line (-----) separator to the report.
|
void |
ReportGenerator.addTableCell(String element)
Adds a textual table cell element to the page.
|
void |
ReportGenerator.addTableCell(String element,
int colspan,
int rowspan)
Same of
ReportGenerator.addTableCell(String), but defining its spans. |
void |
ReportGenerator.addTableHeaderCell(String columnName)
Add a table header title text for a single table column.
|
void |
ReportGenerator.addTableHeaderCell(String columnName,
int colspan)
Add a table header title text.
|
void |
ReportGenerator.addTableHeaderRow(List<String> header)
Create a table header row with a predefined list of table column's titles.
|
void |
ReportGenerator.addTableRow(List<String> cells)
Generate a table line
Note: only use this function if a priori (ie: at the moment of ResultSet iteration) it isn't possible to add the columns. |
void |
ReportGenerator.addText(String text)
Add (or better, append) a contiguous text to the report.
|
void |
ReportGenerator.addTextLine(String line)
Add text to the report with a line break at end.
|
void |
ReportGenerator.addTextWithNullSupport(String text)
Add (or better, append) a contiguous text to the report, replacing
null and empty values with '-'. |
void |
ReportGenerator.addTotalPagesCount()
Add the number of total report pages to the report.
|
void |
ReportGenerator.beginDocument()
Start the document.
|
void |
ReportGenerator.beginDocumentBody()
Begin the report document's body, where usually are all data to report.
|
void |
ReportGenerator.beginDocumentHead()
Begin the document's head, where should lies all specific implementation declarations.
|
void |
ReportGenerator.beginGroup(ReportGroupType type)
Begin a group of report elements.
|
void |
ReportGenerator.beginGroup(ReportGroupType type,
String name)
Begin a named group of report elements.
|
void |
ReportGenerator.beginPageFooterCenter()
Init the center page footer definition.
|
void |
ReportGenerator.beginPageFooterLeft()
Init the left page footer definition.
|
void |
ReportGenerator.beginPageFooterRight()
Init the right page footer definition.
|
void |
ReportGenerator.beginPageHeaderCenter()
Begin the center page header definition.
|
void |
ReportGenerator.beginPageHeaderLeft()
Begin the right page header definition.
|
void |
ReportGenerator.beginPageHeaderRight()
Begin the right page header definition.
|
void |
ReportGenerator.beginTable(int totalColumns,
int... eachColumnWidth)
Begin a table, defining or not the width of all its columns.
|
void |
ReportGenerator.beginTableCell()
Begin the creation of a table element (cell), of a single column in a single row.
|
void |
ReportGenerator.beginTableCell(int colspan,
int rowspan)
Begin the creation of a table element (cell).
|
void |
ReportGenerator.beginTableHeaderRow()
Begin the definition of a table header row.
|
void |
ReportGenerator.beginTableRow()
Init a table row.
|
void |
ReportGenerator.beginTableWithFixedDefinedWidth(int totalColumns,
int fixedWidth)
Begin a table definition, setting all column's width to the same fixed value.
|
void |
ReportGenerator.endDocument()
End the document.
|
void |
ReportGenerator.endDocumentBody()
End the currently opened report body.
|
void |
ReportGenerator.endDocumentHead()
End the head of the document.
|
void |
ReportGenerator.endGroup()
End the current opened group of report elements.
|
void |
ReportGenerator.endPageFooterCenter()
End the center page footer definition.
|
void |
ReportGenerator.endPageFooterLeft()
End the left page footer definition.
|
void |
ReportGenerator.endPageFooterRight()
End the right page footer definition.
|
void |
ReportGenerator.endPageHeaderCenter()
End the center page header definition.
|
void |
ReportGenerator.endPageHeaderLeft()
End the center page header definition.
|
void |
ReportGenerator.endPageHeaderRight()
End the right page header definition.
|
void |
ReportGenerator.endTable()
End the current table.
|
void |
ReportGenerator.endTableCell()
Ends the definition of a table cell element.
|
void |
ReportGenerator.endTableHeaderRow()
End the declaration of current table header row.
|
void |
ReportGenerator.endTableRow()
Ends the definition of a table row line.
|
void |
ReportGenerator.hintLanguage(String language)
Hint the language to use.
|
void |
ReportGenerator.hintNonSerifFont()
Hint to use a non-serifed font.
|
void |
ReportGenerator.hintSerifFont()
Hint to use a serifed font.
|
void |
ReportGenerator.saveToFile(String filename)
Save the contents of the generated report to a file.
|
void |
ReportGenerator.setMargins(int left,
int top,
int right,
int bottom)
Define the document's page margins.
|
void |
ReportGenerator.setReportCharset(ReportCharset charset)
Define the character set to use.
|
byte[] |
ReportGenerator.toByteArray()
Get the byte array representation of the generated report.
|
Copyright © 2018. All rights reserved.