Class StaticTextDocument

All Implemented Interfaces:
IGenericDocument, ITextDocument, IEventSource

@Ser public class StaticTextDocument extends AbstractTextDocument
A simple text document. Such text document objects do not listen to unit changes events; in fact, they are unaware of the IUnit family of classes. They are ideal to distribute static, immutable contents. More complex text documents should implement ITextDocument and/or extend AbstractTextDocument.

In this simple implementation, a line maps to one anchor. Therefore, the "line" part of a coordinates becomes redundant within the default addressing scheme provided by AbstractTextDocument. The addressing scheme has been simplified to "anchorId,columnOffset".