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

public class StandardChunk extends Object implements net.sf.jasperreports.pdf.common.PdfChunk
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
  • Field Details

    • chunk

      protected com.lowagie.text.Chunk chunk
  • Constructor Details

    • StandardChunk

      public StandardChunk(StandardPdfProducer pdfProducer, com.lowagie.text.Chunk chunk)
  • Method Details

    • getChunk

      public com.lowagie.text.Chunk getChunk()
    • setLocalDestination

      public void setLocalDestination(String anchorName, net.sf.jasperreports.pdf.common.PdfStructureEntry structureEntry)
      Specified by:
      setLocalDestination in interface net.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:
      setLinkTag in interface net.sf.jasperreports.pdf.common.PdfChunk
    • setStyledTextLinkTag

      public void setStyledTextLinkTag(net.sf.jasperreports.pdf.common.PdfStructureEntry linkTag, String linkContents)
      Specified by:
      setStyledTextLinkTag in interface net.sf.jasperreports.pdf.common.PdfChunk
    • setMarkedContentTag

      public void setMarkedContentTag(net.sf.jasperreports.pdf.common.PdfStructureEntry markedContentTag)
      Specified by:
      setMarkedContentTag in interface net.sf.jasperreports.pdf.common.PdfChunk
    • getMarkedContentTag

      public StandardStructureEntry getMarkedContentTag()
    • setJavaScriptAction

      public void setJavaScriptAction(String script)
      Specified by:
      setJavaScriptAction in interface net.sf.jasperreports.pdf.common.PdfChunk
    • setAnchor

      public void setAnchor(String reference)
      Specified by:
      setAnchor in interface net.sf.jasperreports.pdf.common.PdfChunk
    • setLocalGoto

      public void setLocalGoto(String anchor)
      Specified by:
      setLocalGoto in interface net.sf.jasperreports.pdf.common.PdfChunk
    • setLocalGotoPage

      public void setLocalGotoPage(int page, float top, Supplier<net.sf.jasperreports.pdf.common.PdfStructureEntry> targetStructureEntry)
      Specified by:
      setLocalGotoPage in interface net.sf.jasperreports.pdf.common.PdfChunk
    • setRemoteGoto

      public void setRemoteGoto(String reference, String anchor)
      Specified by:
      setRemoteGoto in interface net.sf.jasperreports.pdf.common.PdfChunk
    • setRemoteGoto

      public void setRemoteGoto(String reference, int page)
      Specified by:
      setRemoteGoto in interface net.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)