|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The line breaker is a sort of enumeration that contains a text and is able to break the lines of the text so that it fits into one or more boxes.
Method Summary | |
TextBlock |
getNextBlock(java.awt.Graphics g,
int width,
int height,
boolean last)
Returns the next text block. |
boolean |
hasNext()
Returns true, if this iterator has more text to break. |
Method Detail |
public boolean hasNext()
public TextBlock getNextBlock(java.awt.Graphics g, int width, int height, boolean last)
g
- The graphics object that will be used to render the text.width
- The available with of the next text box.height
- The available height of the next text box.last
- If true, the call is the last call to this iterator. If this iterator observes, that the text
does not fit into the text box, and the last flag is true, the strategy may append "..." at the end of the text.
null
if the available size is too small.
|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |