public interface PatientLineBreaker extends LineBreaker
To use a LineBreaker, first get an instance from
TextServer.providePatientLineBreaker(LineBreakControl,
LineBreakHandler, FontConsumer)
.
After obtaining an instance, recursively access the addLineContent,
providing the instance with each item that should be included in the block
of content to be broken into lines. After this is complete, run
getResults()
, which performs the computations needed to
determine the line breaks and returns the results.
Modifier and Type | Method and Description |
---|---|
void |
addLineContent(LineContent contentItem)
Provide the line-breaking system with a piece of content.
|
int |
getResults()
This method is currently not right, and cannot yet be properly
documented.
|
void addLineContent(LineContent contentItem) throws TextException
contentItem
- The LineContent implementation that should be laid
out.TextException
- For errors in line-breaking.int getResults() throws TextException
TextException
- for an error in processing.This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.