Back to index

lightning-sunbird  0.9+nobinonly
Static Public Member Functions
netscape.oji.AWTUtils Class Reference

List of all members.

Static Public Member Functions

static void printContainer (Container container, int printingPort, int originX, int originY, Object notifier)
 Prints the components of a specified Container.
static void printContainer (Container container, int printingPort, int originX, int originY, Object notifier)
 Prints the components of a specified Container.

Detailed Description

Definition at line 50 of file AWTUtils.java.


Member Function Documentation

static void netscape.oji.AWTUtils.printContainer ( Container  container,
int  printingPort,
int  originX,
int  originY,
Object  notifier 
) [inline, static]

Prints the components of a specified Container.

Definition at line 54 of file AWTUtils.java.

                                                                                                                           {
              try {
                     // obtain a graphics object to draw with.
                     PrintingPort printer = new PrintingPort(printingPort, originX, originY);
                     Graphics graphics = printer.getGraphics(container);

                     // print the specified container.
                     container.printAll(graphics);
                     
                     graphics.dispose();
                     printer.dispose();
              } finally {
                     // if caller is waiting for this to complete, then notify.
                     if (notifier != null) {
                            synchronized(notifier) {
                                   notifier.notifyAll();
                            }
                     }
              }
       }

Here is the call graph for this function:

static void netscape.oji.AWTUtils.printContainer ( Container  container,
int  printingPort,
int  originX,
int  originY,
Object  notifier 
) [inline, static]

Prints the components of a specified Container.

Definition at line 55 of file AWTUtils.java.

                                                                                                                           {
              try {
                     // obtain a graphics object to draw with.
                     PrintingPort printer = new PrintingPort(printingPort, originX, originY);
                     Graphics graphics = printer.getGraphics(container);

                     // print the specified container.
                     container.printAll(graphics);
                     
                     graphics.dispose();
                     printer.dispose();
              } finally {
                     // if caller is waiting for this to complete, then notify.
                     if (notifier != null) {
                            synchronized(notifier) {
                                   notifier.notifyAll();
                            }
                     }
              }
       }

Here is the call graph for this function:


The documentation for this class was generated from the following files: