Class Report

java.lang.Object
overit.geocall.basic.ui.report.Report

public class Report extends Object
This Class implements method and attributes to manage the definitions of a Report.
  • Field Details

    • _d

      protected com.lowagie.text.Document _d
    • _pcb

      protected com.lowagie.text.pdf.PdfContentByte _pcb
    • _pw

      protected com.lowagie.text.pdf.PdfWriter _pw
    • _os

      protected OutputStream _os
    • _rowList

      protected ArrayList _rowList
    • _rpList

      protected ArrayList _rpList
    • prec

      protected ReportRow prec
    • next

      protected ReportRow next
    • _pl

      protected PageListener _pl
    • _page

      protected int _page
    • _pagew

      protected float _pagew
    • _pageh

      protected float _pageh
    • _bl

      protected float _bl
    • _br

      protected float _br
    • _bt

      protected float _bt
    • _bb

      protected float _bb
    • x

      protected float x
    • y

      protected float y
    • x1

      protected float x1
    • y1

      protected float y1
    • w

      protected float w
    • h

      protected float h
    • _imageCollection

      protected HashMap _imageCollection
    • _pc

      protected PagesNumber _pc
  • Constructor Details

    • Report

      public Report(com.lowagie.text.Rectangle page, float bl, float br, float bt, float bb, OutputStream os) throws com.lowagie.text.DocumentException
      Main class's constructor. Creates a new Report defining the page, the page size, the borders and the PdfWriter with which write the report.
      Parameters:
      page - The page from which create the document and take the page size.
      bl - The left bound
      br - The Right bound
      bt - The Top bound
      bb - The Bottom bound
      os - The output Stream
      Throws:
      com.lowagie.text.DocumentException - Reised if it's not possible to get a PdfWriter instance correctly.
  • Method Details

    • getImageCollection

      protected HashMap getImageCollection()
    • setXY

      public void setXY(float xx, float yy)
      Sets the page report coordinates from which start to create the report.
      Parameters:
      xx - The x coordinate.
      yy - The t coordinate.
    • setXYWH

      public void setXYWH(float xx, float yy, float ww, float hh)
      Sets the page report coordinates from which start to create the report, the widht and the height of the report..
      Parameters:
      xx - The x coordinate.
      yy - The t coordinate
      ww - The width to set.
      hh - The height to set.
    • getContentByte

      public com.lowagie.text.pdf.PdfContentByte getContentByte()
      Gets the PdfWriter PdfContentByte.
      Returns:
      The PdfContentByte of the PdfWriter.
    • getWidth

      public float getWidth()
      Gets the report width.
      Returns:
      The report width.
    • getHeight

      public float getHeight()
      Gets the report height.
      Returns:
      The height of the report.
    • addAuthor

      public void addAuthor(String s)
      Add the report's author.
      Parameters:
      s - The author to set.
    • addSubject

      public void addSubject(String s)
      Add a subject for the report.
      Parameters:
      s - The subject to set.
    • setPageListener

      public void setPageListener(PageListener pl)
      Sets a PageListener for this report instance.
      Parameters:
      pl - The PageListener to set.
    • output

      public void output()
      Create the real report. Takes all the report's page and draw them in ordere to create and display the entire report.
    • getReportRow

      public ReportRow getReportRow(int i)
      Gets the ith ReportRow.
      Parameters:
      i - The ith position.
      Returns:
      The ith ReportRow of the report
    • hereBreakable

      public void hereBreakable()
      Defines that here there's a position (inside the report) where it's possibile to put a breake and continue on the next page.
    • hereUnbreakable

      public void hereUnbreakable()
      Defines that here there's a position (inside the report) where it's not possibile to put a breake and continue on the next page.
    • hereBreak

      public void hereBreak()
      Defines that here there's a position (inside the report) where it's mandatory to put a breake and continue on the next page.
    • hereBreakableWithHead

      public void hereBreakableWithHead(PdfBox[] bb)
    • hereBreakableWithFoot

      public void hereBreakableWithFoot(PdfBox[] bb)
    • addBox

      public void addBox(PdfBox b)
      Add a [@link PdfBox} on the report.
      Parameters:
      b - The Box to add.
    • addBox

      public void addBox(PdfBox b, PdfBox note)
      Add a [@link PdfBox} and a note [@link PdfBox} on the report.
      Parameters:
      b - The box to add.
      note - The note box to add.
    • definePages

      protected void definePages()
    • definePage

      protected ReportPage definePage()