|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The PrintIterator is an object similar to the java Enumeration. It's hasNext() method
reports whether there are more Painters available. If this method returns true, it is
allowed to call the getNext(...) method, which returns a Painter that is able to paint
the next part of the Print.
In general, it's not possible to reuse a PrintIterator. If the PrintIterator is consumed,
i.e. the hasNext() method returns false, it's worth nothing any more and it's reference
should be released. A new and "full" PrintIterator can be produced by the Print over and over
again.
| Method Summary | |
Painter |
getNext(java.awt.Graphics g,
int width,
int height)
Returns a Painter that is capable of painting the next part of
the Print. |
boolean |
hasNext()
Reports, whether there is at least one more Painter available. |
| Method Detail |
public boolean hasNext()
Painter available. If this method returns false,
a call to getNext(...) is illegal.
true if there is at least one more Painter available.
public Painter getNext(java.awt.Graphics g,
int width,
int height)
Painter that is capable of painting the next part of
the Print. The size of the returned Painter must not
be larger than the given size. If the given size is too small to paint anything,
this method returns null.
g - The relevant Graphics object.width - The maximum available width that the Painter might use. This parameter is always > 0.height - The maximum available height that the Painter might use. This parameter is always > 0.
Painter that is capable of painting the next part of the Print.
|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||