|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hslf.record.Record org.apache.poi.hslf.record.RecordAtom org.apache.poi.hslf.record.StyleTextPropAtom
public final class StyleTextPropAtom
A StyleTextPropAtom (type 4001). Holds basic character properties (bold, italic, underline, font size etc) and paragraph properties (alignment, line spacing etc) for the block of text (TextBytesAtom or TextCharsAtom) that this record follows. You will find two lists within this class. 1 - Paragraph style list (paragraphStyles) 2 - Character style list (charStyles) Both are lists of TextPropCollections. These define how many characters the style applies to, and what style elements make up the style (another list, this time of TextProps). Each TextProp has a value, which somehow encapsulates a property of the style
Field Summary | |
---|---|
static TextProp[] |
characterTextPropTypes
All the different kinds of character properties we might handle |
static TextProp[] |
paragraphTextPropTypes
All the different kinds of paragraph properties we might handle |
Fields inherited from class org.apache.poi.hslf.record.Record |
---|
logger |
Constructor Summary | |
---|---|
StyleTextPropAtom(byte[] source,
int start,
int len)
For the Text Style Properties (StyleTextProp) Atom |
|
StyleTextPropAtom(int parentTextSize)
A new set of text style properties for some text without any. |
Method Summary | |
---|---|
TextPropCollection |
addCharacterTextPropCollection(int charactersCovered)
Create a new Character TextPropCollection, and add it to the list |
TextPropCollection |
addParagraphTextPropCollection(int charactersCovered)
Create a new Paragraph TextPropCollection, and add it to the list |
java.util.LinkedList<TextPropCollection> |
getCharacterStyles()
|
int |
getCharacterTextLengthCovered()
Returns how many characters the character's TextPropCollections cover. |
java.util.LinkedList<TextPropCollection> |
getParagraphStyles()
|
int |
getParagraphTextLengthCovered()
Returns how many characters the paragraph's TextPropCollections cover. |
long |
getRecordType()
We are of type 4001 |
void |
setCharacterStyles(java.util.LinkedList<TextPropCollection> cs)
Updates the link list of TextPropCollections which make up the character stylings |
void |
setParagraphStyles(java.util.LinkedList<TextPropCollection> ps)
Updates the link list of TextPropCollections which make up the paragraph stylings |
void |
setParentTextSize(int size)
Tell us how much text the parent TextCharsAtom or TextBytesAtom contains, so we can go ahead and initialise ourselves. |
void |
setRawContents(byte[] bytes)
|
java.lang.String |
toString()
Dump the record content into StringBuffer |
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk |
Methods inherited from class org.apache.poi.hslf.record.RecordAtom |
---|
getChildRecords, isAnAtom |
Methods inherited from class org.apache.poi.hslf.record.Record |
---|
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static TextProp[] paragraphTextPropTypes
public static TextProp[] characterTextPropTypes
Constructor Detail |
---|
public StyleTextPropAtom(byte[] source, int start, int len)
public StyleTextPropAtom(int parentTextSize)
Method Detail |
---|
public java.util.LinkedList<TextPropCollection> getParagraphStyles()
public void setParagraphStyles(java.util.LinkedList<TextPropCollection> ps)
public java.util.LinkedList<TextPropCollection> getCharacterStyles()
public void setCharacterStyles(java.util.LinkedList<TextPropCollection> cs)
public int getParagraphTextLengthCovered()
public int getCharacterTextLengthCovered()
public long getRecordType()
getRecordType
in class Record
public void writeOut(java.io.OutputStream out) throws java.io.IOException
writeOut
in class Record
java.io.IOException
public void setParentTextSize(int size)
public void setRawContents(byte[] bytes)
public TextPropCollection addParagraphTextPropCollection(int charactersCovered)
charactersCovered
- The number of characters this TextPropCollection will cover
public TextPropCollection addCharacterTextPropCollection(int charactersCovered)
charactersCovered
- The number of characters this TextPropCollection will cover
public java.lang.String toString()
StringBuffer
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |