public class ReportRichTextBox extends ReportTextBox
align, cache, lineDistance, text, textConfig| Constructor and Description |
|---|
ReportRichTextBox(PdfTextStyle textConfig,
float lineDistance,
java.lang.String text) |
ReportRichTextBox(PdfTextStyle textConfig,
float lineDistance,
java.lang.String text,
java.lang.String boldFontStyle,
java.lang.String italicFontStyle) |
ReportRichTextBox(ReportRichTextBox object,
java.lang.String text)
copy constructor with new text
|
| Modifier and Type | Method and Description |
|---|---|
ReportTextBox |
clone(java.lang.String newString) |
float |
print(org.apache.pdfbox.pdmodel.PDDocument document,
org.apache.pdfbox.pdmodel.PDPageContentStream stream,
int pageNumber,
float textX,
float textY,
float allowedWidth) |
ReportElement[] |
split(float allowedWidth)
If the element my be split this method should return two elements.
|
ReportElement[] |
split(float allowedWidth,
float allowedHeight)
Will split the report element, so the height of the first segment will the maximum value less or equal to the allowed height value.
|
getAlign, getFirstSegmentHeight, getHeight, getHeightOfElementToSplit, getImageIntents, getText, isSplitable, setAlign, setText, splitpublic ReportRichTextBox(PdfTextStyle textConfig, float lineDistance, java.lang.String text, java.lang.String boldFontStyle, java.lang.String italicFontStyle)
public ReportRichTextBox(PdfTextStyle textConfig, float lineDistance, java.lang.String text)
public ReportRichTextBox(ReportRichTextBox object, java.lang.String text)
object - reportTextBox object for configurationstext - text of text boxpublic ReportTextBox clone(java.lang.String newString)
clone in class ReportTextBoxpublic float print(org.apache.pdfbox.pdmodel.PDDocument document,
org.apache.pdfbox.pdmodel.PDPageContentStream stream,
int pageNumber,
float textX,
float textY,
float allowedWidth)
print in interface ReportElementprint in class ReportTextBoxdocument - PdfBox documentstream - PdfBox streampageNumber - current page number (0 based)textX - starting xtextY - starting yallowedWidth - maximal width of segmentpublic ReportElement[] split(float allowedWidth)
ReportElementsplit in interface ReportElementsplit in class ReportTextBoxallowedWidth - allowed with of the segmentpublic ReportElement[] split(float allowedWidth, float allowedHeight)
ReportElementsplit in interface ReportElementsplit in class ReportTextBoxallowedWidth - width of report elementallowedHeight - max height of first segment.