# Class: com.pnfsoftware.jeb.core.output.text.impl.StaticTextDocument
- Super class: `com.pnfsoftware.jeb.core.output.text.impl.AbstractTextDocument`

A simple text document. Such text document objects do not listen to unit changes events; in fact,  they are unaware of the [IUnit](com.pnfsoftware.jeb.core.units.IUnit.md) family of classes. They are ideal to distribute static,  immutable contents. More complex text documents should implement [ITextDocument](com.pnfsoftware.jeb.core.output.text.ITextDocument.md) and/or  extend [AbstractTextDocument](com.pnfsoftware.jeb.core.output.text.impl.AbstractTextDocument.md).  

  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](com.pnfsoftware.jeb.core.output.text.impl.AbstractTextDocument.md). 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`


