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


java.lang.Object
   com.lowagie.text.Font
      com.lowagie.text.rtf.style.RtfFont
         com.lowagie.text.rtf.style.RtfParagraphStyle

RtfParagraphStyle
public class RtfParagraphStyle extends RtfFont (Code)
The RtfParagraphStyle stores all style/formatting attributes of a RtfParagraph. Additionally it also supports the style name system available in RTF. The RtfParagraphStyle is a Font and can thus be used as such. To use the stylesheet functionality it needs to be set as the font of a Paragraph. Otherwise it will work like a RtfFont. It also supports inheritance of styles.
version:
   $Id: RtfParagraphStyle.java 2843 2007-06-19 11:40:33Z psoares33 $
author:
   Mark Hall (mhall@edu.uni-klu.ac.at)
author:
   Thomas Bickel (tmb99@inode.at)


Field Summary
final public static  byte[]ALIGN_CENTER
    
final public static  byte[]ALIGN_JUSTIFY
    
final public static  byte[]ALIGN_LEFT
    
final public static  byte[]ALIGN_RIGHT
    
final public static  byte[]FIRST_LINE_INDENT
    
final public static  byte[]INDENT_LEFT
    
final public static  byte[]INDENT_RIGHT
    
final public static  byte[]KEEP_TOGETHER
    
final public static  byte[]KEEP_TOGETHER_WITH_NEXT
    
final public static  byte[]SPACING_AFTER
     Constant for the space after the paragraph.
final public static  byte[]SPACING_BEFORE
     Constant for the space before the paragraph.
final public static  RtfParagraphStyleSTYLE_HEADING_1
     The style for level 1 headings.
final public static  RtfParagraphStyleSTYLE_HEADING_2
     The style for level 2 headings.
final public static  RtfParagraphStyleSTYLE_HEADING_3
     The style for level 3 headings.
final public static  RtfParagraphStyleSTYLE_NORMAL
     The NORMAL/STANDARD style.

Constructor Summary
public  RtfParagraphStyle(String styleName, String fontName, int fontSize, int fontStyle, Color fontColor)
     Constructs a new RtfParagraphStyle with the given attributes.
public  RtfParagraphStyle(String styleName, String basedOnName)
     Constructs a new RtfParagraphStyle that is based on an existing RtfParagraphStyle.
public  RtfParagraphStyle(RtfDocument doc, RtfParagraphStyle style)
     Constructs a RtfParagraphStyle from another RtfParagraphStyle.

Method Summary
public  booleanequals(Object o)
     Tests whether two RtfParagraphStyles are equal.
public  intgetAlignment()
     Gets the alignment of this RtfParagraphStyle.
public  StringgetBasedOnName()
     Gets the name of the RtfParagraphStyle this RtfParagraphStyle is based on.
public  intgetFirstLineIndent()
     Gets the first line indentation of this RtfParagraphStyle.
public  intgetIndentLeft()
     Gets the left indentation of this RtfParagraphStyle.
public  intgetIndentRight()
     Gets the right indentation of this RtfParagraphStyle.
public  booleangetKeepTogether()
     Gets whether the lines in the paragraph should be kept together in this RtfParagraphStyle.
public  booleangetKeepTogetherWithNext()
     Gets whether the paragraph should be kept toggether with the next in this RtfParagraphStyle.
public  intgetLineLeading()
     Gets the line leading of this RtfParagraphStyle.
public  intgetSpacingAfter()
     Gets the space after the paragraph of this RtfParagraphStyle.
public  intgetSpacingBefore()
     Gets the space before the paragraph of this RtfParagraphStyle..
public  StringgetStyleName()
     Gets the name of this RtfParagraphStyle.
public  voidhandleInheritance()
     Handles the inheritance of paragraph style settings.
public  inthashCode()
     Gets the hash code of this RtfParagraphStyle.
public  voidsetAlignment(int alignment)
     Sets the alignment of this RtfParagraphStyle.
public  voidsetColor(Color color)
     Sets the colour of this RtfParagraphStyle.
public  voidsetFirstLineIndent(int firstLineIndent)
     Sets the first line indententation of this RtfParagraphStyle.
public  voidsetFontName(String fontName)
     Sets the font name of this RtfParagraphStyle.
public  voidsetIndentLeft(int indentLeft)
     Sets the left indentation of this RtfParagraphStyle.
public  voidsetIndentRight(int indentRight)
     Sets the right indentation of this RtfParagraphStyle.
public  voidsetKeepTogether(boolean keepTogether)
     Sets whether the lines in the paragraph should be kept together in this RtfParagraphStyle.
public  voidsetKeepTogetherWithNext(boolean keepTogetherWithNext)
     Sets whether the paragraph should be kept together with the next in this RtfParagraphStyle.
public  voidsetLineLeading(int lineLeading)
     Sets the line leading of this RtfParagraphStyle.
public  voidsetSize(float fontSize)
     Sets the font size of this RtfParagraphStyle.
public  voidsetSpacingAfter(int spacingAfter)
     Sets the space after the paragraph of this RtfParagraphStyle.
public  voidsetSpacingBefore(int spacingBefore)
     Sets the space before the paragraph of this RtfParagraphStyle.
public  voidsetStyle(int fontStyle)
     Sets the font style of this RtfParagraphStyle.
protected  voidsetStyleNumber(int styleNumber)
     Sets the number of this RtfParagraphStyle in the stylesheet list.
public  byte[]write()
    
public  byte[]writeBegin()
     Writes the start information of this RtfParagraphStyle.
public  voidwriteContent(OutputStream out)
    
public  byte[]writeDefinition()
     Writes the definition of this RtfParagraphStyle for the stylesheet list.
public  voidwriteDefinition(OutputStream result)
     Writes the definition of this RtfParagraphStyle for the stylesheet list.
public  byte[]writeEnd()
    

Field Detail
ALIGN_CENTER
final public static byte[] ALIGN_CENTER(Code)
Constant for center alignment



ALIGN_JUSTIFY
final public static byte[] ALIGN_JUSTIFY(Code)
Constant for justified alignment



ALIGN_LEFT
final public static byte[] ALIGN_LEFT(Code)
Constant for left alignment



ALIGN_RIGHT
final public static byte[] ALIGN_RIGHT(Code)
Constant for right alignment



FIRST_LINE_INDENT
final public static byte[] FIRST_LINE_INDENT(Code)
Constant for the first line indentation



INDENT_LEFT
final public static byte[] INDENT_LEFT(Code)
Constant for left indentation



INDENT_RIGHT
final public static byte[] INDENT_RIGHT(Code)
Constant for right indentation



KEEP_TOGETHER
final public static byte[] KEEP_TOGETHER(Code)
Constant for keeping the paragraph together on one page



KEEP_TOGETHER_WITH_NEXT
final public static byte[] KEEP_TOGETHER_WITH_NEXT(Code)
Constant for keeping the paragraph toghether with the next one on one page



SPACING_AFTER
final public static byte[] SPACING_AFTER(Code)
Constant for the space after the paragraph.



SPACING_BEFORE
final public static byte[] SPACING_BEFORE(Code)
Constant for the space before the paragraph.



STYLE_HEADING_1
final public static RtfParagraphStyle STYLE_HEADING_1(Code)
The style for level 1 headings.



STYLE_HEADING_2
final public static RtfParagraphStyle STYLE_HEADING_2(Code)
The style for level 2 headings.



STYLE_HEADING_3
final public static RtfParagraphStyle STYLE_HEADING_3(Code)
The style for level 3 headings.



STYLE_NORMAL
final public static RtfParagraphStyle STYLE_NORMAL(Code)
The NORMAL/STANDARD style.




