Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ikayaki.util.ComponentPrinter Class Reference

List of all members.

Public Member Functions

 ComponentPrinter (Component componentToBePrinted)
void print (String jobName)
int print (Graphics g, PageFormat pageFormat, int pageIndex)

Static Public Member Functions

static void printComponent (Component c)
static void printComponent (Component c, String jobName)
static void disableDoubleBuffering (Component c)
static void enableDoubleBuffering (Component c)

Private Attributes

Component componentToBePrinted
final int plotHeight = 200

Detailed Description

Offers methods to print Components (only for PrintPanel actually)

Author:
Aki Korpua

Definition at line 37 of file ComponentPrinter.java.


Constructor & Destructor Documentation

ikayaki.util.ComponentPrinter.ComponentPrinter Component  componentToBePrinted  ) 
 

Creates new printable "component"

Parameters:
componentToBePrinted Component

Definition at line 55 of file ComponentPrinter.java.

Referenced by ikayaki.util.ComponentPrinter.printComponent().


Member Function Documentation

static void ikayaki.util.ComponentPrinter.disableDoubleBuffering Component  c  )  [static]
 

Definition at line 134 of file ComponentPrinter.java.

Referenced by ikayaki.util.ComponentPrinter.print().

static void ikayaki.util.ComponentPrinter.enableDoubleBuffering Component  c  )  [static]
 

Definition at line 139 of file ComponentPrinter.java.

Referenced by ikayaki.util.ComponentPrinter.print().

int ikayaki.util.ComponentPrinter.print Graphics  g,
PageFormat  pageFormat,
int  pageIndex
 

Absolutely chaotic printing mechanism. Spilts component in pages and prevents last 400 pixels on last page to split awfully (we only use this for PrintPanel and last 400 pixels are Plots, so DONT use this in any other component printing :)

Parameters:
g Graphics
pageFormat PageFormat
pageIndex int
Returns:
int

Definition at line 108 of file ComponentPrinter.java.

References ikayaki.util.ComponentPrinter.componentToBePrinted, ikayaki.util.ComponentPrinter.disableDoubleBuffering(), ikayaki.util.ComponentPrinter.enableDoubleBuffering(), and ikayaki.util.ComponentPrinter.plotHeight.

Here is the call graph for this function:

void ikayaki.util.ComponentPrinter.print String  jobName  ) 
 

Opens printer dialog and start printing job if we get printer

Definition at line 81 of file ComponentPrinter.java.

static void ikayaki.util.ComponentPrinter.printComponent Component  c,
String  jobName
[static]
 

Static printing command

Parameters:
c Component to be printed (use Only PrintPanel)
jobName name for the printing job

Definition at line 74 of file ComponentPrinter.java.

References ikayaki.util.ComponentPrinter.ComponentPrinter().

Here is the call graph for this function:

static void ikayaki.util.ComponentPrinter.printComponent Component  c  )  [static]
 

Static printing command

Parameters:
c Component to be printed (use Only PrintPanel)

Definition at line 64 of file ComponentPrinter.java.

References ikayaki.util.ComponentPrinter.ComponentPrinter().

Here is the call graph for this function:


Member Data Documentation

Component ikayaki.util.ComponentPrinter.componentToBePrinted [private]
 

Component to be printed

Definition at line 42 of file ComponentPrinter.java.

Referenced by ikayaki.util.ComponentPrinter.print().

final int ikayaki.util.ComponentPrinter.plotHeight = 200 [private]
 

plots height

Definition at line 47 of file ComponentPrinter.java.

Referenced by ikayaki.util.ComponentPrinter.print().


The documentation for this class was generated from the following file:
Generated on Fri May 6 16:01:33 2005 for Squid by  doxygen 1.4.1