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
(创建一个新的 Character TextPropCollection,并将其添加到列表中)
|
void |
addCharacterTextPropCollection(TextPropCollection tpc) |
TextPropCollection |
addParagraphTextPropCollection(int charactersCovered)
Create a new Paragraph TextPropCollection, and add it to the list
(创建一个新的 Paragraph TextPropCollection,并将其添加到列表中)
|
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.
(返回角色的 TextPropCollections 覆盖的字符数。)
|
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.
(返回段落的 TextPropCollections 覆盖的字符数。)
|
long |
getRecordType()
We are of type 4001
(我们是4001型)
|
void |
setCharacterStyles(java.util.List<TextPropCollection> cs)
Updates the link list of TextPropCollections which make up the character stylings
(更新构成字符样式的 TextPropCollections 的链接列表)
|
void |
setParagraphStyles(java.util.List<TextPropCollection> ps)
Updates the link list of TextPropCollections which make up the paragraph stylings
(更新构成段落样式的 TextPropCollections 的链接列表)
|
void |
setParentTextSize(int size)
Tell us how much text the parent TextCharsAtom or TextBytesAtom contains, so we can go ahead and initialise ourselves.
(告诉我们父 TextCharsAtom 或 TextBytesAtom 包含多少文本,这样我们就可以继续初始化自己。)
|
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, isAnAtom
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
(类 Record 中的 getRecordType)
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 cover
(charactersCovered - 此 TextPropCollection 将覆盖的字符数)
public void addParagraphTextPropCollection(TextPropCollection tpc)
public TextPropCollection addCharacterTextPropCollection(int charactersCovered)
charactersCovered
- The number of characters this TextPropCollection will cover
(charactersCovered - 此 TextPropCollection 将覆盖的字符数)
public 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 2021 The Apache Software Foundation or its licensors, as applicable.