Java Doc for RichTextRun.java in  » Collaboration » poi-3.0.2-beta2 » org » apache » poi » hslf » usermodel » 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 » Collaboration » poi 3.0.2 beta2 » org.apache.poi.hslf.usermodel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.poi.hslf.usermodel.RichTextRun

RichTextRun
public class RichTextRun (Code)
Represents a run of text, all with the same style TODO: get access to the font/character properties
author:
   Nick Burch



Constructor Summary
public  RichTextRun(TextRun parent, int startAt, int len)
    
public  RichTextRun(TextRun parent, int startAt, int len, TextPropCollection pStyle, TextPropCollection cStyle, boolean pShared, boolean cShared)
    

Method Summary
public  TextPropCollection_getRawCharacterStyle()
     Internal Use Only - get the underlying character style collection.
public  TextPropCollection_getRawParagraphStyle()
     Internal Use Only - get the underlying paragraph style collection.
public  boolean_isCharacterStyleShared()
    
public  boolean_isParagraphStyleShared()
    
public  intgetAlignment()
     Returns the type of horizontal alignment for the text.
public  chargetBulletChar()
    
public  intgetBulletOffset()
    
public  ColorgetFontColor()
    
public  StringgetFontName()
    
public  intgetFontSize()
    
public  intgetIndentLevel()
    
public  intgetLength()
    
public  StringgetRawText()
    
public  StringgetText()
    
public  intgetTextOffset()
    
public  booleanisBold()
    
public  booleanisBullet()
    
public  booleanisItalic()
    
public  booleanisUnderlined()
    
public  voidsetAlignment(int align)
     Sets the type of horizontal alignment for the text.
public  voidsetBold(boolean bold)
    
public  voidsetBullet(boolean flag)
    
public  voidsetBulletChar(char c)
    
public  voidsetBulletOffset(int offset)
    
public  voidsetCharTextPropVal(String propName, int val)
    
public  voidsetFlag(boolean isCharacter, int index, boolean value)
    
public  voidsetFontColor(int bgr)
     Sets color of the text, as a int bgr.
public  voidsetFontColor(Color color)
    
public  voidsetFontName(String fontName)
    
public  voidsetFontSize(int fontSize)
    
public  voidsetItalic(boolean italic)
    
public  voidsetParaTextPropVal(String propName, int val)
    
public  voidsetText(String text)
    
public  voidsetTextOffset(int offset)
    
public  voidsetUnderlined(boolean underlined)
    
public  voidsupplySlideShow(SlideShow ss)
    
public  voidsupplyTextProps(TextPropCollection pStyle, TextPropCollection cStyle, boolean pShared, boolean cShared)
    
public  voidupdateStartPosition(int startAt)
    


Constructor Detail
RichTextRun
public RichTextRun(TextRun parent, int startAt, int len)(Code)
Create a new wrapper around a (currently not) rich text string
Parameters:
  parent -
Parameters:
  startAt -
Parameters:
  len -



RichTextRun
public RichTextRun(TextRun parent, int startAt, int len, TextPropCollection pStyle, TextPropCollection cStyle, boolean pShared, boolean cShared)(Code)
Create a new wrapper around a rich text string
Parameters:
  parent - The parent TextRun
Parameters:
  startAt - The start position of this run
Parameters:
  len - The length of this run
Parameters:
  pStyle - The paragraph style property collection
Parameters:
  cStyle - The character style property collection
Parameters:
  pShared - The paragraph styles are shared with other runs
Parameters:
  cShared - The character styles are shared with other runs




Method Detail
_getRawCharacterStyle
public TextPropCollection _getRawCharacterStyle()(Code)
Internal Use Only - get the underlying character style collection. For normal use, use the friendly setters and getters



_getRawParagraphStyle
public TextPropCollection _getRawParagraphStyle()(Code)
Internal Use Only - get the underlying paragraph style collection. For normal use, use the friendly setters and getters



_isCharacterStyleShared
public boolean _isCharacterStyleShared()(Code)
Internal Use Only - are the Character styles shared?



_isParagraphStyleShared
public boolean _isParagraphStyleShared()(Code)
Internal Use Only - are the Paragraph styles shared?



getAlignment
public int getAlignment()(Code)
Returns the type of horizontal alignment for the text. One of the Align* constants defined in the TextBox class. the type of alignment



getBulletChar
public char getBulletChar()(Code)
Returns the bullet character



getBulletOffset
public int getBulletOffset()(Code)
Returns the bullet offset



getFontColor
public Color getFontColor()(Code)
font color as RGB value
See Also:   java.awt.Color



getFontName
public String getFontName()(Code)



getFontSize
public int getFontSize()(Code)



getIndentLevel
public int getIndentLevel()(Code)
indentation level



getLength
public int getLength()(Code)
Get the length of the text



getRawText
public String getRawText()(Code)
Fetch the text, in raw storage form



getText
public String getText()(Code)
Fetch the text, in output suitable form



getTextOffset
public int getTextOffset()(Code)
Returns the text offset



isBold
public boolean isBold()(Code)



isBullet
public boolean isBullet()(Code)
Returns whether this rich text run has bullets



isItalic
public boolean isItalic()(Code)



isUnderlined
public boolean isUnderlined()(Code)



setAlignment
public void setAlignment(int align)(Code)
Sets the type of horizontal alignment for the text. One of the Align* constants defined in the TextBox class.
Parameters:
  align - - the type of alignment



setBold
public void setBold(boolean bold)(Code)



setBullet
public void setBullet(boolean flag)(Code)
Sets whether this rich text run has bullets



setBulletChar
public void setBulletChar(char c)(Code)
Sets the bullet character



setBulletOffset
public void setBulletOffset(int offset)(Code)
Sets the bullet offset



setCharTextPropVal
public void setCharTextPropVal(String propName, int val)(Code)
Sets the value of the given Paragraph TextProp, add if required
Parameters:
  propName - The name of the Paragraph TextProp
Parameters:
  val - The value to set for the TextProp



setFlag
public void setFlag(boolean isCharacter, int index, boolean value)(Code)



setFontColor
public void setFontColor(int bgr)(Code)
Sets color of the text, as a int bgr. (PowerPoint stores as BlueGreenRed, not the more usual RedGreenBlue)
See Also:   java.awt.Color



setFontColor
public void setFontColor(Color color)(Code)
Sets color of the text, as a java.awt.Color



setFontName
public void setFontName(String fontName)(Code)



setFontSize
public void setFontSize(int fontSize)(Code)



setItalic
public void setItalic(boolean italic)(Code)



setParaTextPropVal
public void setParaTextPropVal(String propName, int val)(Code)
Sets the value of the given Character TextProp, add if required
Parameters:
  propName - The name of the Character TextProp
Parameters:
  val - The value to set for the TextProp



setText
public void setText(String text)(Code)
Change the text



setTextOffset
public void setTextOffset(int offset)(Code)
Sets the text offset



setUnderlined
public void setUnderlined(boolean underlined)(Code)



supplySlideShow
public void supplySlideShow(SlideShow ss)(Code)
Supply the SlideShow we belong to



supplyTextProps
public void supplyTextProps(TextPropCollection pStyle, TextPropCollection cStyle, boolean pShared, boolean cShared)(Code)
Supply (normally default) textprops, and if they're shared, when a run gets them



updateStartPosition
public void updateStartPosition(int startAt)(Code)
Tells the RichTextRun its new position in the parent TextRun
Parameters:
  startAt -



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.