Java Doc for MultiColumnText.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.MultiColumnText

MultiColumnText
public class MultiColumnText implements Element(Code)
Formats content into one or more columns bounded by a rectangle. The columns may be simple rectangles or more complicated shapes. Add all of the columns before adding content. Column continuation is supported. A MultiColumnText object may be added to a document using Document.add.
author:
   Steve Appling


Field Summary
final public static  floatAUTOMATIC
    

Constructor Summary
public  MultiColumnText()
     Default constructor.
public  MultiColumnText(float height)
     Construct a MultiColumnText container of the specified height.
public  MultiColumnText(float top, float height)
     Construct a MultiColumnText container of the specified height starting at the specified Y position.

Method Summary
public  voidaddColumn(float[] left, float[] right)
     Add a new column.
public  voidaddElement(Element element)
     Add an element to be rendered in a column. Note that you can only add a Phrase or a Chunk if the columns are not all simple.
public  voidaddRegularColumns(float left, float right, float gutterWidth, int numColumns)
     Add the specified number of evenly spaced rectangular columns.
public  voidaddSimpleColumn(float left, float right)
     Add a simple rectangular column with specified left and right x position boundaries.
public  ArrayListgetChunks()
    
public  intgetCurrentColumn()
     Gets the current column.
public  booleanisOverflow()
     Indicates that all of the text did not fit in the specified height.
public  voidnextColumn()
     Moves the text insertion point to the beginning of the next column, issuing a page break if needed.
public  booleanprocess(ElementListener listener)
     Processes the element by adding it to an ElementListener.
public  voidresetCurrentColumn()
     Resets the current column.
public  voidsetAlignment(int alignment)
    
public  voidsetArabicOptions(int arabicOptions)
     Sets the arabic shaping options.
public  voidsetColumnsRightToLeft(boolean direction)
     Sets the direction of the columns.
public  voidsetRunDirection(int runDirection)
     Sets the run direction.
public  voidsetSpaceCharRatio(float spaceCharRatio)
     Sets the ratio between the extra word spacing and the extra character spacing when the text is fully justified.
public  booleanshiftCurrentColumn()
     Shifts the current column.
public  inttype()
     Gets the type of the text element.
public  voiduseColumnParams(ColumnText sourceColumn)
     Copy the parameters from the specified ColumnText to use when rendering.
public  floatwrite(PdfContentByte canvas, PdfDocument document, float documentY)
     Write out the columns.

Field Detail
AUTOMATIC
final public static float AUTOMATIC(Code)
special constant for automatic calculation of height




Constructor Detail
MultiColumnText
public MultiColumnText()(Code)
Default constructor. Sets height to AUTOMATIC. Columns will repeat on each page as necessary to accomodate content length.



MultiColumnText
public MultiColumnText(float height)(Code)
Construct a MultiColumnText container of the specified height. If height is AUTOMATIC, fill complete pages until done. If a specific height is used, it may span one or more pages.
Parameters:
  height -



MultiColumnText
public MultiColumnText(float top, float height)(Code)
Construct a MultiColumnText container of the specified height starting at the specified Y position.
Parameters:
  height -
Parameters:
  top -




Method Detail
addColumn
public void addColumn(float[] left, float[] right)(Code)
Add a new column. The parameters are limits for each column wall in the format of a sequence of points (x1,y1,x2,y2,...).
Parameters:
  left - limits for left column
Parameters:
  right - limits for right column



addElement
public void addElement(Element element) throws DocumentException(Code)
Add an element to be rendered in a column. Note that you can only add a Phrase or a Chunk if the columns are not all simple. This is an underlying restriction in com.lowagie.text.pdf.ColumnText
Parameters:
  element - element to add
throws:
  DocumentException - if element can't be added



addRegularColumns
public void addRegularColumns(float left, float right, float gutterWidth, int numColumns)(Code)
Add the specified number of evenly spaced rectangular columns. Columns will be seperated by the specified gutterWidth.
Parameters:
  left - left boundary of first column
Parameters:
  right - right boundary of last column
Parameters:
  gutterWidth - width of gutter spacing between columns
Parameters:
  numColumns - number of columns to add



addSimpleColumn
public void addSimpleColumn(float left, float right)(Code)
Add a simple rectangular column with specified left and right x position boundaries.
Parameters:
  left - left boundary
Parameters:
  right - right boundary



getChunks
public ArrayList getChunks()(Code)
Returns null - not used null



getCurrentColumn
public int getCurrentColumn()(Code)
Gets the current column. the current column



isOverflow
public boolean isOverflow()(Code)
Indicates that all of the text did not fit in the specified height. Note that isOverflow will return false before the MultiColumnText object has been added to the document. It will always be false if the height is AUTOMATIC. true if there is still space left in the column



nextColumn
public void nextColumn() throws DocumentException(Code)
Moves the text insertion point to the beginning of the next column, issuing a page break if needed.
throws:
  DocumentException - on error



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



resetCurrentColumn
public void resetCurrentColumn()(Code)
Resets the current column.



setAlignment
public void setAlignment(int alignment)(Code)
Sets the default alignment
Parameters:
  alignment - the default alignment



setArabicOptions
public void setArabicOptions(int arabicOptions)(Code)
Sets the arabic shaping options. The option can be AR_NOVOWEL, AR_COMPOSEDTASHKEEL and AR_LIG.
Parameters:
  arabicOptions - the arabic shaping options



setColumnsRightToLeft
public void setColumnsRightToLeft(boolean direction)(Code)
Sets the direction of the columns.
Parameters:
  direction - true = right2left; false = left2right



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



setSpaceCharRatio
public void setSpaceCharRatio(float spaceCharRatio)(Code)
Sets the ratio between the extra word spacing and the extra character spacing when the text is fully justified. Extra word spacing will grow spaceCharRatio times more than extra character spacing. If the ratio is PdfWriter.NO_SPACE_CHAR_RATIO then the extra character spacing will be zero.
Parameters:
  spaceCharRatio - the ratio between the extra word spacing and the extra character spacing



shiftCurrentColumn
public boolean shiftCurrentColumn()(Code)
Shifts the current column. true if the currentcolumn has changed



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



useColumnParams
public void useColumnParams(ColumnText sourceColumn)(Code)
Copy the parameters from the specified ColumnText to use when rendering. Parameters like setArabicOptions must be set in this way.
Parameters:
  sourceColumn -



write
public float write(PdfContentByte canvas, PdfDocument document, float documentY) throws DocumentException(Code)
Write out the columns. After writing, use MultiColumnText.isOverflow() to see if all text was written.
Parameters:
  canvas - PdfContentByte to write with
Parameters:
  document - document to write to (only used to get page limit info)
Parameters:
  documentY - starting y position to begin writing at the current height (y position) after writing the columns
throws:
  DocumentException - on error



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.