Package factOrFiction.print

Examples of factOrFiction.print.PageFrame


  }

  public PageFrame getPrintable(final Deck deck) {
    this.deck = deck;
   
    PageFrame page = new PageFrame(null, 0.8, 0.95);

    FlowDownFrame header = new FlowDownFrame( page, 1, 0.10);
    createHeader(header);
   
    // separator between header and body
View Full Code Here


  }

  public PageFrame getPrintable(final Deck deck) {
    this.deck = deck;
   
    PageFrame page = new PageFrame(null, 0.8, 0.95);
     
      FlowDownFrame header = new FlowDownFrame(page, 1, 0.10);
      createHeader(header);
 
      // separator between header and body
      new FlowDownFrame(page, 1, 0.01);
 
      PrintFrame body = new FlowDownFrame(page, 1, 0.86);
      createBody(body);

      // separator between body and footer
      new FlowDownFrame(page, 1, 0.01);

      PrintFrame footer = new FlowDownFrame(page, 1, 0.02);
      createFooter(footer);
   
      page.setAnnotator(new IAnnotator() {
        public String getAnnotation() {
          return deck.getName();
        }
      });
    return page;
View Full Code Here

      Deck deck = (Deck)editor.getEditorInput().getAdapter(Deck.class);
      if( deck == null)
        return;
     
          try {
            PageFrame page = print.getPrintable(deck);
          PrintPreviewDialog dlg = new PrintPreviewDialog(editor.getSite().getShell(), page);
           
          if( dlg.open() == Window.OK ) {
                PrinterData printerData = dlg.getPrinterData();
                PrintManager.print(printerData, page);
View Full Code Here

TOP

Related Classes of factOrFiction.print.PageFrame

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.