Java Doc for PdfPTable.java in  » PDF » pdf-itext » com » lowagie » text » pdf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » pdf itext » com.lowagie.text.pdf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.pdf.PdfPTable

PdfPTable
public class PdfPTable implements Element(Code)
This is a table that can be put at an absolute position but can also be added to the document as the class Table. In the last case when crossing pages the table always break at full rows; if a row is bigger than the page it is dropped silently to avoid infinite loops.

A PdfPTableEvent can be associated to the table to do custom drawing when the table is rendered.
author:
   Paulo Soares (psoares@consiste.pt)



Field Summary
final public static  intBACKGROUNDCANVAS
     The index of the duplicate PdfContentByte where the background will be drawn.
final public static  intBASECANVAS
     The index of the original PdfcontentByte.
final public static  intLINECANVAS
     The index of the duplicate PdfContentByte where the border lines will be drawn.
final public static  intTEXTCANVAS
     The index of the duplicate PdfContentByte where the text will be drawn.
protected  floatabsoluteWidths
    
protected  PdfPCellcurrentRow
    
protected  intcurrentRowIdx
    
protected  PdfPCelldefaultCell
    
protected  intheaderRows
     Holds value of property headerRows.
protected  booleanisColspan
    
protected  floatrelativeWidths
    
protected  ArrayListrows
    
protected  intrunDirection
    
protected  floatspacingAfter
     The spacing after the table.
protected  floatspacingBefore
     The spacing before the table.
protected  PdfPTableEventtableEvent
    
protected  floattotalHeight
    
protected  floattotalWidth
    
protected  floatwidthPercentage
     Holds value of property widthPercentage.

Constructor Summary
protected  PdfPTable()
    
public  PdfPTable(float relativeWidths)
     Constructs a PdfPTable with the relative column widths.
public  PdfPTable(int numColumns)
     Constructs a PdfPTable with numColumns columns.
public  PdfPTable(PdfPTable table)
     Constructs a copy of a PdfPTable.

Method Summary
public  voidaddCell(PdfPCell cell)
     Adds a cell element.
public  voidaddCell(String text)
     Adds a cell element.
public  voidaddCell(PdfPTable table)
     Adds a nested table.
public  voidaddCell(Image image)
     Adds an Image as Cell.
Parameters:
  image - the Image to add to the table.
public  voidaddCell(Phrase phrase)
     Adds a cell element.
public static  PdfContentByte[]beginWritingRows(PdfContentByte canvas)
     Gets and initializes the 4 layers where the table is written to.
 voidcalculateHeights()
    
public  voidcalculateHeightsFast()
     Calculates the heights of the table.
public  voidcompleteRow()
     Completes the current row with the default cell.
public  voiddeleteBodyRows()
    
public  booleandeleteLastRow()
     Deletes the last row in the table.
public  booleandeleteRow(int rowNumber)
     Deletes a row from the table.
public static  voidendWritingRows(PdfContentByte[] canvases)
     Finishes writing the table.
public  float[]getAbsoluteWidths()
     Gets the absolute sizes of each column width.
public  ArrayListgetChunks()
     Gets all the chunks in this element.
public  PdfPCellgetDefaultCell()
     Gets the default PdfPCell that will be used as reference for all the addCell methods except addCell(PdfPCell).
 float[][]getEventWidths(float xPos, int firstRow, int lastRow, boolean includeHeaders)
    
public  intgetFooterRows()
     Gets the number of rows in the footer.
public  floatgetHeaderHeight()
     Gets the height of the rows that constitute the header as defined by setHeaderRows().
public  intgetHeaderRows()
     Gets the number of the rows that constitute the header.
public  intgetHorizontalAlignment()
     Gets the horizontal alignment of the table relative to the page.
public  booleangetKeepTogether()
    
public  PdfPRowgetRow(int idx)
     Gets a row with a given index (added by Jin-Hsia Yang).
public  floatgetRowHeight(int idx)
     Gets the height of a particular row.
public  ArrayListgetRows()
     Gets an arraylist with all the rows in the table.
public  intgetRunDirection()
     Returns the run direction of the contents in the table.
public  PdfPTableEventgetTableEvent()
     Gets the table event for this page.
public  floatgetTotalHeight()
     Gets the total height of the table.
public  floatgetTotalWidth()
     Gets the full width of the table.
public  floatgetWidthPercentage()
     Gets the width percentage that the table will occupy in the page.
public  booleanisExtendLastRow()
     Gets the value of the last row extension.
public  booleanisHeadersInEvent()
     Gets the header status inclusion in PdfPTableEvent.
public  booleanisLockedWidth()
     Getter for property lockedWidth.
public  booleanisSkipFirstHeader()
     Getter for property skipFirstHeader.
public  booleanisSplitLate()
     Gets the property splitLate.
public  booleanisSplitRows()
     Gets the split value.
public  booleanprocess(ElementListener listener)
     Processes the element by adding it (or the different parts) to an ElementListener.
public  voidsetExtendLastRow(boolean extendLastRow)
     When set the last row will be extended to fill all the remaining space to the bottom boundary.
public  voidsetFooterRows(int footerRows)
     Sets the number of rows to be used for the footer.
public  voidsetHeaderRows(int headerRows)
     Sets the number of the top rows that constitute the header.
public  voidsetHeadersInEvent(boolean headersInEvent)
     When set the PdfPTableEvent will include the headers.
public  voidsetHorizontalAlignment(int horizontalAlignment)
     Sets the horizontal alignment of the table relative to the page.
public  voidsetKeepTogether(boolean p_KeepTogether)
     If true the table will be kept on one page if it fits, by forcing a new page if it doesn't fit on the current page.
public  voidsetLockedWidth(boolean lockedWidth)
     Uses the value in setTotalWidth() in Document.add().
public  voidsetRunDirection(int runDirection)
     Sets the run direction of the contents of the table.
public  voidsetSkipFirstHeader(boolean skipFirstHeader)
     Skips the printing of the first header.
public  voidsetSpacingAfter(float spacing)
     Sets the spacing after this table.
public  voidsetSpacingBefore(float spacing)
     Sets the spacing before this table.
public  voidsetSplitLate(boolean splitLate)
     If true the row will only split if it's the first one in an empty page.
public  voidsetSplitRows(boolean splitRows)
     When set the rows that won't fit in the page will be split.
public  voidsetTableEvent(PdfPTableEvent event)
     Sets the table event for this table.
public  voidsetTotalWidth(float totalWidth)
     Sets the full width of the table.
public  voidsetTotalWidth(float columnWidth)
     Sets the full width of the table from the absolute column width.
public  voidsetWidthPercentage(float columnWidth, Rectangle pageSize)
     Sets the percentage width of the table from the absolute column width.
public  voidsetWidthPercentage(float widthPercentage)
     Sets the width percentage that the table will occupy in the page.
public  voidsetWidths(float relativeWidths)
     Sets the relative widths of the table.
public  voidsetWidths(int relativeWidths)
     Sets the relative widths of the table.
public static  PdfPTableshallowCopy(PdfPTable table)
     Makes a shallow copy of a table (format without content).
public  intsize()
     Gets the number of rows in this table.
public  floatspacingAfter()
     Gets the spacing after this table.
public  floatspacingBefore()
     Gets the spacing before this table.
public  inttype()
     Gets the type of the text element.
public  floatwriteSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases)
     Writes the selected rows to the document.

canvases is obtained from beginWritingRows().
Parameters:
  rowStart - the first row to be written, zero index
Parameters:
  rowEnd - the last row to be written + 1.

public  floatwriteSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases)
     Writes the selected rows and columns to the document. This method does not clip the columns; this is only important if there are columns with colspan at boundaries.

canvases is obtained from beginWritingRows().

The table event is only fired for complete rows.
Parameters:
  colStart - the first column to be written, zero index
Parameters:
  colEnd - the last column to be written + 1.

public  floatwriteSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas)
     Writes the selected rows to the document.
Parameters:
  rowStart - the first row to be written, zero index
Parameters:
  rowEnd - the last row to be written + 1.
public  floatwriteSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas)
     Writes the selected rows to the document. This method clips the columns; this is only important if there are columns with colspan at boundaries.

The table event is only fired for complete rows.
Parameters:
  colStart - the first column to be written, zero index
Parameters:
  colEnd - the last column to be written + 1.


Field Detail
BACKGROUNDCANVAS
final public static int BACKGROUNDCANVAS(Code)
The index of the duplicate PdfContentByte where the background will be drawn.



BASECANVAS
final public static int BASECANVAS(Code)
The index of the original PdfcontentByte.



LINECANVAS
final public static int LINECANVAS(Code)
The index of the duplicate PdfContentByte where the border lines will be drawn.



TEXTCANVAS
final public static int TEXTCANVAS(Code)
The index of the duplicate PdfContentByte where the text will be drawn.



absoluteWidths
protected float absoluteWidths(Code)



currentRow
protected PdfPCell currentRow(Code)



currentRowIdx
protected int currentRowIdx(Code)



defaultCell
protected PdfPCell defaultCell(Code)



headerRows
protected int headerRows(Code)
Holds value of property headerRows.



isColspan
protected boolean isColspan(Code)



relativeWidths
protected float relativeWidths(Code)



rows
protected ArrayList rows(Code)



runDirection
protected int runDirection(Code)



spacingAfter
protected float spacingAfter(Code)
The spacing after the table.



spacingBefore
protected float spacingBefore(Code)
The spacing before the table.



tableEvent
protected PdfPTableEvent tableEvent(Code)



totalHeight
protected float totalHeight(Code)



totalWidth
protected float totalWidth(Code)



widthPercentage
protected float widthPercentage(Code)
Holds value of property widthPercentage.




Constructor Detail
PdfPTable
protected PdfPTable()(Code)



PdfPTable
public PdfPTable(float relativeWidths)(Code)
Constructs a PdfPTable with the relative column widths.
Parameters:
  relativeWidths - the relative column widths



PdfPTable
public PdfPTable(int numColumns)(Code)
Constructs a PdfPTable with numColumns columns.
Parameters:
  numColumns - the number of columns



PdfPTable
public PdfPTable(PdfPTable table)(Code)
Constructs a copy of a PdfPTable.
Parameters:
  table - the PdfPTable to be copied




Method Detail
addCell
public void addCell(PdfPCell cell)(Code)
Adds a cell element.
Parameters:
  cell - the cell element



addCell
public void addCell(String text)(Code)
Adds a cell element.
Parameters:
  text - the text for the cell



addCell
public void addCell(PdfPTable table)(Code)
Adds a nested table.
Parameters:
  table - the table to be added to the cell



addCell
public void addCell(Image image)(Code)
Adds an Image as Cell.
Parameters:
  image - the Image to add to the table. This image will fit in the cell



addCell
public void addCell(Phrase phrase)(Code)
Adds a cell element.
Parameters:
  phrase - the Phrase to be added to the cell



beginWritingRows
public static PdfContentByte[] beginWritingRows(PdfContentByte canvas)(Code)
Gets and initializes the 4 layers where the table is written to. The text or graphics are added to one of the 4 PdfContentByte returned with the following order:

  • PdfPtable.BASECANVAS - the original PdfContentByte. Anything placed here will be under the table.
  • PdfPtable.BACKGROUNDCANVAS - the layer where the background goes to.
  • PdfPtable.LINECANVAS - the layer where the lines go to.
  • PdfPtable.TEXTCANVAS - the layer where the text go to. Anything placed here will be over the table.

The layers are placed in sequence on top of each other.
Parameters:
  canvas - the PdfContentByte where the rows willbe written to an array of 4 PdfContentByte
See Also:   PdfPTable.writeSelectedRows(int,int,float,float,PdfContentByte[])




calculateHeights
void calculateHeights()(Code)



calculateHeightsFast
public void calculateHeightsFast()(Code)
Calculates the heights of the table.



completeRow
public void completeRow()(Code)
Completes the current row with the default cell. An incomplete row will be dropped but calling this method will make sure that it will be present in the table.



deleteBodyRows
public void deleteBodyRows()(Code)
Removes all of the rows except headers



deleteLastRow
public boolean deleteLastRow()(Code)
Deletes the last row in the table. true if the last row was deleted



deleteRow
public boolean deleteRow(int rowNumber)(Code)
Deletes a row from the table.
Parameters:
  rowNumber - the row to be deleted true if the row was deleted



endWritingRows
public static void endWritingRows(PdfContentByte[] canvases)(Code)
Finishes writing the table.
Parameters:
  canvases - the array returned by beginWritingRows()



getAbsoluteWidths
public float[] getAbsoluteWidths()(Code)
Gets the absolute sizes of each column width. he absolute sizes of each column width



getChunks
public ArrayList getChunks()(Code)
Gets all the chunks in this element. an ArrayList



getDefaultCell
public PdfPCell getDefaultCell()(Code)
Gets the default PdfPCell that will be used as reference for all the addCell methods except addCell(PdfPCell). default PdfPCell



getEventWidths
float[][] getEventWidths(float xPos, int firstRow, int lastRow, boolean includeHeaders)(Code)



getFooterRows
public int getFooterRows()(Code)
Gets the number of rows in the footer. the number of rows in the footer



getHeaderHeight
public float getHeaderHeight()(Code)
Gets the height of the rows that constitute the header as defined by setHeaderRows(). the height of the rows that constitute the header



getHeaderRows
public int getHeaderRows()(Code)
Gets the number of the rows that constitute the header. the number of the rows that constitute the header



getHorizontalAlignment
public int getHorizontalAlignment()(Code)
Gets the horizontal alignment of the table relative to the page. the horizontal alignment of the table relative to the page



getKeepTogether
public boolean getKeepTogether()(Code)



getRow
public PdfPRow getRow(int idx)(Code)
Gets a row with a given index (added by Jin-Hsia Yang).
Parameters:
  idx - the row at position idx



getRowHeight
public float getRowHeight(int idx)(Code)
Gets the height of a particular row.
Parameters:
  idx - the row index (starts at 0) the height of a particular row



getRows
public ArrayList getRows()(Code)
Gets an arraylist with all the rows in the table. an arraylist



getRunDirection
public int getRunDirection()(Code)
Returns the run direction of the contents in the table. One of the following values: PdfWriter.RUN_DIRECTION_DEFAULT, PdfWriter.RUN_DIRECTION_NO_BIDI, PdfWriter.RUN_DIRECTION_LTR or PdfWriter.RUN_DIRECTION_RTL.



getTableEvent
public PdfPTableEvent getTableEvent()(Code)
Gets the table event for this page. the table event for this page



getTotalHeight
public float getTotalHeight()(Code)
Gets the total height of the table. the total height of the table



getTotalWidth
public float getTotalWidth()(Code)
Gets the full width of the table. the full width of the table



getWidthPercentage
public float getWidthPercentage()(Code)
Gets the width percentage that the table will occupy in the page. the width percentage that the table will occupy in the page



isExtendLastRow
public boolean isExtendLastRow()(Code)
Gets the value of the last row extension. true if the last row will extend; false otherwise



isHeadersInEvent
public boolean isHeadersInEvent()(Code)
Gets the header status inclusion in PdfPTableEvent. true if the headers are included; false otherwise



isLockedWidth
public boolean isLockedWidth()(Code)
Getter for property lockedWidth. Value of property lockedWidth.



isSkipFirstHeader
public boolean isSkipFirstHeader()(Code)
Getter for property skipFirstHeader. Value of property skipFirstHeader.



isSplitLate
public boolean isSplitLate()(Code)
Gets the property splitLate. the property splitLate



isSplitRows
public boolean isSplitRows()(Code)
Gets the split value. true to split; false otherwise



process
public boolean process(ElementListener listener)(Code)
Processes the element by adding it (or the different parts) to an ElementListener.
Parameters:
  listener - an ElementListener true if the element was processed successfully



setExtendLastRow
public void setExtendLastRow(boolean extendLastRow)(Code)
When set the last row will be extended to fill all the remaining space to the bottom boundary.
Parameters:
  extendLastRow - true to extend the last row; false otherwise



setFooterRows
public void setFooterRows(int footerRows)(Code)
Sets the number of rows to be used for the footer. The number of footer rows are subtracted from the header rows. For example, for a table with two header rows and one footer row the code would be:

 table.setHeaderRows(3);
 table.setFooterRows(1);
 

Row 0 and 1 will be the header rows and row 2 will be the footer row.
Parameters:
  footerRows - the number of rows to be used for the footer




setHeaderRows
public void setHeaderRows(int headerRows)(Code)
Sets the number of the top rows that constitute the header. This header has only meaning if the table is added to Document and the table crosses pages.
Parameters:
  headerRows - the number of the top rows that constitute the header



setHeadersInEvent
public void setHeadersInEvent(boolean headersInEvent)(Code)
When set the PdfPTableEvent will include the headers.
Parameters:
  headersInEvent - true to include the headers; false otherwise



setHorizontalAlignment
public void setHorizontalAlignment(int horizontalAlignment)(Code)
Sets the horizontal alignment of the table relative to the page. It only has meaning if the width percentage is less than 100%.
Parameters:
  horizontalAlignment - the horizontal alignment of the table relative to the page



setKeepTogether
public void setKeepTogether(boolean p_KeepTogether)(Code)
If true the table will be kept on one page if it fits, by forcing a new page if it doesn't fit on the current page. The default is to split the table over multiple pages.
Parameters:
  p_KeepTogether - whether to try to keep the table on one page



setLockedWidth
public void setLockedWidth(boolean lockedWidth)(Code)
Uses the value in setTotalWidth() in Document.add().
Parameters:
  lockedWidth - true to use the value in setTotalWidth() in Document.add()



setRunDirection
public void setRunDirection(int runDirection)(Code)
Sets the run direction of the contents of the table.
Parameters:
  runDirection -



setSkipFirstHeader
public void setSkipFirstHeader(boolean skipFirstHeader)(Code)
Skips the printing of the first header. Used when printing tables in succession belonging to the same printed table aspect.
Parameters:
  skipFirstHeader - New value of property skipFirstHeader.



setSpacingAfter
public void setSpacingAfter(float spacing)(Code)
Sets the spacing after this table.
Parameters:
  spacing - the new spacing



setSpacingBefore
public void setSpacingBefore(float spacing)(Code)
Sets the spacing before this table.
Parameters:
  spacing - the new spacing



setSplitLate
public void setSplitLate(boolean splitLate)(Code)
If true the row will only split if it's the first one in an empty page. It's true by default.

It's only meaningful if setSplitRows(true).
Parameters:
  splitLate - the property value




setSplitRows
public void setSplitRows(boolean splitRows)(Code)
When set the rows that won't fit in the page will be split. Note that it takes at least twice the memory to handle a split table row than a normal table. true by default.
Parameters:
  splitRows - true to split; false otherwise



setTableEvent
public void setTableEvent(PdfPTableEvent event)(Code)
Sets the table event for this table.
Parameters:
  event - the table event for this table



setTotalWidth
public void setTotalWidth(float totalWidth)(Code)
Sets the full width of the table.
Parameters:
  totalWidth - the full width of the table.



setTotalWidth
public void setTotalWidth(float columnWidth) throws DocumentException(Code)
Sets the full width of the table from the absolute column width.
Parameters:
  columnWidth - the absolute width of each column
throws:
  DocumentException - if the number of widths is different than the numberof columns



setWidthPercentage
public void setWidthPercentage(float columnWidth, Rectangle pageSize) throws DocumentException(Code)
Sets the percentage width of the table from the absolute column width.
Parameters:
  columnWidth - the absolute width of each column
