Class TextDocumentPart
java.lang.Object
com.pnfsoftware.jeb.core.output.text.impl.TextDocumentPart
- All Implemented Interfaces:
ITextDocumentPart
A simple implementation for a text document part.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TextDocumentPart
An empty part with an empty line and an anchor pointing to that line -
Constructor Summary
ConstructorDescriptionTextDocumentPart
(List<ILine> lines, List<IAnchor> anchors) Create a new part with the given lines and anchors. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pnfsoftware.jeb.core.output.text.ITextDocumentPart
getAnchor, getLine, getObjectLocations
-
Field Details
-
EMPTY
An empty part with an empty line and an anchor pointing to that line
-
-
Constructor Details
-
TextDocumentPart
Create a new part with the given lines and anchors.- Parameters:
lines
- a list of linesanchors
- a list of anchors
-
-
Method Details
-
getLines
Description copied from interface:ITextDocumentPart
Get the lines within that part. The lines may span over one or more anchors.- Specified by:
getLines
in interfaceITextDocumentPart
- Returns:
- the list of lines
-
getAnchors
Description copied from interface:ITextDocumentPart
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.- Specified by:
getAnchors
in interfaceITextDocumentPart
- Returns:
- the list of anchors
-