|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectikayaki.util.ComponentPrinter
public class ComponentPrinter
Offers methods to print Components (only for PrintPanel actually)
Field Summary | |
---|---|
private Component |
componentToBePrinted
Component to be printed |
private int |
plotHeight
plots height |
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
---|---|
ComponentPrinter(Component componentToBePrinted)
Creates new printable "component" |
Method Summary | |
---|---|
static void |
disableDoubleBuffering(Component c)
|
static void |
enableDoubleBuffering(Component c)
|
int |
print(Graphics g,
PageFormat pageFormat,
int pageIndex)
Absolutely chaotic printing mechanism. |
void |
print(String jobName)
Opens printer dialog and start printing job if we get printer |
static void |
printComponent(Component c)
Static printing command |
static void |
printComponent(Component c,
String jobName)
Static printing command |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Component componentToBePrinted
private final int plotHeight
Constructor Detail |
---|
public ComponentPrinter(Component componentToBePrinted)
componentToBePrinted
- ComponentMethod Detail |
---|
public static void printComponent(Component c)
c
- Component to be printed (use Only PrintPanel)public static void printComponent(Component c, String jobName)
c
- Component to be printed (use Only PrintPanel)jobName
- name for the printing jobpublic void print(String jobName)
public int print(Graphics g, PageFormat pageFormat, int pageIndex)
print
in interface Printable
g
- GraphicspageFormat
- PageFormatpageIndex
- int
public static void disableDoubleBuffering(Component c)
public static void enableDoubleBuffering(Component c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |