Class StandardChunk
java.lang.Object
net.sf.jasperreports.pdf.classic.producer.StandardChunk
- All Implemented Interfaces:
net.sf.jasperreports.pdf.common.PdfChunk
- Direct Known Subclasses:
StandardTextChunk
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStandardChunk(StandardPdfProducer pdfProducer, com.lowagie.text.Chunk chunk) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAnnotationToTag(net.sf.jasperreports.pdf.common.PdfStructureEntry linkTag, com.lowagie.text.pdf.PdfAnnotation annotation) protected booleandeferStyledTextLinkAnnotation(Function<com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfAnnotation> annotationFactory) Defers the creation of the hyperlink annotation of a styled text hyperlink to the moment the text layout places this chunk on the page, as the position of the annotation is only known then.com.lowagie.text.ChunkgetChunk()voidvoidsetJavaScriptAction(String script) voidsetLinkTag(net.sf.jasperreports.pdf.common.PdfStructureEntry linkTag, float llx, float lly, float urx, float ury, String linkContents) voidsetLocalDestination(String anchorName, net.sf.jasperreports.pdf.common.PdfStructureEntry structureEntry) voidsetLocalGoto(String anchor) voidsetLocalGotoPage(int page, float top, Supplier<net.sf.jasperreports.pdf.common.PdfStructureEntry> targetStructureEntry) voidsetMarkedContentTag(net.sf.jasperreports.pdf.common.PdfStructureEntry markedContentTag) voidsetRemoteGoto(String reference, int page) voidsetRemoteGoto(String reference, String anchor) voidsetStyledTextLinkTag(net.sf.jasperreports.pdf.common.PdfStructureEntry linkTag, String linkContents)
-
Field Details
-
chunk
protected com.lowagie.text.Chunk chunk
-
-
Constructor Details
-
StandardChunk
-
-
Method Details
-
getChunk
public com.lowagie.text.Chunk getChunk() -
setLocalDestination
public void setLocalDestination(String anchorName, net.sf.jasperreports.pdf.common.PdfStructureEntry structureEntry) - Specified by:
setLocalDestinationin interfacenet.sf.jasperreports.pdf.common.PdfChunk
-
setLinkTag
public void setLinkTag(net.sf.jasperreports.pdf.common.PdfStructureEntry linkTag, float llx, float lly, float urx, float ury, String linkContents) - Specified by:
setLinkTagin interfacenet.sf.jasperreports.pdf.common.PdfChunk
-
setStyledTextLinkTag
public void setStyledTextLinkTag(net.sf.jasperreports.pdf.common.PdfStructureEntry linkTag, String linkContents) - Specified by:
setStyledTextLinkTagin interfacenet.sf.jasperreports.pdf.common.PdfChunk
-
setMarkedContentTag
public void setMarkedContentTag(net.sf.jasperreports.pdf.common.PdfStructureEntry markedContentTag) - Specified by:
setMarkedContentTagin interfacenet.sf.jasperreports.pdf.common.PdfChunk
-
getMarkedContentTag
-
setJavaScriptAction
- Specified by:
setJavaScriptActionin interfacenet.sf.jasperreports.pdf.common.PdfChunk
-
setAnchor
- Specified by:
setAnchorin interfacenet.sf.jasperreports.pdf.common.PdfChunk
-
setLocalGoto
- Specified by:
setLocalGotoin interfacenet.sf.jasperreports.pdf.common.PdfChunk
-
setLocalGotoPage
public void setLocalGotoPage(int page, float top, Supplier<net.sf.jasperreports.pdf.common.PdfStructureEntry> targetStructureEntry) - Specified by:
setLocalGotoPagein interfacenet.sf.jasperreports.pdf.common.PdfChunk
-
setRemoteGoto
- Specified by:
setRemoteGotoin interfacenet.sf.jasperreports.pdf.common.PdfChunk
-
setRemoteGoto
- Specified by:
setRemoteGotoin interfacenet.sf.jasperreports.pdf.common.PdfChunk
-
deferStyledTextLinkAnnotation
protected boolean deferStyledTextLinkAnnotation(Function<com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfAnnotation> annotationFactory) Defers the creation of the hyperlink annotation of a styled text hyperlink to the moment the text layout places this chunk on the page, as the position of the annotation is only known then.- Returns:
- whether the annotation creation was taken over; when it was not, the annotation is left to be created by the PDF library out of the chunk action
-
addAnnotationToTag
protected void addAnnotationToTag(net.sf.jasperreports.pdf.common.PdfStructureEntry linkTag, com.lowagie.text.pdf.PdfAnnotation annotation)
-