public class ReportLink extends AbstractReportElement implements ReportElement
| Constructor and Description |
|---|
ReportLink(java.lang.String text,
java.lang.String link,
PdfTextStyle textConfig,
float lineDistance) |
| Modifier and Type | Method and Description |
|---|---|
float |
getHeight(float allowedWidth)
Height of this segment
|
float |
print(org.apache.pdfbox.pdmodel.PDDocument document,
org.apache.pdfbox.pdmodel.PDPageContentStream stream,
int pageNumber,
float startX,
float startY,
float allowedWidth) |
getFirstSegmentHeight, getHeightOfElementToSplit, getImageIntents, isSplitable, split, splitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFirstSegmentHeight, getHeightOfElementToSplit, getImageIntents, isSplitable, split, splitpublic ReportLink(java.lang.String text,
java.lang.String link,
PdfTextStyle textConfig,
float lineDistance)
public float print(org.apache.pdfbox.pdmodel.PDDocument document,
org.apache.pdfbox.pdmodel.PDPageContentStream stream,
int pageNumber,
float startX,
float startY,
float allowedWidth)
throws java.io.IOException
print in interface ReportElementdocument - PdfBox documentstream - PdfBox streampageNumber - current page number (0 based)startX - starting xstartY - starting yallowedWidth - maximal width of segmentjava.io.IOException - in case something happens during printingpublic float getHeight(float allowedWidth)
ReportElementgetHeight in interface ReportElementallowedWidth - allowed with of the segment