| 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 |
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 |
_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
|
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
|
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 - |
|
|