public final class StyleTextPropAtom extends RecordAtom
| Modifier and Type | Field and Description |
|---|---|
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
|
| 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
|
LinkedList<TextPropCollection> |
getCharacterStyles() |
int |
getCharacterTextLengthCovered()
Returns how many characters the character's
TextPropCollections cover.
|
LinkedList<TextPropCollection> |
getParagraphStyles() |
int |
getParagraphTextLengthCovered()
Returns how many characters the paragraph's
TextPropCollections cover.
|
long |
getRecordType()
We are of type 4001
|
void |
setCharacterStyles(LinkedList<TextPropCollection> cs)
Updates the link list of TextPropCollections which make up the
character stylings
|
void |
setParagraphStyles(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) |
String |
toString()
Dump the record content into
StringBuffer |
void |
writeOut(OutputStream out)
Write the contents of the record back, so it can be written
to disk
|
getChildRecords, isAnAtombuildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndianpublic static TextProp[] paragraphTextPropTypes
public static TextProp[] characterTextPropTypes
public StyleTextPropAtom(byte[] source,
int start,
int len)
public StyleTextPropAtom(int parentTextSize)
public LinkedList<TextPropCollection> getParagraphStyles()
public void setParagraphStyles(LinkedList<TextPropCollection> ps)
public LinkedList<TextPropCollection> getCharacterStyles()
public void setCharacterStyles(LinkedList<TextPropCollection> cs)
public int getParagraphTextLengthCovered()
public int getCharacterTextLengthCovered()
public long getRecordType()
getRecordType in class Recordpublic void writeOut(OutputStream out) throws IOException
writeOut in class RecordIOExceptionpublic void setParentTextSize(int size)
public void setRawContents(byte[] bytes)
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 coverCopyright © 2020. All rights reserved.