|
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
li.netcat.print.util.SplitPrint
The SplitPrint is used to divide a given Print into two or more columns.
| Constructor Summary | |
SplitPrint(Print print)
Constructs a new SplitPrint that divides the given Print in two columns and uses a
default gap of 10 pixel. |
|
SplitPrint(Print print,
int hgap)
Constructs a new SplitPrint that divides the given Print in two columns
using the given gap. |
|
SplitPrint(Print print,
int hgap,
int nrOfColumns)
Constructs a new SplitPrint that divides the given Print into the given
number of columns using the given gap. |
|
| Method Summary | |
int |
getHGap()
Returns the gap that is placed between the columns. |
int |
getNrOfColumns()
Returns the number of columns of that Print. |
java.awt.Dimension |
getPreferredSize(java.awt.Graphics g)
Returns the preferred size of the Print. |
PrintIterator |
getPrintIterator()
Factory method, that produces a PrintIerator. |
void |
setHGap(int hgap)
Sets the gap that is placed between the columns. |
void |
setNrOfColumns(int nrOfColumns)
Sets the number of columns of that Print. |
| Methods inherited from class li.netcat.print.util.WrappedPrint |
getPrint, setPrint |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SplitPrint(Print print)
SplitPrint that divides the given Print in two columns and uses a
default gap of 10 pixel.
print - The wrapped print, not null.
public SplitPrint(Print print,
int hgap)
SplitPrint that divides the given Print in two columns
using the given gap.
print - The wrapped print, not null.hgap - The gap to be used in pixel.
public SplitPrint(Print print,
int hgap,
int nrOfColumns)
SplitPrint that divides the given Print into the given
number of columns using the given gap.
print - The wrapped print, not null.hgap - The gap to be used in pixel.nrOfColumns - The number of columns, must be >= 1.| Method Detail |
public int getNrOfColumns()
Print.
Print.public void setNrOfColumns(int nrOfColumns)
Print.
nrOfColumns - The number of columns, must be >= 1.public int getHGap()
public void setHGap(int hgap)
hgap - The gap that is placed between the columns.public java.awt.Dimension getPreferredSize(java.awt.Graphics g)
PrintPrint.
getPreferredSize in interface PrintgetPreferredSize in class WrappedPrintpublic PrintIterator getPrintIterator()
PrintPrintIerator. The PrintIterator is used like an enumeration to generate all Prints.
getPrintIterator in interface PrintgetPrintIterator in class WrappedPrint
|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||