Constructor Detail
RtfParagraphStyle
public RtfParagraphStyle(String styleName, String fontName, int fontSize, int fontStyle, Color fontColor)(Code)
Constructs a new RtfParagraphStyle with the given attributes.
Parameters:
  styleName - The name of this RtfParagraphStyle.
Parameters:
  fontName - The name of the font to use for this RtfParagraphStyle.
Parameters:
  fontSize - The size of the font to use for this RtfParagraphStyle.
Parameters:
  fontStyle - The style of the font to use for this RtfParagraphStyle.
Parameters:
  fontColor - The colour of the font to use for this RtfParagraphStyle.



RtfParagraphStyle
public RtfParagraphStyle(String styleName, String basedOnName)(Code)
Constructs a new RtfParagraphStyle that is based on an existing RtfParagraphStyle.
Parameters:
  styleName - The name of this RtfParagraphStyle.
Parameters:
  basedOnName - The name of the RtfParagraphStyle this RtfParagraphStyle is based on.



RtfParagraphStyle
public RtfParagraphStyle(RtfDocument doc, RtfParagraphStyle style)(Code)
Constructs a RtfParagraphStyle from another RtfParagraphStyle. INTERNAL USE ONLY
Parameters:
  doc - The RtfDocument this RtfParagraphStyle belongs to.
Parameters:
  style - The RtfParagraphStyle to copy settings from.




Method Detail
equals
public boolean equals(Object o)(Code)
Tests whether two RtfParagraphStyles are equal. Equality is determined via the name.



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



getBasedOnName
public String getBasedOnName()(Code)
Gets the name of the RtfParagraphStyle this RtfParagraphStyle is based on. The name of the base RtfParagraphStyle.



getFirstLineIndent
public int getFirstLineIndent()(Code)
Gets the first line indentation of this RtfParagraphStyle. The first line indentation of this RtfParagraphStyle.



getIndentLeft
public int getIndentLeft()(Code)
Gets the left indentation of this RtfParagraphStyle. The left indentation of this RtfParagraphStyle.



getIndentRight
public int getIndentRight()(Code)
Gets the right indentation of this RtfParagraphStyle. The right indentation of this RtfParagraphStyle.



getKeepTogether
public boolean getKeepTogether()(Code)
Gets whether the lines in the paragraph should be kept together in this RtfParagraphStyle. Whether the lines in the paragraph should be kept together.



getKeepTogetherWithNext
public boolean getKeepTogetherWithNext()(Code)
Gets whether the paragraph should be kept toggether with the next in this RtfParagraphStyle. Whether the paragraph should be kept together with the next.



getLineLeading
public int getLineLeading()(Code)
Gets the line leading of this RtfParagraphStyle. The line leading of this RtfParagraphStyle.



getSpacingAfter
public int getSpacingAfter()(Code)
Gets the space after the paragraph of this RtfParagraphStyle. The space after the paragraph.



getSpacingBefore
public int getSpacingBefore()(Code)
Gets the space before the paragraph of this RtfParagraphStyle.. The space before the paragraph.



getStyleName
public String getStyleName()(Code)
Gets the name of this RtfParagraphStyle. The name of this RtfParagraphStyle.



handleInheritance
public void handleInheritance()(Code)
Handles the inheritance of paragraph style settings. All settings that have not been modified will be inherited from the base RtfParagraphStyle. If this RtfParagraphStyle is not based on another one, then nothing happens.



hashCode
public int hashCode()(Code)
Gets the hash code of this RtfParagraphStyle.



setAlignment
public void setAlignment(int alignment)(Code)
Sets the alignment of this RtfParagraphStyle.
Parameters:
  alignment - The alignment to use.



setColor
public void setColor(Color color)(Code)
Sets the colour of this RtfParagraphStyle.
Parameters:
  color - The Color to use.



setFirstLineIndent
public void setFirstLineIndent(int firstLineIndent)(Code)
Sets the first line indententation of this RtfParagraphStyle. It is relative to the left indentation.
Parameters:
  firstLineIndent - The first line indentation to use.



setFontName
public void setFontName(String fontName)(Code)
Sets the font name of this RtfParagraphStyle.
Parameters:
  fontName - The font name to use



setIndentLeft
public void setIndentLeft(int indentLeft)(Code)
Sets the left indentation of this RtfParagraphStyle.
Parameters:
  indentLeft - The left indentation to use.



setIndentRight
public void setIndentRight(int indentRight)(Code)
Sets the right indentation of this RtfParagraphStyle.
Parameters:
  indentRight - The right indentation to use.



setKeepTogether
public void setKeepTogether(boolean keepTogether)(Code)
Sets whether the lines in the paragraph should be kept together in this RtfParagraphStyle.
Parameters:
  keepTogether - Whether the lines in the paragraph should be kept together.



setKeepTogetherWithNext
public void setKeepTogetherWithNext(boolean keepTogetherWithNext)(Code)
Sets whether the paragraph should be kept together with the next in this RtfParagraphStyle.
Parameters:
  keepTogetherWithNext - Whether the paragraph should be kept together with the next.



setLineLeading
public void setLineLeading(int lineLeading)(Code)
Sets the line leading of this RtfParagraphStyle.
Parameters:
  lineLeading - The line leading to use.



setSize
public void setSize(float fontSize)(Code)
Sets the font size of this RtfParagraphStyle.
Parameters:
  fontSize - The font size to use.



setSpacingAfter
public void setSpacingAfter(int spacingAfter)(Code)
Sets the space after the paragraph of this RtfParagraphStyle.
Parameters:
  spacingAfter - The space after to use.



setSpacingBefore
public void setSpacingBefore(int spacingBefore)(Code)
Sets the space before the paragraph of this RtfParagraphStyle.
Parameters:
  spacingBefore - The space before to use.



setStyle
public void setStyle(int fontStyle)(Code)
Sets the font style of this RtfParagraphStyle.
Parameters:
  fontStyle - The font style to use.



setStyleNumber
protected void setStyleNumber(int styleNumber)(Code)
Sets the number of this RtfParagraphStyle in the stylesheet list.
Parameters:
  styleNumber - The number to use.



write
public byte[] write()(Code)
unused RtfParagraphStyle.writeContent(OutputStream)



writeBegin
public byte[] writeBegin()(Code)
Writes the start information of this RtfParagraphStyle.



writeContent
public void writeContent(OutputStream out) throws IOException(Code)
unused



writeDefinition
public byte[] writeDefinition()(Code)
Writes the definition of this RtfParagraphStyle for the stylesheet list. RtfParagraphStyle.writeDefinition(OutputStream)



writeDefinition
public void writeDefinition(OutputStream result) throws IOException(Code)
Writes the definition of this RtfParagraphStyle for the stylesheet list.



writeEnd
public byte[] writeEnd()(Code)
Unused An empty byte array.



Fields inherited from com.lowagie.text.rtf.style.RtfFont
final public static byte[] FONT_SIZE(Code)(Java Doc)
final public static int STYLE_BOLD(Code)(Java Doc)
final public static int STYLE_DOUBLE_STRIKETHROUGH(Code)(Java Doc)
final public static int STYLE_EMBOSSED(Code)(Java Doc)
final public static int STYLE_ENGRAVED(Code)(Java Doc)
final public static int STYLE_HIDDEN(Code)(Java Doc)
final public static int STYLE_ITALIC(Code)(Java Doc)
final public static int STYLE_NONE(Code)(Java Doc)
final public static int STYLE_OUTLINE(Code)(Java Doc)
final public static int STYLE_SHADOW(Code)(Java Doc)
final public static int STYLE_STRIKETHROUGH(Code)(Java Doc)
final public static int STYLE_UNDERLINE(Code)(Java Doc)
protected RtfDocument document(Code)(Java Doc)

Methods inherited from com.lowagie.text.rtf.style.RtfFont
public Font difference(Font font)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public int getCharset()(Code)(Java Doc)
public String getFamilyname()(Code)(Java Doc)
public String getFontName()(Code)(Java Doc)
public int getFontNumber()(Code)(Java Doc)
public int getFontSize()(Code)(Java Doc)
public int getFontStyle()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
protected byte[] intToByteArray(int i)(Code)(Java Doc)
public void setCharset(int charset)(Code)(Java Doc)
public void setColor(Color color)(Code)(Java Doc)
public void setColor(int red, int green, int blue)(Code)(Java Doc)
public void setFamily(String family)(Code)(Java Doc)
protected void setFontName(String fontName)(Code)(Java Doc)
public void setInHeader(boolean inHeader)(Code)(Java Doc)
public void setInTable(boolean inTable)(Code)(Java Doc)
public void setRtfDocument(RtfDocument doc)(Code)(Java Doc)
public void setSize(float size)(Code)(Java Doc)
public void setStyle(int style)(Code)(Java Doc)
public void setStyle(String style)(Code)(Java Doc)
public byte[] write()(Code)(Java Doc)
public byte[] writeBegin()(Code)(Java Doc)
public void writeContent(OutputStream out) throws IOException(Code)(Java Doc)
public byte[] writeDefinition()(Code)(Java Doc)
public void writeDefinition(OutputStream result) throws IOException(Code)(Java Doc)
public byte[] writeEnd()(Code)(Java Doc)

Fields inherited from com.lowagie.text.Font
final public static int BOLD(Code)(Java Doc)
final public static int BOLDITALIC(Code)(Java Doc)
final public static int COURIER(Code)(Java Doc)
final public static int DEFAULTSIZE(Code)(Java Doc)
final public static int HELVETICA(Code)(Java Doc)
final public static int ITALIC(Code)(Java Doc)
final public static int NORMAL(Code)(Java Doc)
final public static int STRIKETHRU(Code)(Java Doc)
final public static int SYMBOL(Code)(Java Doc)
final public static int TIMES_ROMAN(Code)(Java Doc)
final public static int UNDEFINED(Code)(Java Doc)
final public static int UNDERLINE(Code)(Java Doc)
final public static int ZAPFDINGBATS(Code)(Java Doc)

Methods inherited from com.lowagie.text.Font
public Color color()(Code)(Java Doc)
public int compareTo(Object object)(Code)(Java Doc)
public Font difference(Font font)(Code)(Java Doc)
public int family()(Code)(Java Doc)
public BaseFont getBaseFont()(Code)(Java Doc)
public BaseFont getCalculatedBaseFont(boolean specialEncoding)(Code)(Java Doc)
public float getCalculatedLeading(float linespacing)(Code)(Java Doc)
public float getCalculatedSize()(Code)(Java Doc)
public int getCalculatedStyle()(Code)(Java Doc)
public Color getColor()(Code)(Java Doc)
public int getFamily()(Code)(Java Doc)
public static int getFamilyIndex(String family)(Code)(Java Doc)
public String getFamilyname()(Code)(Java Doc)
public float getSize()(Code)(Java Doc)
public int getStyle()(Code)(Java Doc)
public static int getStyleValue(String style)(Code)(Java Doc)
public boolean isBold()(Code)(Java Doc)
public boolean isItalic()(Code)(Java Doc)
public boolean isStandardFont()(Code)(Java Doc)
public boolean isStrikethru()(Code)(Java Doc)
public boolean isUnderlined()(Code)(Java Doc)
public float leading(float linespacing)(Code)(Java Doc)
public void setColor(Color color)(Code)(Java Doc)
public void setColor(int red, int green, int blue)(Code)(Java Doc)
public void setFamily(String family)(Code)(Java Doc)
public void setSize(float size)(Code)(Java Doc)
public void setStyle(int style)(Code)(Java Doc)
public void setStyle(String style)(Code)(Java Doc)
public float size()(Code)(Java Doc)
public int style()(Code)(Java Doc)

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.