public interface

ILine

com.pnfsoftware.jeb.core.output.text.ILine
Known Indirect Subclasses

Class Overview

Representation of a line within an ITextDocumentPart. A line should not contain new line characters such as carriage-return or line-feed. A line may contain optional, non-overlapping items that define regions of text onto which special meaning can be attached.

It is the responsibility of the implementor to make sure that lines do not contain CR/LF characters.

It is the responsibility of the implementor to make sure that items are non overlapping.

Summary

Fields
public static final ILine EMPTY_LINE An empty line with no anchor
Public Methods
abstract List<? extends ITextItem> getItems()
Get the list of text items within the current line.
abstract List<? extends ITextMark> getMarks()
Get the list of marks for this line.
abstract CharSequence getText()
Get the line text.

Fields

public static final ILine EMPTY_LINE

An empty line with no anchor

Public Methods

public abstract List<? extends ITextItem> getItems ()

Get the list of text items within the current line. It is the responsibility of the implementor to make sure that items are non overlapping and are sorted.

Returns
  • a list, possibly empty, of text items

public abstract List<? extends ITextMark> getMarks ()

Get the list of marks for this line.

public abstract CharSequence getText ()

Get the line text. It is the responsibility of the implementor to make sure that lines do not contain CR/LF characters.

Returns
  • the line