| java.lang.Object com.ibm.richtext.styledtext.MStyleBuffer
All known Subclasses: com.ibm.richtext.styledtext.StyleBuffer,
MStyleBuffer | abstract class MStyleBuffer (Code) | | |
Method Summary | |
abstract void | compress() Minimize the amount of memory used by this object. | abstract void | deleteText(int start, int limit) Respond to a deletion in the text. | abstract void | insertText(int start, int limit) Respond to an insertion in the text. | abstract boolean | modifyStyles(int start, int limit, StyleModifier modifier, int[] damagedRange) Return true if styles were modified. | abstract void | replace(int start, int limit, MConstText srcText, int srcStart, int srcLimit) | abstract AttributeMap | styleAt(int pos) Return style at location pos. | abstract int | styleLimit(int pos) | abstract int | styleStart(int pos) |
compress | abstract void compress()(Code) | | Minimize the amount of memory used by this object.
|
deleteText | abstract void deleteText(int start, int limit)(Code) | | Respond to a deletion in the text. The last style run before
start is truncated to end at start. The
style run containing (start+length) is set to begin
at (start+length). Runs in between are deleted.
If the deletion occurs entirely within one style run, the length of the style
run is reduced by length.
Parameters: start - the offset where the deletion began Parameters: length - the offset where the deletion ended |
insertText | abstract void insertText(int start, int limit)(Code) | | Respond to an insertion in the text. The length of the last style run which
begins before start is increased by limit-start.
Parameters: start - the offset where the insertion began Parameters: limit - the offset where the insertion ended |
modifyStyles | abstract boolean modifyStyles(int start, int limit, StyleModifier modifier, int[] damagedRange)(Code) | | Return true if styles were modified.
|
replace | abstract void replace(int start, int limit, MConstText srcText, int srcStart, int srcLimit)(Code) | | |
styleAt | abstract AttributeMap styleAt(int pos)(Code) | | Return style at location pos.
Parameters: pos - an offset into the text |
styleLimit | abstract int styleLimit(int pos)(Code) | | |
styleStart | abstract int styleStart(int pos)(Code) | | |
|
|