Java Doc for RtfText.java in  » Graphic-Library » fop » org » apache » fop » render » rtf » rtflib » rtfdoc » 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 » Graphic Library » fop » org.apache.fop.render.rtf.rtflib.rtfdoc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
      org.apache.fop.render.rtf.rtflib.rtfdoc.RtfText

RtfText
public class RtfText extends RtfElement (Code)
Model of a text run (a piece of text with attributes) in an RTF document
author:
   Bertrand Delacretaz bdelacretaz@codeconsult.ch


Field Summary
final public static  String[]ALIGNMENT
    
final public static  StringALIGN_CENTER
    
final public static  StringALIGN_DISTRIBUTED
    
final public static  StringALIGN_JUSTIFIED
    
final public static  StringALIGN_LEFT
    
final public static  StringALIGN_RIGHT
    
final public static  StringATTR_BACKGROUND_COLOR
    
final public static  StringATTR_BOLD
    
final public static  StringATTR_FONT_COLOR
    
final public static  StringATTR_FONT_FAMILY
    
final public static  StringATTR_FONT_SIZE
    
final public static  StringATTR_ITALIC
    
final public static  String[]ATTR_NAMES
    
final public static  StringATTR_STRIKETHROUGH
    
final public static  StringATTR_SUBSCRIPT
    
final public static  StringATTR_SUPERSCRIPT
    
final public static  StringATTR_UNDERLINE
    
final public static  StringBDR_BOTTOM_DASH
    
final public static  StringBDR_BOTTOM_DOTTED
    
final public static  StringBDR_BOTTOM_DOUBLE
    
final public static  StringBDR_BOTTOM_EMBOSS
    
final public static  StringBDR_BOTTOM_SINGLE
    
final public static  String[]BORDER
    
final public static  intFULL_SHADING
    
final public static  String[]INDENT
    
final public static  StringLEFT_INDENT_BODY
    
final public static  StringLEFT_INDENT_FIRST
    
final public static  StringRIGHT_INDENT_BODY
    
final public static  StringRTF_FIELD
    
final public static  StringRTF_FIELD_PAGE
    
final public static  StringRTF_FIELD_RESULT
    
final public static  StringSHADING
    
final public static  StringSHADING_FRONT_COLOR
    
final public static  StringSPACE_AFTER
    
final public static  StringSPACE_BEFORE
    
final public static  String[]TABS
    
final public static  StringTAB_CENTER
    
final public static  StringTAB_LEADER_DOTS
    
final public static  StringTAB_LEADER_EQUALS
    
final public static  StringTAB_LEADER_HYPHEN
    
final public static  StringTAB_LEADER_THICK
    
final public static  StringTAB_LEADER_UNDER
    
final public static  StringTAB_RIGHT
    

Constructor Summary
 RtfText(IRtfTextContainer parent, Writer w, String str, RtfAttributes attr)
     Create an RtfText in given IRtfTextContainer.

Method Summary
 StringgetText()
    
public  RtfAttributesgetTextAttributes()
    
public  RtfAttributesgetTextContainerAttributes()
    
public  booleanisBold(boolean isStart)
    
public  booleanisEmpty()
     Checks whether the text is empty.
public  booleanisNbsp()
     True if text contains a single non-breaking space (#160).
public  booleanisNewLine()
    
public  booleanisTab()
    
 voidsetText(String str)
    
public  voidwriteRtfContent()
    

Field Detail
ALIGNMENT
final public static String[] ALIGNMENT(Code)
RtfText attributes: this must contain all allignment attributes names



ALIGN_CENTER
final public static String ALIGN_CENTER(Code)
constant for align center



ALIGN_DISTRIBUTED
final public static String ALIGN_DISTRIBUTED(Code)
constant for align distributed



ALIGN_JUSTIFIED
final public static String ALIGN_JUSTIFIED(Code)
constant for align justified



ALIGN_LEFT
final public static String ALIGN_LEFT(Code)
constant for align left



ALIGN_RIGHT
final public static String ALIGN_RIGHT(Code)
constant for align right



ATTR_BACKGROUND_COLOR
final public static String ATTR_BACKGROUND_COLOR(Code)
constant for background color



ATTR_BOLD
final public static String ATTR_BOLD(Code)
constant for bold



ATTR_FONT_COLOR
final public static String ATTR_FONT_COLOR(Code)
constant for font color



ATTR_FONT_FAMILY
final public static String ATTR_FONT_FAMILY(Code)
constant for font family



ATTR_FONT_SIZE
final public static String ATTR_FONT_SIZE(Code)
constant for font size



ATTR_ITALIC
final public static String ATTR_ITALIC(Code)
constant for italic



ATTR_NAMES
final public static String[] ATTR_NAMES(Code)
RtfText attributes: this must contain all attribute names



ATTR_STRIKETHROUGH
final public static String ATTR_STRIKETHROUGH(Code)
constant for underline



ATTR_SUBSCRIPT
final public static String ATTR_SUBSCRIPT(Code)
constant for subscript



ATTR_SUPERSCRIPT
final public static String ATTR_SUPERSCRIPT(Code)
constant for superscript



ATTR_UNDERLINE
final public static String ATTR_UNDERLINE(Code)
constant for underline



BDR_BOTTOM_DASH
final public static String BDR_BOTTOM_DASH(Code)
constant for bottom dashed border



BDR_BOTTOM_DOTTED
final public static String BDR_BOTTOM_DOTTED(Code)
constant for bottom dotted border



BDR_BOTTOM_DOUBLE
final public static String BDR_BOTTOM_DOUBLE(Code)
constant for bottom double border



BDR_BOTTOM_EMBOSS
final public static String BDR_BOTTOM_EMBOSS(Code)
constant for bottom embossed border



BDR_BOTTOM_SINGLE
final public static String BDR_BOTTOM_SINGLE(Code)
constant for bottom single border



BORDER
final public static String[] BORDER(Code)
RtfText attributes:: this must contain all border attribute names



FULL_SHADING
final public static int FULL_SHADING(Code)
Constant for the 100% shading of the paragraph



INDENT
final public static String[] INDENT(Code)
String array of indent constants



LEFT_INDENT_BODY
final public static String LEFT_INDENT_BODY(Code)
constant for left indent body



LEFT_INDENT_FIRST
final public static String LEFT_INDENT_FIRST(Code)
constant for left indent first



RIGHT_INDENT_BODY
final public static String RIGHT_INDENT_BODY(Code)
constant for right indent body



RTF_FIELD
final public static String RTF_FIELD(Code)
constant for field



RTF_FIELD_PAGE
final public static String RTF_FIELD_PAGE(Code)
constant for field page



RTF_FIELD_RESULT
final public static String RTF_FIELD_RESULT(Code)
constant for field result



SHADING
final public static String SHADING(Code)
Constant for the shading of the paragraph



SHADING_FRONT_COLOR
final public static String SHADING_FRONT_COLOR(Code)
Constant for the document's color tableshading of the paragraph



SPACE_AFTER
final public static String SPACE_AFTER(Code)
Space after a paragraph



SPACE_BEFORE
final public static String SPACE_BEFORE(Code)
Space before/after a paragraph



TABS
final public static String[] TABS(Code)
String array of tab constants



TAB_CENTER
final public static String TAB_CENTER(Code)
constant for center tab



TAB_LEADER_DOTS
final public static String TAB_LEADER_DOTS(Code)
constant for tab leader dots



TAB_LEADER_EQUALS
final public static String TAB_LEADER_EQUALS(Code)
constant for tab leader equals



TAB_LEADER_HYPHEN
final public static String TAB_LEADER_HYPHEN(Code)
constant for tab leader hyphens



TAB_LEADER_THICK
final public static String TAB_LEADER_THICK(Code)
constant for tab leader thick



TAB_LEADER_UNDER
final public static String TAB_LEADER_UNDER(Code)
constant for tab leader underscores



TAB_RIGHT
final public static String TAB_RIGHT(Code)
constant for right tab




Constructor Detail
RtfText
RtfText(IRtfTextContainer parent, Writer w, String str, RtfAttributes attr) throws IOException(Code)
Create an RtfText in given IRtfTextContainer.
Parameters:
  str - optional initial text content




Method Detail
getText
String getText()(Code)
direct access to our text



getTextAttributes
public RtfAttributes getTextAttributes()(Code)
the attributes of our text



getTextContainerAttributes
public RtfAttributes getTextContainerAttributes()(Code)
IRtfTextContainer requirement: a copy of our attributes



isBold
public boolean isBold(boolean isStart)(Code)

Parameters:
  isStart - set to true if processing the start of the text (??) true if text is bold



isEmpty
public boolean isEmpty()(Code)
Checks whether the text is empty. true If m_text is null\nfalse m_text is set



isNbsp
public boolean isNbsp()(Code)
True if text contains a single non-breaking space (#160). TODO make this more general and/or merge with isEmpty? -- what happen with empty paragraphs, if they will be removed, than NO, else ok true If m_text is character 160\nfalse m_text is not a nbsp



isNewLine
public boolean isNewLine()(Code)
true if text is a newline character



isTab
public boolean isTab()(Code)
true if the text is a tab character



setText
void setText(String str)(Code)
direct access to our text



writeRtfContent
public void writeRtfContent() throws IOException(Code)
Write our text to the RTF stream
throws:
  IOException - for I/O problems



Fields inherited from org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
final protected RtfAttributes attrib(Code)(Java Doc)
final protected RtfContainer parent(Code)(Java Doc)
final protected Writer writer(Code)(Java Doc)

Methods inherited from org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
final public void close() throws IOException(Code)(Java Doc)
void dump(Writer w, int indent) throws IOException(Code)(Java Doc)
RtfElement getParentOfClass(Class c)(Code)(Java Doc)
public RtfAttributes getRtfAttributes()(Code)(Java Doc)
RtfFile getRtfFile()(Code)(Java Doc)
boolean isClosed()(Code)(Java Doc)
abstract public boolean isEmpty()(Code)(Java Doc)
public void newLine() throws IOException(Code)(Java Doc)
protected boolean okToWriteRtf()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
protected void writeAttributes(RtfAttributes attr, String[] nameList) throws IOException(Code)(Java Doc)
final protected void writeControlWord(String word) throws IOException(Code)(Java Doc)
final protected void writeControlWordNS(String word) throws IOException(Code)(Java Doc)
protected void writeExceptionInRtf(Exception ie) throws IOException(Code)(Java Doc)
final protected void writeGroupMark(boolean isStart) throws IOException(Code)(Java Doc)
protected void writeOneAttribute(String name, Object value) throws IOException(Code)(Java Doc)
protected void writeOneAttributeNS(String name, Object value) throws IOException(Code)(Java Doc)
final public void writeRtf() throws IOException(Code)(Java Doc)
abstract protected void writeRtfContent() throws IOException(Code)(Java Doc)
protected void writeRtfPrefix() throws IOException(Code)(Java Doc)
protected void writeRtfSuffix() throws IOException(Code)(Java Doc)
final protected void writeStarControlWord(String word) throws IOException(Code)(Java Doc)
final protected void writeStarControlWordNS(String word) throws IOException(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)

ww___w.__j_av___a2s__.___c___o__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.