|
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.GapPrint
This Print
can be used to add an additional gap e.g. to a GridPrint
.
Constructor Summary | |
GapPrint()
Constructs a new GapPrint with a default gap of 5 pixel. |
|
GapPrint(int gap)
Constructs a new GapPrint with the given gap in pixel. |
Method Summary | |
int |
getGap()
Returns the gap of this Print in pixel. |
java.awt.Dimension |
getPreferredSize(java.awt.Graphics g)
Returns the preferred size of the Print . |
PrintIterator |
getPrintIterator()
Factory method, that produces a PrintIerator . |
void |
setGap(int gap)
Sets the gap of this Print in pixel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GapPrint()
GapPrint
with a default gap of 5 pixel.
public GapPrint(int gap)
GapPrint
with the given gap in pixel.
gap
- The gap of this Print
in pixel.Method Detail |
public int getGap()
Print
in pixel.
Print
in pixel.public void setGap(int gap)
Print
in pixel.
gap
- The gap of this Print
in pixel.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 |