# Class: com.pnfsoftware.jeb.core.output.text.impl.StaticTextDocument

A simple text document. Such text document objects do not listen to unit changes events; in fact, they are unaware of the [IUnit](IUnit) family of classes. They are ideal to distribute static, immutable contents. More complex text documents should implement [ITextDocument](ITextDocument) and/or extend [AbstractTextDocument](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](AbstractTextDocument). The addressing scheme has been simplified to "anchorId,columnOffset".

## Constructor: StaticTextDocument
- parameter: `lines`, type: `java.util.List<com.pnfsoftware.jeb.core.output.text.ILine>`


## Constructor: StaticTextDocument
- parameter: `text`, type: `java.lang.String`


## Method: getAnchorCount
- return type: `long`


## Method: getDocumentPart
- parameter: `anchorId`, type: `long`
- parameter: `linesAfter`, type: `int`
- parameter: `linesBefore`, type: `int`
- return type: `com.pnfsoftware.jeb.core.output.text.ITextDocumentPart`


## Method: toString
- return type: `java.lang.String`


## Protected Method: useDisplayLineNumber
- return type: `boolean`


## Protected Method: useLineDelta
- return type: `boolean`


