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

ColumnText
public class ColumnText (Code)
Formats text in a columnwise form. The text is bound on the left and on the right by a sequence of lines. This allows the column to have any shape, not only rectangular.

Several parameters can be set like the first paragraph line indent and extra space between paragraphs.

A call to the method go will return one of the following situations: the column ended or the text ended.

I the column ended, a new column definition can be loaded with the method setColumns and the method go can be called again.

If the text ended, more text can be loaded with addText and the method go can be called again.
The only limitation is that one or more complete paragraphs must be loaded each time.

Full bidirectional reordering is supported. If the run direction is PdfWriter.RUN_DIRECTION_RTL the meaning of the horizontal alignments and margins is mirrored.
author:
   Paulo Soares (psoares@consiste.pt)



Field Summary
final public static  intAR_COMPOSEDTASHKEEL
     Compose the tashkeel in the ligatures.
final public static  intAR_LIG
     Do some extra double ligatures.
final public static  intAR_NOVOWEL
    
final public static  intDIGITS_AN2EN
     Digit shaping option: Replace Arabic-Indic digits by European digits (U+0030...U+0039).
final public static  intDIGITS_EN2AN
     Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits.
final public static  intDIGITS_EN2AN_INIT_AL
     Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC).
final public static  intDIGITS_EN2AN_INIT_LR
     Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC).
final public static  intDIGIT_TYPE_AN
     Digit type option: Use Arabic-Indic digits (U+0660...U+0669).
final public static  intDIGIT_TYPE_AN_EXTENDED
     Digit type option: Use Eastern (Extended) Arabic-Indic digits (U+06f0...U+06f9).
final public static  floatGLOBAL_SPACE_CHAR_RATIO
    
final protected static  intLINE_STATUS_NOLINE
     The line cannot fit this column position.
final protected static  intLINE_STATUS_OFFLIMITS
     The line is out the column limits.
final protected static  intLINE_STATUS_OK
     The column is valid.
final public static  intNO_MORE_COLUMN
     Signals that there is no more column.
final public static  intNO_MORE_TEXT
     Signals that there is no more text available.
final public static  intSTART_COLUMN
     Initial value of the status.
protected  intalignment
     The column alignment.
protected  BidiLinebidiLine
     The chunks that form the text.
protected  PdfContentBytecanvas
     The PdfContent where the text will be written to.
protected  PdfContentByte[]canvases
    
protected  booleancomposite
    
protected  ColumnTextcompositeColumn
    
protected  LinkedListcompositeElements
    
protected  floatcurrentLeading
     The leading for the current line.
protected  floatdescender
    
protected  floatextraParagraphSpace
     The extra space between paragraphs.
protected  floatfixedLeading
     The fixed text leading.
protected  floatfollowingIndent
     The following paragraph lines indent.
protected  floatindent
     The first paragraph line indent.
protected  ArrayListleftWall
     The left column bound.
protected  floatleftX
    
protected  intlineStatus
     The line status when trying to fit a line to a column.
protected  intlistIdx
    
protected  floatmaxY
     Upper bound of the column.
protected  floatminY
     Lower bound of the column.
protected  floatmultipliedLeading
     The text leading that is multiplied by the biggest font size in the line.
protected  booleanrectangularMode
    
protected  floatrectangularWidth
     The width of the line when the column is defined as a simple rectangle.
protected  floatrightIndent
     The right paragraph lines indent.
protected  ArrayListrightWall
     The right column bound.
protected  floatrightX
    
protected  intrunDirection
    
protected  PhrasewaitPhrase
    
protected  floatyLine
     The current y line location.

Constructor Summary
public  ColumnText(PdfContentByte canvas)
     Creates a ColumnText.
Parameters:
  canvas - the place where the text will be written to.

Method Summary
public  voidaddElement(Element element)
     Adds an element.
public  voidaddText(Phrase phrase)
     Adds a Phrase to the current text array.
