public final class StyleTextPropAtom extends RecordAtom
Modifier and Type | Field and Description |
---|---|
static long |
_type |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
void |
clearStyles()
Clear styles, so new collections can be added
|
java.util.List<TextPropCollection> |
getCharacterStyles() |
int |
getCharacterTextLengthCovered()
Returns how many characters the character's
TextPropCollections cover.
|
java.util.List<TextPropCollection> |
getParagraphStyles() |
int |
getParagraphTextLengthCovered()
Returns how many characters the paragraph's
TextPropCollections cover.
|
long |
getRecordType()
We are of type 4001
|
void |
setCharacterStyles(java.util.List<TextPropCollection> cs)
Updates the link list of TextPropCollections which make up the
character stylings
|
void |
setParagraphStyles(java.util.List<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.
|
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
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
public StyleTextPropAtom(byte[] source, int start, int len)
public StyleTextPropAtom(int parentTextSize)
public java.util.List<TextPropCollection> getParagraphStyles()
public void setParagraphStyles(java.util.List<TextPropCollection> ps)
public java.util.List<TextPropCollection> getCharacterStyles()
public void setCharacterStyles(java.util.List<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
public void setParentTextSize(int size)
public void clearStyles()
public TextPropCollection addParagraphTextPropCollection(int charactersCovered)
charactersCovered
- The number of characters this TextPropCollection will coverpublic TextPropCollection addCharacterTextPropCollection(int charactersCovered)
charactersCovered
- The number of characters this TextPropCollection will coverpublic java.lang.String toString()
StringBuffer
toString
in class java.lang.Object
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.