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

VerticalText
public class VerticalText (Code)
Writes text vertically. Note that the naming is done according to horizontal text although it referrs to vertical text. A line with the alignment Element.LEFT_ALIGN will actually be top aligned.


Field Summary
final public static  intNO_MORE_COLUMN
     Signals that there is no more column.
final public static  intNO_MORE_TEXT
     Signals that there are no more text available.
protected  intalignment
     The column alignment.
protected  ArrayListchunks
     The chunks that form the text.
protected  intcurrentChunkMarker
     Marks the chunks to be eliminated when the line is written.
protected  PdfChunkcurrentStandbyChunk
     The chunk created by the splitting.
protected  floatheight
     The height of the text.
protected  floatleading
    
protected  intmaxLines
     The maximum number of vertical lines.
protected  StringsplittedChunkText
     The chunk created by the splitting.
protected  floatstartX
     The X coordinate.
protected  floatstartY
     The Y coordinate.
protected  PdfContentBytetext
     The PdfContent where the text will be written to.

Constructor Summary
public  VerticalText(PdfContentByte text)
     Creates new VerticalText
Parameters:
  text - the place where the text will be written to.

Method Summary
public  voidaddText(Phrase phrase)
     Adds a Phrase to the current text array.
public  voidaddText(Chunk chunk)
     Adds a Chunk to the current text array.
protected  PdfLinecreateLine(float width)
     Creates a line from the chunk array.
public  intgetAlignment()
     Gets the alignment.
public  floatgetHeight()
    
public  floatgetLeading()
     Gets the separation between the vertical lines.
public  intgetMaxLines()
     Gets the maximum number of available lines.
public  floatgetOriginX()
     Gets the X coordinate where the next line will be writen.
public  floatgetOriginY()
     Gets the Y coordinate where the next line will be writen.
public  intgo()
     Outputs the lines to the document.
public  intgo(boolean simulate)
     Outputs the lines to the document.
public  voidsetAlignment(int alignment)
     Sets the alignment.
public  voidsetHeight(float height)
    
public  voidsetLeading(float leading)
     Sets the separation between the vertical lines.
public  voidsetMaxLines(int maxLines)
     Sets the maximum number of lines.
public  voidsetOrigin(float startX, float startY)
     Sets the new text origin.
public  voidsetVerticalLayout(float startX, float startY, float height, int maxLines, float leading)
     Sets the layout.
protected  voidshortenChunkArray()
     Normalizes the list of chunks when the line is accepted.
 voidwriteLine(PdfLine line, PdfContentByte text, PdfContentByte graphics)
    

Field Detail
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 are no more text available.



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



chunks
protected ArrayList chunks(Code)
The chunks that form the text.



currentChunkMarker
protected int currentChunkMarker(Code)
Marks the chunks to be eliminated when the line is written.



currentStandbyChunk
protected PdfChunk currentStandbyChunk(Code)
The chunk created by the splitting.



height
protected float height(Code)
The height of the text.



leading
protected float leading(Code)
The leading



maxLines
protected int maxLines(Code)
The maximum number of vertical lines.



splittedChunkText
protected String splittedChunkText(Code)
The chunk created by the splitting.



startX
protected float startX(Code)
The X coordinate.



startY
protected float startY(Code)
The Y coordinate.



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




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




Method Detail
addText
public void addText(Phrase phrase)(Code)
Adds a Phrase to the current text array.
Parameters:
  phrase - the text



addText
public void addText(Chunk chunk)(Code)
Adds a Chunk to the current text array.
Parameters:
  chunk - the text



createLine
protected PdfLine createLine(float width)(Code)
Creates a line from the chunk array.
Parameters:
  width - the width of the line the line or null if no more chunks



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



getHeight
public float getHeight()(Code)
Gets the height of the line the height



getLeading
public float getLeading()(Code)
Gets the separation between the vertical lines. the vertical line separation



getMaxLines
public int getMaxLines()(Code)
Gets the maximum number of available lines. This value will change after each call to go(). Value of property maxLines.



getOriginX
public float getOriginX()(Code)
Gets the X coordinate where the next line will be writen. This value will change after each call to go(). the X coordinate



getOriginY
public float getOriginY()(Code)
Gets the Y coordinate where the next line will be writen. the Y coordinate



go
public int go()(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



go
public int go(boolean simulate)(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



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



setHeight
public void setHeight(float height)(Code)
Sets the height of the line
Parameters:
  height - the new height



setLeading
public void setLeading(float leading)(Code)
Sets the separation between the vertical lines.
Parameters:
  leading - the vertical line separation



setMaxLines
public void setMaxLines(int maxLines)(Code)
Sets the maximum number of lines.
Parameters:
  maxLines - the maximum number of lines



setOrigin
public void setOrigin(float startX, float startY)(Code)
Sets the new text origin.
Parameters:
  startX - the X coordinate
Parameters:
  startY - the Y coordinate



setVerticalLayout
public void setVerticalLayout(float startX, float startY, float height, int maxLines, float leading)(Code)
Sets the layout.
Parameters:
  startX - the top right X line position
Parameters:
  startY - the top right Y line position
Parameters:
  height - the height of the lines
Parameters:
  maxLines - the maximum number of lines
Parameters:
  leading - the separation between the lines



shortenChunkArray
protected void shortenChunkArray()(Code)
Normalizes the list of chunks when the line is accepted.



writeLine
void writeLine(PdfLine line, PdfContentByte text, PdfContentByte graphics)(Code)



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.