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
|
void |
addCharacterTextPropCollection(TextPropCollection tpc) |
TextPropCollection |
addParagraphTextPropCollection(int charactersCovered)
Create a new Paragraph TextPropCollection, and add it to the list
|
void |
addParagraphTextPropCollection(TextPropCollection tpc) |
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.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
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() |
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written
to disk
|
getChildRecords, getMaxRecordLength, isAnAtom, setMaxRecordLength
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, 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 void addParagraphTextPropCollection(TextPropCollection tpc)
public TextPropCollection addCharacterTextPropCollection(int charactersCovered)
charactersCovered
- The number of characters this TextPropCollection will coverpublic void addCharacterTextPropCollection(TextPropCollection tpc)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.