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
FieldsModifier and TypeFieldDescriptionstatic final TextDocumentPartAn empty part with an empty line and an anchor pointing to that line -
Constructor Summary
ConstructorsConstructorDescriptionTextDocumentPart(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, waitMethods inherited from interface com.pnfsoftware.jeb.core.output.text.ITextDocumentPart
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:ITextDocumentPartGet the lines within that part. The lines may span over one or more anchors.- Specified by:
getLinesin interfaceITextDocumentPart- Returns:
- the list of lines
-
getLine
- Specified by:
getLinein interfaceITextDocumentPart- Returns:
-
getCountOfLines
public int getCountOfLines()- Specified by:
getCountOfLinesin interfaceITextDocumentPart- Returns:
-
getAnchors
Description copied from interface:ITextDocumentPartGet 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:
getAnchorsin interfaceITextDocumentPart- Returns:
- the list of anchors
-
getAnchor
- Specified by:
getAnchorin interfaceITextDocumentPart
-
getCountOfAnchors
public int getCountOfAnchors()- Specified by:
getCountOfAnchorsin interfaceITextDocumentPart- Returns:
-