CalclipseLib

CalclipseLib is a Java library of general usability. One of its packages contains the document iterator. A document iterator is used to iterate over the contents of a text input control, one chunk at a time. A document iterator might be used by a worker thread to scan the text asynchronously to any text editing, or it might be used on the event handling thread directly.

The client typically parses the text and generates tokens. Along the way it marks positions in the document. This limits the amount of text that needs to be reiterated after content modifications. The tokens are given to a token handler via the iterator. A token handler might for instance apply various styles to the text represented by the tokens.

 

Last edit: Tone Sommerland ™ 2016-05-17