|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtheque.utils.print.PrintUtils
public final class PrintUtils
This class provide utility to print.
Method Summary | |
---|---|
static int |
getTotalPageForList(int lines,
FontMetrics metrics,
PageFormat pageFormat,
int increment)
Return the necessary number of pages to print a list of lines. |
static void |
printArrayString(Collection<String> list)
Print a list of String . |
static void |
printLineFiles(InputStream stream)
Print each line of the stream. |
static void |
printString(String toPrint)
Print a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void printString(String toPrint)
toPrint
- The String to printpublic static void printArrayString(Collection<String> list)
String
.
list
- The list of String
we want to printpublic static int getTotalPageForList(int lines, FontMetrics metrics, PageFormat pageFormat, int increment)
lines
- The number of linesmetrics
- The FontMetrics
of the componentpageFormat
- The PageFormat in which we want to printincrement
- The space between the lines
public static void printLineFiles(InputStream stream)
stream
- The stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |