Java Doc for Paragraph.java in  » PDF » pdf-itext » com » lowagie » text » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.lowagie.text.Phrase
   com.lowagie.text.Paragraph

All known Subclasses:   com.lowagie.text.ListItem,
Paragraph
public class Paragraph extends Phrase (Code)
A Paragraph is a series of Chunks and/or Phrases.

A Paragraph has the same qualities of a Phrase, but also some additional layout-parameters:

  • the indentation
  • the alignment of the text
Example:
 Paragraph p = new Paragraph("This is a paragraph",
 FontFactory.getFont(FontFactory.HELVETICA, 18, Font.BOLDITALIC, new Color(0, 0, 255)));
 

See Also:   Element
See Also:   Phrase
See Also:   ListItem


Field Summary
protected  intalignment
     The alignment of the text.
protected  floatindentationLeft
     The indentation of this paragraph on the left side.
protected  floatindentationRight
     The indentation of this paragraph on the right side.
protected  booleankeeptogether
     Does the paragraph has to be kept together on 1 page.
protected  floatmultipliedLeading
     The text leading that is multiplied by the biggest font size in the line.
protected  floatspacingAfter
     The spacing after the paragraph.
protected  floatspacingBefore
     The spacing before the paragraph.

Constructor Summary
public  Paragraph()
     Constructs a Paragraph.
public  Paragraph(float leading)
     Constructs a Paragraph with a certain leading.
public  Paragraph(Chunk chunk)
     Constructs a Paragraph with a certain Chunk.
public  Paragraph(float leading, Chunk chunk)
     Constructs a Paragraph with a certain Chunk and a certain leading.
public  Paragraph(String string)
     Constructs a Paragraph with a certain String.
public  Paragraph(String string, Font font)
     Constructs a Paragraph with a certain String and a certain Font.
public  Paragraph(float leading, String string)
     Constructs a Paragraph with a certain String and a certain leading.
public  Paragraph(float leading, String string, Font font)
     Constructs a Paragraph with a certain leading, String and Font.
public  Paragraph(Phrase phrase)
     Constructs a Paragraph with a certain Phrase.
public  Paragraph(java.util.Properties attributes)
     Returns a Paragraph that has been constructed taking in account the value of some attributes.

Method Summary
public  booleanadd(Object o)
     Adds an Object to the Paragraph.
Parameters:
  o - object the object to add.
public  intalignment()
     Gets the alignment of this paragraph.
public  intgetAlignment()
     Gets the alignment of this paragraph.
public  floatgetExtraParagraphSpace()
     Getter for property extraParagraphSpace.
public  floatgetFirstLineIndent()
     Getter for property firstLineIndent.
public  floatgetIndentationLeft()
     Gets the indentation of this paragraph on the left side.
public  floatgetIndentationRight()
     Gets the indentation of this paragraph on the right side.
public  booleangetKeepTogether()
     Checks if this paragraph has to be kept together on one page.
public  floatgetMultipliedLeading()
    
public  floatgetTotalLeading()
     Gets the total leading. This method is based on the assumption that the font of the Paragraph is the font of all the elements that make part of the paragraph.
public  floatindentationLeft()
     Gets the indentation of this paragraph on the left side.
public  floatindentationRight()
     Gets the indentation of this paragraph on the right side.
public  voidsetAlignment(int alignment)
     Sets the alignment of this paragraph.
public  voidsetAlignment(String alignment)
     Sets the alignment of this paragraph.
public  voidsetExtraParagraphSpace(float extraParagraphSpace)
     Setter for property extraParagraphSpace.
public  voidsetFirstLineIndent(float firstLineIndent)
     Setter for property firstLineIndent.
public  voidsetIndentationLeft(float indentation)
     Sets the indentation of this paragraph on the left side.
public  voidsetIndentationRight(float indentation)
     Sets the indentation of this paragraph on the right side.
public  voidsetKeepTogether(boolean keeptogether)
     Indicates that the paragraph has to be kept together on one page.
public  voidsetLeading(float fixedLeading)
    
public  voidsetLeading(float fixedLeading, float multipliedLeading)
     Sets the leading fixed and variable.
public  voidsetMultipliedLeading(float multipliedLeading)
     Sets the variable leading.
public  voidsetSpacingAfter(float spacing)
     Sets the spacing after this paragraph.
public  voidsetSpacingBefore(float spacing)
     Sets the spacing before this paragraph.
public  floatspacingAfter()
     Gets the spacing after this paragraph.
public  floatspacingBefore()
     Gets the spacing before this paragraph.
public  inttype()
     Gets the type of the text element.

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



indentationLeft
protected float indentationLeft(Code)
The indentation of this paragraph on the left side.



indentationRight
protected float indentationRight(Code)
The indentation of this paragraph on the right side.



keeptogether
protected boolean keeptogether(Code)
Does the paragraph has to be kept together on 1 page.



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



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



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




Constructor Detail
Paragraph
public Paragraph()(Code)
Constructs a Paragraph.



Paragraph
public Paragraph(float leading)(Code)
Constructs a Paragraph with a certain leading.
Parameters:
  leading - the leading



Paragraph
public Paragraph(Chunk chunk)(Code)
Constructs a Paragraph with a certain Chunk.
Parameters:
  chunk - a Chunk



Paragraph
public Paragraph(float leading, Chunk chunk)(Code)
Constructs a Paragraph with a certain Chunk and a certain leading.
Parameters:
  leading - the leading
Parameters:
  chunk - a Chunk



Paragraph
public Paragraph(String string)(Code)
Constructs a Paragraph with a certain String.
Parameters:
  string - a String



Paragraph
public Paragraph(String string, Font font)(Code)
Constructs a Paragraph with a certain String and a certain Font.
Parameters:
  string - a String
Parameters:
  font - a Font



Paragraph
public Paragraph(float leading, String string)(Code)
Constructs a Paragraph with a certain String and a certain leading.
Parameters:
  leading - the leading
Parameters:
  string - a String



Paragraph
public Paragraph(float leading, String string, Font font)(Code)
Constructs a Paragraph with a certain leading, String and Font.
Parameters:
  leading - the leading
Parameters:
  string - a String
Parameters:
  font - a Font



Paragraph
public Paragraph(Phrase phrase)(Code)
Constructs a Paragraph with a certain Phrase.
Parameters:
  phrase - a Phrase



Paragraph
public Paragraph(java.util.Properties attributes)(Code)
Returns a Paragraph that has been constructed taking in account the value of some attributes.
Parameters:
  attributes - Some attributes




Method Detail
add
public boolean add(Object o)(Code)
Adds an Object to the Paragraph.
Parameters:
  o - object the object to add. true is adding the object succeeded



alignment
public int alignment()(Code)
Gets the alignment of this paragraph. alignmentParagraph.getAlignment()



getAlignment
public int getAlignment()(Code)
Gets the alignment of this paragraph. alignment



getExtraParagraphSpace
public float getExtraParagraphSpace()(Code)
Getter for property extraParagraphSpace. Value of property extraParagraphSpace.



getFirstLineIndent
public float getFirstLineIndent()(Code)
Getter for property firstLineIndent. Value of property firstLineIndent.



getIndentationLeft
public float getIndentationLeft()(Code)
Gets the indentation of this paragraph on the left side. the indentation



getIndentationRight
public float getIndentationRight()(Code)
Gets the indentation of this paragraph on the right side. the indentation



getKeepTogether
public boolean getKeepTogether()(Code)
Checks if this paragraph has to be kept together on one page. true if the paragraph may not be split over 2 pages.



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



getTotalLeading
public float getTotalLeading()(Code)
Gets the total leading. This method is based on the assumption that the font of the Paragraph is the font of all the elements that make part of the paragraph. This isn't necessarily true. the total leading (fixed and multiplied)



indentationLeft
public float indentationLeft()(Code)
Gets the indentation of this paragraph on the left side. the indentationParagraph.getIndentationLeft()



indentationRight
public float indentationRight()(Code)
Gets the indentation of this paragraph on the right side. the indentationParagraph.getIndentationRight()



setAlignment
public void setAlignment(int alignment)(Code)
Sets the alignment of this paragraph.
Parameters:
  alignment - the new alignment



setAlignment
public void setAlignment(String alignment)(Code)
Sets the alignment of this paragraph.
Parameters:
  alignment - the new alignment as a String



setExtraParagraphSpace
public void setExtraParagraphSpace(float extraParagraphSpace)(Code)
Setter for property extraParagraphSpace.
Parameters:
  extraParagraphSpace - New value of property extraParagraphSpace.



setFirstLineIndent
public void setFirstLineIndent(float firstLineIndent)(Code)
Setter for property firstLineIndent.
Parameters:
  firstLineIndent - New value of property firstLineIndent.



setIndentationLeft
public void setIndentationLeft(float indentation)(Code)
Sets the indentation of this paragraph on the left side.
Parameters:
  indentation - the new indentation



setIndentationRight
public void setIndentationRight(float indentation)(Code)
Sets the indentation of this paragraph on the right side.
Parameters:
  indentation - the new indentation



setKeepTogether
public void setKeepTogether(boolean keeptogether)(Code)
Indicates that the paragraph has to be kept together on one page.
Parameters:
  keeptogether - true of the paragraph may not be split over 2 pages



setLeading
public void setLeading(float fixedLeading)(Code)

See Also:   com.lowagie.text.Phrase.setLeading(float)



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



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



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



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



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



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



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



Fields inherited from com.lowagie.text.Phrase
protected Font font(Code)(Java Doc)
protected float leading(Code)(Java Doc)

Methods inherited from com.lowagie.text.Phrase
public void add(int index, Object o)(Code)(Java Doc)
public boolean add(Object o)(Code)(Java Doc)
public boolean addAll(Collection collection)(Code)(Java Doc)
protected boolean addChunk(Chunk chunk)(Code)(Java Doc)
protected void addSpecial(Object object)(Code)(Java Doc)
public String content()(Code)(Java Doc)
public Font font()(Code)(Java Doc)
public ArrayList getChunks()(Code)(Java Doc)
public String getContent()(Code)(Java Doc)
public Font getFont()(Code)(Java Doc)
final public static Phrase getInstance(String string)(Code)(Java Doc)
final public static Phrase getInstance(int leading, String string)(Code)(Java Doc)
final public static Phrase getInstance(int leading, String string, Font font)(Code)(Java Doc)
public float getLeading()(Code)(Java Doc)
public boolean hasLeading()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public float leading()(Code)(Java Doc)
public boolean leadingDefined()(Code)(Java Doc)
public boolean process(ElementListener listener)(Code)(Java Doc)
public void setFont(Font font)(Code)(Java Doc)
public void setLeading(float leading)(Code)(Java Doc)
public int type()(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.