| java.lang.Object org.apache.poi.hslf.model.TextRun
TextRun | public class TextRun (Code) | | This class represents a run of text in a powerpoint document. That
run could be text on a sheet, or text in a note.
It is only a very basic class for now
author: Nick Burch |
_isUnicode | protected boolean _isUnicode(Code) | | |
_records | protected Record[] _records(Code) | | all text run records that follow TextHeaderAtom.
(there can be misc InteractiveInfo, TxInteractiveInfo and other records)
|
TextRun | public TextRun(TextHeaderAtom tha, TextCharsAtom tca, StyleTextPropAtom sta)(Code) | | Constructs a Text Run from a Unicode text block
Parameters: tha - the TextHeaderAtom that defines what's what Parameters: tca - the TextCharsAtom containing the text Parameters: sta - the StyleTextPropAtom which defines the character stylings |
TextRun | public TextRun(TextHeaderAtom tha, TextBytesAtom tba, StyleTextPropAtom sta)(Code) | | Constructs a Text Run from a Ascii text block
Parameters: tha - the TextHeaderAtom that defines what's what Parameters: tba - the TextBytesAtom containing the text Parameters: sta - the StyleTextPropAtom which defines the character stylings |
changeTextInRichTextRun | public synchronized void changeTextInRichTextRun(RichTextRun run, String s)(Code) | | Handles an update to the text stored in one of the Rich Text Runs
Parameters: run - Parameters: s - |
ensureStyleAtomPresent | public synchronized void ensureStyleAtomPresent()(Code) | | Ensure a StyleTextPropAtom is present for this run,
by adding if required. Normally for internal TextRun use.
|
getHyperlinks | public Hyperlink[] getHyperlinks()(Code) | | Returns the array of all hyperlinks in this text run
the array of all hyperlinks in this text runor null if not found. |
getIndex | protected int getIndex()(Code) | | 0-based index of the text run in the SLWT container |
getRawText | public String getRawText()(Code) | | Returns the raw text content of the run. This hasn't had any
changes applied to it, and so is probably unlikely to print
out nicely.
|
getRichTextRuns | public RichTextRun[] getRichTextRuns()(Code) | | Fetch the rich text runs (runs of text with the same styling) that
are contained within this block of text
|
getShapeId | protected int getShapeId()(Code) | | Shape ID |
getText | public String getText()(Code) | | Returns the text content of the run, which has been made safe
for printing and other use.
|
setIndex | protected void setIndex(int id)(Code) | | Parameters: id - 0-based index of the text run in the SLWT container |
setRunType | public void setRunType(int type)(Code) | | Changes the type of the text. Values should be taken
from TextHeaderAtom. No checking is done to ensure you
set this to a valid value!
See Also: org.apache.poi.hslf.record.TextHeaderAtom |
setShapeId | protected void setShapeId(int id)(Code) | | Parameters: id - Shape ID |
setText | public synchronized void setText(String s)(Code) | | Changes the text, and sets it all to have the same styling
as the the first character has.
If you care about styling, do setText on a RichTextRun instead
|
supplySlideShow | public void supplySlideShow(SlideShow ss)(Code) | | Supply the SlideShow we belong to.
Also passes it on to our child RichTextRuns
|
|
|