|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectli.netcat.print.util.WrappedPrint
Abstract implementation of a Print
that wraps another Print
.
Constructor Summary | |
WrappedPrint(Print print)
Constructs a new WrappedPrint using the given Print as delegate. |
Method Summary | |
java.awt.Dimension |
getPreferredSize(java.awt.Graphics g)
Returns the preferred size of the Print . |
Print |
getPrint()
Returns the delegate. |
PrintIterator |
getPrintIterator()
Factory method, that produces a PrintIerator . |
void |
setPrint(Print print)
Sets the delegate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WrappedPrint(Print print)
WrappedPrint
using the given Print
as delegate.
print
- The delegate, must not be null
.Method Detail |
public Print getPrint()
public void setPrint(Print print)
print
- The delegate, must not be null
.public java.awt.Dimension getPreferredSize(java.awt.Graphics g)
Print
Print
.
getPreferredSize
in interface Print
g
- The relevant Graphics
object. It can be used to calculate the widths of strings.
Print
.public PrintIterator getPrintIterator()
Print
PrintIerator
. The PrintIterator
is used like an enumeration to generate all Print
s.
getPrintIterator
in interface Print
PrintIterator
that is able to iterate over the Print
.
|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |