public class TextPropCollection
extends java.lang.Object
Constructor and Description |
---|
TextPropCollection(int textSize)
Create a new collection of text properties (be they paragraph
or character) for a run of text without any
|
TextPropCollection(int charactersCovered,
short reservedField)
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 |
---|---|
TextProp |
addWithName(java.lang.String name)
Add the TextProp with this name to the list
|
int |
buildTextPropList(int containsField,
TextProp[] potentialProperties,
byte[] data,
int dataOffset)
For an existing set of text properties, build the list of
properties coded for in a given run of properties.
|
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 |
getReservedField() |
int |
getSpecialMask() |
java.util.LinkedList<TextProp> |
getTextPropList()
Fetch the TextProps that define this styling
|
void |
setReservedField(short val) |
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 TextPropCollection(int charactersCovered, short reservedField)
public TextPropCollection(int textSize)
public int getSpecialMask()
public int getCharactersCovered()
public java.util.LinkedList<TextProp> getTextPropList()
public TextProp findByName(java.lang.String textPropName)
public TextProp addWithName(java.lang.String name)
public int buildTextPropList(int containsField, TextProp[] potentialProperties, byte[] data, int dataOffset)
public void updateTextSize(int textSize)
public void writeOut(java.io.OutputStream o) throws java.io.IOException
java.io.IOException
public short getReservedField()
public void setReservedField(short val)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.