public  voidaddText(Chunk chunk)
     Adds a Chunk to the current text array.
public  voidclearChunks()
     Clears the chunk array.
protected  ArrayListconvertColumn(float cLine)
     Converts a sequence of lines representing one of the column bounds into an internal format.
public static  ColumnTextduplicate(ColumnText org)
     Creates an independent duplicated of the instance org.
protected  float[]findLimitsOneLine()
     Finds the intersection between the yLine and the two column bounds.
protected  floatfindLimitsPoint(ArrayList wall)
     Finds the intersection between the yLine and the column.
protected  float[]findLimitsTwoLines()
     Finds the intersection between the yLine, the yLine-leadingand the two column bounds.
public  intgetAlignment()
     Gets the alignment.
public  intgetArabicOptions()
     Gets the arabic shaping options.
public  PdfContentBytegetCanvas()
     Gets the canvas.
public  PdfContentByte[]getCanvases()
     Gets the canvases.
public  floatgetDescender()
     Gets the biggest descender value of the last line written.
public  floatgetExtraParagraphSpace()
     Sets the extra space between paragraphs.
public  floatgetFilledWidth()
     Gets the real width used by the largest line.
public  floatgetFollowingIndent()
     Gets the following paragraph lines indent.
public  floatgetIndent()
     Gets the first paragraph line indent.
public  floatgetLeading()
    
public  intgetLinesWritten()
     Gets the number of lines written.
public  floatgetMultipliedLeading()
    
public  floatgetRightIndent()
     Gets the right paragraph lines indent.
public  intgetRunDirection()
     Gets the run direction.
public  floatgetSpaceCharRatio()
     Gets the space/character extra spacing ratio for fully justified text.
public static  floatgetWidth(Phrase phrase, int runDirection, int arabicOptions)
     Gets the width that the line will occupy after writing.
public static  floatgetWidth(Phrase phrase)
     Gets the width that the line will occupy after writing.
public  floatgetYLine()
     Gets the yLine.
public  intgo()
     Outputs the lines to the document.
public  intgo(boolean simulate)
     Outputs the lines to the document.
protected  intgoComposite(boolean simulate)
    
public static  booleanhasMoreText(int status)
     Checks the status variable and looks if there's still some text.
public  booleanisUseAscender()
     Checks if UseAscender is enabled/disabled.
public  ColumnTextsetACopy(ColumnText org)
     Makes this instance an independent copy of org.
public  voidsetAlignment(int alignment)
     Sets the alignment.
public  voidsetArabicOptions(int arabicOptions)
     Sets the arabic shaping options.
public  voidsetCanvas(PdfContentByte canvas)
     Sets the canvas.
public  voidsetCanvases(PdfContentByte[] canvases)
     Sets the canvases.
public  voidsetColumns(float leftLine, float rightLine)
     Sets the columns bounds.
public  voidsetExtraParagraphSpace(float extraParagraphSpace)
     Sets the extra space between paragraphs.
public  voidsetFilledWidth(float filledWidth)
     Sets the real width used by the largest line.
public  voidsetFollowingIndent(float indent)
     Sets the following paragraph lines indent.
public  voidsetIndent(float indent)
     Sets the first paragraph line indent.
public  voidsetLeading(float leading)
    
public  voidsetLeading(float fixedLeading, float multipliedLeading)
     Sets the leading fixed and variable.
public  voidsetRightIndent(float indent)
     Sets the right paragraph lines indent.
public  voidsetRunDirection(int runDirection)
     Sets the run direction.
public  voidsetSimpleColumn(Phrase phrase, float llx, float lly, float urx, float ury, float leading, int alignment)
     Simplified method for rectangular columns.
public  voidsetSimpleColumn(float llx, float lly, float urx, float ury, float leading, int alignment)
     Simplified method for rectangular columns.
public  voidsetSimpleColumn(float llx, float lly, float urx, float ury)
     Simplified method for rectangular columns.
protected  voidsetSimpleVars(ColumnText org)
    
public  voidsetSpaceCharRatio(float spaceCharRatio)
     Sets the ratio between the extra word spacing and the extra character spacing when the text is fully justified.
public  voidsetText(Phrase phrase)
     Replaces the current text array with this Phrase.
public  voidsetUseAscender(boolean use)
     Enables/Disables adjustment of first line height based on max ascender.
public  voidsetYLine(float yLine)
     Sets the yLine.
public static  voidshowTextAligned(PdfContentByte canvas, int alignment, Phrase phrase, float x, float y, float rotation, int runDirection, int arabicOptions)
     Shows a line of text.
public static  voidshowTextAligned(PdfContentByte canvas, int alignment, Phrase phrase, float x, float y, float rotation)
     Shows a line of text.
public  voidupdateFilledWidth(float w)
     Replaces the filledWidth if greater than the existing one.

Field Detail
AR_COMPOSEDTASHKEEL
final public static int AR_COMPOSEDTASHKEEL(Code)
Compose the tashkeel in the ligatures.



AR_LIG
final public static int AR_LIG(Code)
Do some extra double ligatures.



AR_NOVOWEL
final public static int AR_NOVOWEL(Code)
Eliminate the arabic vowels



DIGITS_AN2EN
final public static int DIGITS_AN2EN(Code)
Digit shaping option: Replace Arabic-Indic digits by European digits (U+0030...U+0039).



DIGITS_EN2AN
final public static int DIGITS_EN2AN(Code)
Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits.



DIGITS_EN2AN_INIT_AL
final public static int DIGITS_EN2AN_INIT_AL(Code)
Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC). The initial state at the start of the text is assumed to be an Arabic, letter, so European digits at the start of the text will change. Compare to DIGITS_ALEN2AN_INT_LR.



DIGITS_EN2AN_INIT_LR
final public static int DIGITS_EN2AN_INIT_LR(Code)
Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC). The initial state at the start of the text is assumed to be not an Arabic, letter, so European digits at the start of the text will not change. Compare to DIGITS_ALEN2AN_INIT_AL.



DIGIT_TYPE_AN
final public static int DIGIT_TYPE_AN(Code)
Digit type option: Use Arabic-Indic digits (U+0660...U+0669).



DIGIT_TYPE_AN_EXTENDED
final public static int DIGIT_TYPE_AN_EXTENDED(Code)
Digit type option: Use Eastern (Extended) Arabic-Indic digits (U+06f0...U+06f9).



GLOBAL_SPACE_CHAR_RATIO
final public static float GLOBAL_SPACE_CHAR_RATIO(Code)
the space char ratio



LINE_STATUS_NOLINE
final protected static int LINE_STATUS_NOLINE(Code)
The line cannot fit this column position.



LINE_STATUS_OFFLIMITS
final protected static int LINE_STATUS_OFFLIMITS(Code)
The line is out the column limits.



LINE_STATUS_OK
final protected static int LINE_STATUS_OK(Code)
The column is valid.



NO_MORE_COLUMN
final public static int NO_MORE_COLUMN(Code)
Signals that there is no more column.



NO_MORE_TEXT
final public static int NO_MORE_TEXT(Code)
Signals that there is no more text available.



START_COLUMN
final public static int START_COLUMN(Code)
Initial value of the status.



alignment
protected int alignment(Code)
The column alignment. Default is left alignment.



bidiLine
protected BidiLine bidiLine(Code)
The chunks that form the text.



canvas
protected PdfContentByte canvas(Code)
The PdfContent where the text will be written to.



canvases
protected PdfContentByte[] canvases(Code)



composite
protected boolean composite(Code)



compositeColumn
protected ColumnText compositeColumn(Code)



compositeElements
protected LinkedList compositeElements(Code)



currentLeading
protected float currentLeading(Code)
The leading for the current line.



descender
protected float descender(Code)



extraParagraphSpace
protected float extraParagraphSpace(Code)
The extra space between paragraphs.



fixedLeading
protected float fixedLeading(Code)
The fixed text leading.



followingIndent
protected float followingIndent(Code)
The following paragraph lines indent.



indent
protected float indent(Code)
The first paragraph line indent.



leftWall
protected ArrayList leftWall(Code)
The left column bound.



leftX
protected float leftX(Code)



lineStatus
protected int lineStatus(Code)
The line status when trying to fit a line to a column.



listIdx
protected int listIdx(Code)



maxY
protected float maxY(Code)
Upper bound of the column.



minY
protected float minY(Code)
Lower bound of the column.



multipliedLeading
protected float multipliedLeading(Code)
The text leading that is multiplied by the biggest font size in the line.



rectangularMode
protected boolean rectangularMode(Code)



rectangularWidth
protected float rectangularWidth(Code)
The width of the line when the column is defined as a simple rectangle.



rightIndent
protected float rightIndent(Code)
The right paragraph lines indent.



rightWall
protected ArrayList rightWall(Code)
The right column bound.



rightX
protected float rightX(Code)



runDirection
protected int runDirection(Code)



waitPhrase
protected Phrase waitPhrase(Code)



yLine
protected float yLine(Code)
The current y line location. Text will be written at this line minus the leading.




Constructor Detail
ColumnText
public ColumnText(PdfContentByte canvas)(Code)
Creates a ColumnText.
Parameters:
  canvas - the place where the text will be written to. Canbe a template.




Method Detail
addElement
public void addElement(Element element)(Code)
Adds an element. Elements supported are Paragraph, List, PdfPTable, Image and Graphic.

It removes all the text placed with addText().
Parameters:
  element - the Element




addText
public void addText(Phrase phrase)(Code)
Adds a Phrase to the current text array. Will not have any effect if addElement() was called before.
Parameters:
  phrase - the text



addText
public void addText(Chunk chunk)(Code)
Adds a Chunk to the current text array. Will not have any effect if addElement() was called before.
Parameters:
  chunk - the text



clearChunks
public void clearChunks()(Code)
Clears the chunk array. A call to go() will always return NO_MORE_TEXT.



convertColumn
protected ArrayList convertColumn(float cLine)(Code)
Converts a sequence of lines representing one of the column bounds into an internal format.

Each array element will contain a float[4] representing the line x = ax + b.
Parameters:
  cLine - the column array the converted array




duplicate
public static ColumnText duplicate(ColumnText org)(Code)
Creates an independent duplicated of the instance org.
Parameters:
  org - the original ColumnText the duplicated



findLimitsOneLine
protected float[] findLimitsOneLine()(Code)
Finds the intersection between the yLine and the two column bounds. It will set the lineStatus apropriatly. a float[2]with the x coordinates of the intersection



findLimitsPoint
protected float findLimitsPoint(ArrayList wall)(Code)
Finds the intersection between the yLine and the column. It will set the lineStatus apropriatly.
Parameters:
  wall - the column to intersect the x coordinate of the intersection



findLimitsTwoLines
protected float[] findLimitsTwoLines()(Code)
Finds the intersection between the yLine, the yLine-leadingand the two column bounds. It will set the lineStatus apropriatly. a float[4]with the x coordinates of the intersection



getAlignment
public int getAlignment()(Code)
Gets the alignment. the alignment



getArabicOptions
public int getArabicOptions()(Code)
Gets the arabic shaping options. the arabic shaping options



getCanvas
public PdfContentByte getCanvas()(Code)
Gets the canvas. a PdfContentByte.



getCanvases
public PdfContentByte[] getCanvases()(Code)
Gets the canvases. an array of PdfContentByte



getDescender
public float getDescender()(Code)
Gets the biggest descender value of the last line written. the biggest descender value of the last line written



getExtraParagraphSpace
public float getExtraParagraphSpace()(Code)
Sets the extra space between paragraphs. the extra space between paragraphs



getFilledWidth
public float getFilledWidth()(Code)
Gets the real width used by the largest line. the real width used by the largest line



getFollowingIndent
public float getFollowingIndent()(Code)
Gets the following paragraph lines indent. the indent



getIndent
public float getIndent()(Code)
Gets the first paragraph line indent. the indent



getLeading
public float getLeading()(Code)
Gets the fixed leading the leading



getLinesWritten
public int getLinesWritten()(Code)
Gets the number of lines written. the number of lines written



getMultipliedLeading
public float getMultipliedLeading()(Code)
Gets the variable leading the leading



getRightIndent
public float getRightIndent()(Code)
Gets the right paragraph lines indent. the indent



getRunDirection
public int getRunDirection()(Code)
Gets the run direction. the run direction



getSpaceCharRatio
public float getSpaceCharRatio()(Code)
Gets the space/character extra spacing ratio for fully justified text. the space/character extra spacing ratio



getWidth
public static float getWidth(Phrase phrase, int runDirection, int arabicOptions)(Code)
Gets the width that the line will occupy after writing. Only the width of the first line is returned.
Parameters:
  phrase - the Phrase containing the line
Parameters:
  runDirection - the run direction
Parameters:
  arabicOptions - the options for the arabic shaping the width of the line



getWidth
public static float getWidth(Phrase phrase)(Code)
Gets the width that the line will occupy after writing. Only the width of the first line is returned.
Parameters:
  phrase - the Phrase containing the line the width of the line



getYLine
public float getYLine()(Code)
Gets the yLine. the yLine



go
public int go() throws DocumentException(Code)
Outputs the lines to the document. It is equivalent to go(false). returns the result of the operation. It can be NO_MORE_TEXTand/or NO_MORE_COLUMN
throws:
  DocumentException - on error



go
public int go(boolean simulate) throws DocumentException(Code)
Outputs the lines to the document. The output can be simulated.
Parameters:
  simulate - true to simulate the writting to the document returns the result of the operation. It can be NO_MORE_TEXTand/or NO_MORE_COLUMN
throws:
  DocumentException - on error



goComposite
protected int goComposite(boolean simulate) throws DocumentException(Code)



hasMoreText
public static boolean hasMoreText(int status)(Code)
Checks the status variable and looks if there's still some text.



isUseAscender
public boolean isUseAscender()(Code)
Checks if UseAscender is enabled/disabled. true is the adjustment of the first line height is based on max ascender.



setACopy
public ColumnText setACopy(ColumnText org)(Code)
Makes this instance an independent copy of org.
Parameters:
  org - the original ColumnText itself



setAlignment
public void setAlignment(int alignment)(Code)
Sets the alignment.
Parameters:
  alignment - the 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



setCanvas
public void setCanvas(PdfContentByte canvas)(Code)
Sets the canvas.
Parameters:
  canvas -



setCanvases
public void setCanvases(PdfContentByte[] canvases)(Code)
Sets the canvases.
Parameters:
  canvases -



setColumns
public void setColumns(float leftLine, float rightLine)(Code)
Sets the columns bounds. Each column bound is described by a float[] with the line points [x1,y1,x2,y2,...]. The array must have at least 4 elements.
Parameters:
  leftLine - the left column bound
Parameters:
  rightLine - the right column bound



setExtraParagraphSpace
public void setExtraParagraphSpace(float extraParagraphSpace)(Code)
Sets the extra space between paragraphs.
Parameters:
  extraParagraphSpace - the extra space between paragraphs



setFilledWidth
public void setFilledWidth(float filledWidth)(Code)
Sets the real width used by the largest line. Only used to set it to zero to start another measurement.
Parameters:
  filledWidth - the real width used by the largest line



