java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.output.text.impl.TextDocumentPart |
A simple implementation for a text document part.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final TextDocumentPart | EMPTY | An empty part with an empty line and an anchor pointing to that line |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TextDocumentPart(List<ILine> lines, List<IAnchor> anchors)
Create a new part with the given lines and anchors.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
List<IAnchor> |
getAnchors()
Get the anchors within that part.
| ||||||||||
List<ILine> |
getLines()
Get the lines within that part.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.output.text.ITextDocumentPart
|
An empty part with an empty line and an anchor pointing to that line
Create a new part with the given lines and anchors.
lines | a list of lines |
---|---|
anchors | a list of anchors |
Get the anchors within that part. The last anchor object may be used to specify the first anchor id of the next, contiguous part. It is especially useful in cases where a line spans multiple anchor ids.
Get the lines within that part. The lines may span over one or more anchors.