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

PdfLine
public class PdfLine (Code)
PdfLine defines an array with PdfChunk-objects that fit into 1 line.


Field Summary
protected  intalignment
     The alignment of the line.
protected  floatheight
     The heigth of the line.
protected  booleanisRTL
    
protected  floatleft
     The left indentation of the line.
protected  ArrayListline
     The arraylist containing the chunks.
protected  ChunklistSymbol
     The listsymbol (if necessary).
protected  booleannewlineSplit
     true if the chunk splitting was caused by a newline.
protected  floatoriginalWidth
     The original width.
protected  floatsymbolIndent
     The listsymbol (if necessary).
protected  floatwidth
     The width of the line.

Constructor Summary
 PdfLine(float left, float right, int alignment, float height)
     Constructs a new PdfLine-object.
 PdfLine(float left, float remainingWidth, int alignment, boolean newlineSplit, ArrayList line, boolean isRTL)
    

Method Summary
 PdfChunkadd(PdfChunk chunk)
     Adds a PdfChunk to the PdfLine.
public  floatgetAscender()
     Gets the maximum size of the ascender for all the fonts used in this line.
public  PdfChunkgetChunk(int idx)
     Gets a PdfChunk by index.
public  floatgetDescender()
     Gets the biggest descender for all the fonts used in this line.
public  intgetLastStrokeChunk()
    
 floatgetMaxSizeSimple()
     Gets the maximum size of all the fonts used in this line including images.
public  floatgetOriginalWidth()
     Gets the original width of the line.
public  floatgetWidthCorrected(float charSpacing, float wordSpacing)
     Gets a width corrected with a charSpacing and wordSpacing.
public  booleanhasToBeJustified()
     Checks if this line has to be justified.
 floatheight()
     Returns the height of the line.
 floatindentLeft()
     Returns the left indentation of the line taking the alignment of the line into account.
public  booleanisNewlineSplit()
     Checks if a newline caused the line split.
 booleanisRTL()
    
public  Iteratoriterator()
     Returns an iterator of PdfChunks.
public  floatlistIndent()
     Return the indentation needed to show the listsymbol.
public  ChunklistSymbol()
     Returns the listsymbol of this line.
 intnumberOfSpaces()
     Returns the number of space-characters in this line.
public  voidresetAlignment()
     Resets the alignment of this line.
 voidsetExtraIndent(float extra)
     Adds extra indentation to the left (for Paragraph.setFirstLineIndent).
public  voidsetListItem(ListItem listItem)
     Sets the listsymbol of this line.
public  intsize()
     Returns the number of chunks in the line.
public  StringtoString()
     Get the string representation of what is in this line.
 floatwidthLeft()
     Returns the width that is left, after a maximum of characters is added to the line.

Field Detail
alignment
protected int alignment(Code)
The alignment of the line.



height
protected float height(Code)
The heigth of the line.



isRTL
protected boolean isRTL(Code)



left
protected float left(Code)
The left indentation of the line.



line
protected ArrayList line(Code)
The arraylist containing the chunks.



listSymbol
protected Chunk listSymbol(Code)
The listsymbol (if necessary).



newlineSplit
protected boolean newlineSplit(Code)
true if the chunk splitting was caused by a newline.



originalWidth
protected float originalWidth(Code)
The original width.



symbolIndent
protected float symbolIndent(Code)
The listsymbol (if necessary).



width
protected float width(Code)
The width of the line.




Constructor Detail
PdfLine
PdfLine(float left, float right, int alignment, float height)(Code)
Constructs a new PdfLine-object.
Parameters:
  left - the limit of the line at the left
Parameters:
  right - the limit of the line at the right
Parameters:
  alignment - the alignment of the line
Parameters:
  height - the height of the line



PdfLine
PdfLine(float left, float remainingWidth, int alignment, boolean newlineSplit, ArrayList line, boolean isRTL)(Code)




Method Detail
add
PdfChunk add(PdfChunk chunk)(Code)
Adds a PdfChunk to the PdfLine.
Parameters:
  chunk - the PdfChunk to add null if the chunk could be added completely; if nota PdfChunk containing the part of the chunk that couldnot be added is returned



getAscender
public float getAscender()(Code)
Gets the maximum size of the ascender for all the fonts used in this line. maximum size of all the ascenders used in this line



getChunk
public PdfChunk getChunk(int idx)(Code)
Gets a PdfChunk by index.
Parameters:
  idx - the index the PdfChunk or null if beyond the array



getDescender
public float getDescender()(Code)
Gets the biggest descender for all the fonts used in this line. Note that this is a negative number. maximum size of all the ascenders used in this line



getLastStrokeChunk
public int getLastStrokeChunk()(Code)
Gets the index of the last PdfChunk with metric attributes the last PdfChunk with metric attributes



getMaxSizeSimple
float getMaxSizeSimple()(Code)
Gets the maximum size of all the fonts used in this line including images. maximum size of all the fonts used in this line



getOriginalWidth
public float getOriginalWidth()(Code)
Gets the original width of the line. the original width of the line



getWidthCorrected
public float getWidthCorrected(float charSpacing, float wordSpacing)(Code)
Gets a width corrected with a charSpacing and wordSpacing.
Parameters:
  charSpacing -
Parameters:
  wordSpacing - a corrected width



hasToBeJustified
public boolean hasToBeJustified()(Code)
Checks if this line has to be justified. true if the alignment equals ALIGN_JUSTIFIED and there is some width left.



height
float height()(Code)
Returns the height of the line. a value



indentLeft
float indentLeft()(Code)
Returns the left indentation of the line taking the alignment of the line into account. a value



isNewlineSplit
public boolean isNewlineSplit()(Code)
Checks if a newline caused the line split. true if a newline caused the line split



isRTL
boolean isRTL()(Code)



iterator
public Iterator iterator()(Code)
Returns an iterator of PdfChunks. an Iterator



listIndent
public float listIndent()(Code)
Return the indentation needed to show the listsymbol. a value



listSymbol
public Chunk listSymbol()(Code)
Returns the listsymbol of this line. a PdfChunk if the line has a listsymbol; null otherwise



numberOfSpaces
int numberOfSpaces()(Code)
Returns the number of space-characters in this line. a value



resetAlignment
public void resetAlignment()(Code)
Resets the alignment of this line.

The alignment of the last line of for instance a Paragraph that has to be justified, has to be reset to ALIGN_LEFT.




setExtraIndent
void setExtraIndent(float extra)(Code)
Adds extra indentation to the left (for Paragraph.setFirstLineIndent).



setListItem
public void setListItem(ListItem listItem)(Code)
Sets the listsymbol of this line.

This is only necessary for the first line of a ListItem.
Parameters:
  listItem - the list symbol




size
public int size()(Code)
Returns the number of chunks in the line. a value



toString
public String toString()(Code)
Get the string representation of what is in this line. a String



widthLeft
float widthLeft()(Code)
Returns the width that is left, after a maximum of characters is added to the line. a value



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.