|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hslf.model.textproperties.TextPropCollection
public class TextPropCollection
For a given run of characters, holds the properties (which could be paragraph properties or character properties). Used to hold the number of characters affected, the list of active properties, and the indent level if required.
Nested Class Summary | |
---|---|
static class |
TextPropCollection.TextPropType
|
Constructor Summary | |
---|---|
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(). |
Method Summary | |
---|---|
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 in the record order |
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 |
void |
writeOut(java.io.OutputStream o,
boolean isMasterStyle)
Writes out to disk the header, and then all the properties |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextPropCollection(int charactersCovered, TextPropCollection.TextPropType textPropType)
Method Detail |
---|
public int getSpecialMask()
public int getCharactersCovered()
public java.util.List<TextProp> getTextPropList()
public final TextProp findByName(java.lang.String textPropName)
public final TextProp removeByName(java.lang.String name)
public final TextPropCollection.TextPropType getTextPropType()
public final TextProp addWithName(java.lang.String name)
public final 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 void writeOut(java.io.OutputStream o, boolean isMasterStyle) 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |