Class Line
java.lang.Object
com.pnfsoftware.jeb.core.output.text.impl.Line
- All Implemented Interfaces:
ILine
A simple implementation of the line interface.
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.output.text.ILine
EMPTY_LINE, FLAG_DISABLED_LINE
-
Constructor Summary
ConstructorsConstructorDescriptionLine
(CharSequence text) Create a new line without items.Line
(CharSequence text, List<TextItem> items) Create a new line.Create a new line. -
Method Summary
-
Constructor Details
-
Line
Create a new line without items.- Parameters:
text
- the line text
-
Line
Create a new line.- Parameters:
text
- mandatory text line, cannot contain new-line charactersitems
- mandatory items, can be empty at best
-
Line
Create a new line.- Parameters:
text
-items
-marks
-
-
-
Method Details
-
getText
Description copied from interface:ILine
Get the line text. It is the responsibility of the implementor to make sure that lines do not contain CR/LF characters. -
setText
-
getItems
Description copied from interface:ILine
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. -
addItem
AddTextItem
to the currentLine
. This method preservesTextItem
order based on theTextItem.getOffset()
.- Parameters:
item
-
-
getMarks
Description copied from interface:ILine
Get the list of marks for this line. -
addMark
Record a mark in the current line.- Parameters:
mark
-
-
toString
-