Package overit.geocall.basic.ui.report
Class Report
java.lang.Object
overit.geocall.basic.ui.report.Report
This Class implements method and attributes to manage the definitions of a Report.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected floatprotected floatprotected floatprotected com.lowagie.text.Documentprotected HashMapprotected OutputStreamprotected intprotected floatprotected floatprotected PagesNumberprotected com.lowagie.text.pdf.PdfContentByteprotected PageListenerprotected com.lowagie.text.pdf.PdfWriterprotected ArrayListprotected ArrayListprotected floatprotected ReportRowprotected ReportRowprotected floatprotected floatprotected floatprotected floatprotected float -
Constructor Summary
ConstructorsConstructorDescriptionReport(com.lowagie.text.Rectangle page, float bl, float br, float bt, float bb, OutputStream os) Main class's constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the report's author.voidAdd a [@link PdfBox} on the report.voidAdd a [@link PdfBox} and a note [@link PdfBox} on the report.voidaddSubject(String s) Add a subject for the report.protected ReportPageprotected voidcom.lowagie.text.pdf.PdfContentByteGets the PdfWriterPdfContentByte.floatGets the report height.protected HashMapgetReportRow(int i) Gets the ithReportRow.floatgetWidth()Gets the report width.voidDefines that here there's a position (inside the report) where it's mandatory to put a breake and continue on the next page.voidDefines that here there's a position (inside the report) where it's possibile to put a breake and continue on the next page.voidhereBreakableWithFoot(PdfBox[] bb) voidhereBreakableWithHead(PdfBox[] bb) voidDefines that here there's a position (inside the report) where it's not possibile to put a breake and continue on the next page.voidoutput()Create the real report.voidSets aPageListenerfor this report instance.voidsetXY(float xx, float yy) Sets the page report coordinates from which start to create the report.voidsetXYWH(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..
-
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
-
_rowList
-
_rpList
-
prec
-
next
-
_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
-
_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 newReportdefining the page, the page size, the borders and thePdfWriterwith which write the report.- Parameters:
page- The page from which create the document and take the page size.bl- The left boundbr- The Right boundbt- The Top boundbb- The Bottom boundos- The output Stream- Throws:
com.lowagie.text.DocumentException- Reised if it's not possible to get aPdfWriterinstance correctly.
-
-
Method Details
-
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 coordinateww- The width to set.hh- The height to set.
-
getContentByte
public com.lowagie.text.pdf.PdfContentByte getContentByte()Gets the PdfWriterPdfContentByte.- Returns:
- The
PdfContentByteof thePdfWriter.
-
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
Add the report's author.- Parameters:
s- The author to set.
-
addSubject
Add a subject for the report.- Parameters:
s- The subject to set.
-
setPageListener
Sets aPageListenerfor this report instance.- Parameters:
pl- ThePageListenerto 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
Gets the ithReportRow.- Parameters:
i- The ith position.- Returns:
- The ith
ReportRowof 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
-
hereBreakableWithFoot
-
addBox
Add a [@link PdfBox} on the report.- Parameters:
b- The Box to add.
-
addBox
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
-