setFollowingIndent
public void setFollowingIndent(float indent)(Code)
Sets the following paragraph lines indent.
Parameters:
  indent - the indent



setIndent
public void setIndent(float indent)(Code)
Sets the first paragraph line indent.
Parameters:
  indent - the indent



setLeading
public void setLeading(float leading)(Code)
Sets the leading to fixed
Parameters:
  leading - the leading



setLeading
public void setLeading(float fixedLeading, float multipliedLeading)(Code)
Sets the leading fixed and variable. The resultant leading will be fixedLeading+multipliedLeading*maxFontSize where maxFontSize is the size of the bigest font in the line.
Parameters:
  fixedLeading - the fixed leading
Parameters:
  multipliedLeading - the variable leading



setRightIndent
public void setRightIndent(float indent)(Code)
Sets the right paragraph lines indent.
Parameters:
  indent - the indent



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



setSimpleColumn
public void setSimpleColumn(Phrase phrase, float llx, float lly, float urx, float ury, float leading, int alignment)(Code)
Simplified method for rectangular columns.
Parameters:
  phrase - a Phrase
Parameters:
  llx - the lower left x corner
Parameters:
  lly - the lower left y corner
Parameters:
  urx - the upper right x corner
Parameters:
  ury - the upper right y corner
Parameters:
  leading - the leading
Parameters:
  alignment - the column alignment



setSimpleColumn
public void setSimpleColumn(float llx, float lly, float urx, float ury, float leading, int alignment)(Code)
Simplified method for rectangular columns.
Parameters:
  llx - the lower left x corner
Parameters:
  lly - the lower left y corner
Parameters:
  urx - the upper right x corner
Parameters:
  ury - the upper right y corner
Parameters:
  leading - the leading
Parameters:
  alignment - the column alignment



setSimpleColumn
public void setSimpleColumn(float llx, float lly, float urx, float ury)(Code)
Simplified method for rectangular columns.
Parameters:
  llx -
Parameters:
  lly -
Parameters:
  urx -
Parameters:
  ury -



setSimpleVars
protected void setSimpleVars(ColumnText org)(Code)



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



setText
public void setText(Phrase phrase)(Code)
Replaces the current text array with this Phrase. Anything added previously with addElement() is lost.
Parameters:
  phrase - the text



setUseAscender
public void setUseAscender(boolean use)(Code)
Enables/Disables adjustment of first line height based on max ascender.
Parameters:
  use - enable adjustment if true



setYLine
public void setYLine(float yLine)(Code)
Sets the yLine. The line will be written to yLine-leading.
Parameters:
  yLine - the yLine



showTextAligned
public static void showTextAligned(PdfContentByte canvas, int alignment, Phrase phrase, float x, float y, float rotation, int runDirection, int arabicOptions)(Code)
Shows a line of text. Only the first line is written.
Parameters:
  canvas - where the text is to be written to
Parameters:
  alignment - the alignment. It is not influenced by the run direction
Parameters:
  phrase - the Phrase with the text
Parameters:
  x - the x reference position
Parameters:
  y - the y reference position
Parameters:
  rotation - the rotation to be applied in degrees counterclockwise
Parameters:
  runDirection - the run direction
Parameters:
  arabicOptions - the options for the arabic shaping



showTextAligned
public static void showTextAligned(PdfContentByte canvas, int alignment, Phrase phrase, float x, float y, float rotation)(Code)
Shows a line of text. Only the first line is written.
Parameters:
  canvas - where the text is to be written to
Parameters:
  alignment - the alignment
Parameters:
  phrase - the Phrase with the text
Parameters:
  x - the x reference position
Parameters:
  y - the y reference position
Parameters:
  rotation - the rotation to be applied in degrees counterclockwise



updateFilledWidth
public void updateFilledWidth(float w)(Code)
Replaces the filledWidth if greater than the existing one.
Parameters:
  w - the new filledWidth if greater than the existing one



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.