Parameters:
  pageSize - the page size
throws:
  DocumentException -



setWidthPercentage
public void setWidthPercentage(float widthPercentage)(Code)
Sets the width percentage that the table will occupy in the page.
Parameters:
  widthPercentage - the width percentage that the table will occupy in the page



setWidths
public void setWidths(float relativeWidths) throws DocumentException(Code)
Sets the relative widths of the table.
Parameters:
  relativeWidths - the relative widths of the table.
throws:
  DocumentException - if the number of widths is different than the numberof columns



setWidths
public void setWidths(int relativeWidths) throws DocumentException(Code)
Sets the relative widths of the table.
Parameters:
  relativeWidths - the relative widths of the table.
throws:
  DocumentException - if the number of widths is different than the numberof columns



shallowCopy
public static PdfPTable shallowCopy(PdfPTable table)(Code)
Makes a shallow copy of a table (format without content).
Parameters:
  table - a shallow copy of the table



size
public int size()(Code)
Gets the number of rows in this table. the number of rows in this table



spacingAfter
public float spacingAfter()(Code)
Gets the spacing after this table. the spacing



spacingBefore
public float spacingBefore()(Code)
Gets the spacing before this table. the spacing



type
public int type()(Code)
Gets the type of the text element. a type



writeSelectedRows
public float writeSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases)(Code)
Writes the selected rows to the document.

canvases is obtained from beginWritingRows().
Parameters:
  rowStart - the first row to be written, zero index
Parameters:
  rowEnd - the last row to be written + 1. If it is -1 all therows to the end are written
Parameters:
  xPos - the x write coodinate
Parameters:
  yPos - the y write coodinate
Parameters:
  canvases - an array of 4 PdfContentByte obtained frombeginWrittingRows() the y coordinate position of the bottom of the last row
See Also:   PdfPTable.beginWritingRows(com.lowagie.text.pdf.PdfContentByte)




writeSelectedRows
public float writeSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases)(Code)
Writes the selected rows and columns to the document. This method does not clip the columns; this is only important if there are columns with colspan at boundaries.

canvases is obtained from beginWritingRows().

The table event is only fired for complete rows.
Parameters:
  colStart - the first column to be written, zero index
Parameters:
  colEnd - the last column to be written + 1. If it is -1 all thecolumns to the end are written
Parameters:
  rowStart - the first row to be written, zero index
Parameters:
  rowEnd - the last row to be written + 1. If it is -1 all therows to the end are written
Parameters:
  xPos - the x write coodinate
Parameters:
  yPos - the y write coodinate
Parameters:
  canvases - an array of 4 PdfContentByte obtained frombeginWrittingRows() the y coordinate position of the bottom of the last row
See Also:   PdfPTable.beginWritingRows(com.lowagie.text.pdf.PdfContentByte)




writeSelectedRows
public float writeSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas)(Code)
Writes the selected rows to the document.
Parameters:
  rowStart - the first row to be written, zero index
Parameters:
  rowEnd - the last row to be written + 1. If it is -1 all therows to the end are written
Parameters:
  xPos - the x write coodinate
Parameters:
  yPos - the y write coodinate
Parameters:
  canvas - the PdfContentByte where the rows willbe written to the y coordinate position of the bottom of the last row



writeSelectedRows
public float writeSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas)(Code)
Writes the selected rows to the document. This method clips the columns; this is only important if there are columns with colspan at boundaries.

The table event is only fired for complete rows.
Parameters:
  colStart - the first column to be written, zero index
Parameters:
  colEnd - the last column to be written + 1. If it is -1 all the
Parameters:
  rowStart - the first row to be written, zero index
Parameters:
  rowEnd - the last row to be written + 1. If it is -1 all therows to the end are written
Parameters:
  xPos - the x write coodinate
Parameters:
  yPos - the y write coodinate
Parameters:
  canvas - the PdfContentByte where the rows willbe written to the y coordinate position of the bottom of the last row




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.