Package com.apple.mrj.internal.awt

Examples of com.apple.mrj.internal.awt.PrintingPort


   * Prints the components of a specified Container.
   */
  public static void printContainer(Container container, int printingPort, int originX, int originY, Object notifier) {
    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();
View Full Code Here


   * Prints the components of a specified Container.
   */
  public static void printContainer(Container container, int printingPort, int originX, int originY, Object notifier) {
    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();
View Full Code Here

TOP

Related Classes of com.apple.mrj.internal.awt.PrintingPort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.