|
aXSL API 0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PatientLineBreaker implementations provide line-breaking logic to clients. "Patient" line-breaking means that no decisions about where line-breaks occur are finalized until all lines in the block/paragraph have been considered. Patient processing will usually be slower but provide better results than eager processing. Patient line-breaking client send all of their input to the text-processing system before processing actually starts.
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.
Method Summary | |
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. |
Method Detail |
public void addLineContent(LineContent contentItem) throws TextException
contentItem
- The LineContent implementation that should be laid
out.
TextException
- For errors in line-breaking.public int getResults() throws TextException
TextException
- for an error in processing.
|
aXSL API 0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation was created September 6 2006 by The aXSL Group and may be freely copied. See license for details.