public class TextPropCollection
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TextPropCollection.TextPropType |
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 |
---|
TextPropCollection(int charactersCovered,
TextPropCollection.TextPropType textPropType)
Create a new collection of text properties (be they paragraph
or character) which will be groked via a subsequent call to
buildTextPropList().
|
Modifier and Type | Method and Description |
---|---|
void |
addProp(TextProp textProp)
Add the property at the correct position.
|
TextProp |
addWithName(java.lang.String name)
Add the TextProp with this name to the list
|
int |
buildTextPropList(int containsField,
byte[] data,
int dataOffset)
For an existing set of text properties, build the list of
properties coded for in a given run of properties.
|
void |
copy(TextPropCollection other)
Clones the given text properties
|
boolean |
equals(java.lang.Object other)
compares most properties apart of the covered characters length
|
TextProp |
findByName(java.lang.String textPropName)
Fetch the TextProp with this name, or null if it isn't present
|
int |
getCharactersCovered()
Fetch the number of characters this styling applies to
|
short |
getIndentLevel() |
int |
getSpecialMask() |
java.util.List<TextProp> |
getTextPropList()
Fetch the TextProps that define this styling
|
TextPropCollection.TextPropType |
getTextPropType() |
int |
hashCode() |
TextProp |
removeByName(java.lang.String name) |
void |
setIndentLevel(short indentLevel) |
java.lang.String |
toString() |
void |
updateTextSize(int textSize)
Update the size of the text that this set of properties
applies to
|
void |
writeOut(java.io.OutputStream o)
Writes out to disk the header, and then all the properties
|
public static final TextProp[] paragraphTextPropTypes
public static final TextProp[] characterTextPropTypes
public TextPropCollection(int charactersCovered, TextPropCollection.TextPropType textPropType)
public int getSpecialMask()
public int getCharactersCovered()
public java.util.List<TextProp> getTextPropList()
public TextProp findByName(java.lang.String textPropName)
public TextProp removeByName(java.lang.String name)
public TextProp addWithName(java.lang.String name)
public TextPropCollection.TextPropType getTextPropType()
public void addProp(TextProp textProp)
textProp
- the property to be addedpublic int buildTextPropList(int containsField, byte[] data, int dataOffset)
public void copy(TextPropCollection other)
public void updateTextSize(int textSize)
public void writeOut(java.io.OutputStream o) throws java.io.IOException
java.io.IOException
public short getIndentLevel()
public void setIndentLevel(short indentLevel)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.