ReportCat 1.1

li.netcat.print.util.text
Interface LineBreaker


public interface LineBreaker

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.

Author:
Arthur Marxer

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

hasNext

public boolean hasNext()
Returns true, if this iterator has more text to break.


getNextBlock

public TextBlock getNextBlock(java.awt.Graphics g,
                              int width,
                              int height,
                              boolean last)
Returns the next text block.

Parameters:
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.
Returns:
The next text block, or null if the available size is too small.

ReportCat 1.1

Copyright © 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation