public class

TextDocumentPart

extends Object
implements ITextDocumentPart
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.text.impl.TextDocumentPart

Class Overview

A simple implementation for a text document part.

Summary

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

Fields

public static final TextDocumentPart EMPTY

An empty part with an empty line and an anchor pointing to that line

Public Constructors

public TextDocumentPart (List<ILine> lines, List<IAnchor> anchors)

Create a new part with the given lines and anchors.

Parameters
lines a list of lines
anchors a list of anchors

Public Methods

public List<IAnchor> getAnchors ()

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.

Returns
  • the list of anchors

public List<ILine> getLines ()

Get the lines within that part. The lines may span over one or more anchors.

Returns
  • the list of lines