|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hslf.record.Record
org.apache.poi.hslf.record.RecordAtom
org.apache.poi.hslf.record.StyleTextPropAtom
public 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
Nested Class Summary | |
---|---|
static class |
StyleTextPropAtom.BitMaskTextProp
Definition of a special kind of property of some text, or its paragraph. |
static class |
StyleTextPropAtom.CharFlagsTextProp
Definition for the common character text property bitset, which handles bold/italic/underline etc. |
static class |
StyleTextPropAtom.TextProp
Definition of a property of some text, or its paragraph. |
class |
StyleTextPropAtom.TextPropCollection
For a given run of characters, holds the properties (which could be paragraph properties or character properties). |
Field Summary | |
---|---|
static StyleTextPropAtom.TextProp[] |
characterTextPropTypes
All the different kinds of character properties we might handle |
static StyleTextPropAtom.TextProp[] |
paragraphTextPropTypes
All the different kinds of paragraph properties we might handle |
Constructor Summary | |
---|---|
protected |
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 | |
---|---|
StyleTextPropAtom.TextPropCollection |
addCharacterTextPropCollection(int charactersCovered)
Create a new Character TextPropCollection, and add it to the list |
StyleTextPropAtom.TextPropCollection |
addParagraphTextPropCollection(int charactersCovered)
Create a new Paragraph TextPropCollection, and add it to the list |
java.util.LinkedList |
getCharacterStyles()
|
java.util.LinkedList |
getParagraphStyles()
|
long |
getRecordType()
We are of type 4001 |
void |
setCharacterStyles(java.util.LinkedList cs)
Updates the link list of TextPropCollections which make up the character stylings |
void |
setParagraphStyles(java.util.LinkedList 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 |
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 |
---|
createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static StyleTextPropAtom.TextProp[] paragraphTextPropTypes
public static StyleTextPropAtom.TextProp[] characterTextPropTypes
Constructor Detail |
---|
protected StyleTextPropAtom(byte[] source, int start, int len)
public StyleTextPropAtom(int parentTextSize)
Method Detail |
---|
public java.util.LinkedList getParagraphStyles()
public void setParagraphStyles(java.util.LinkedList ps)
public java.util.LinkedList getCharacterStyles()
public void setCharacterStyles(java.util.LinkedList cs)
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 StyleTextPropAtom.TextPropCollection addParagraphTextPropCollection(int charactersCovered)
charactersCovered
- The number of characters this TextPropCollection will cover
public StyleTextPropAtom.TextPropCollection addCharacterTextPropCollection(int charactersCovered)
charactersCovered
- The number of characters this TextPropCollection will cover
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |