Package java.awt.print

Examples of java.awt.print.PageFormat


    if (showTopBorder == false)
    {
      return 0;
    }
    final PageDefinition pageDefinition = renderContext.getContextRoot().getPageDefinition();
    final PageFormat pageFormat = pageDefinition.getPageFormat(0);
    final PageFormatFactory pageFormatFactory = PageFormatFactory.getInstance();
    return pageFormatFactory.getTopBorder(pageFormat.getPaper());
  }
View Full Code Here


  {
    if (pageDefinition == null)
    {
      return 0;
    }
    final PageFormat pageFormat = pageDefinition.getPageFormat(0);
    final PageFormatFactory pageFormatFactory = PageFormatFactory.getInstance();
    return pageFormatFactory.getTopBorder(pageFormat.getPaper());
  }
View Full Code Here

  {
    if (pageDefinition == null)
    {
      return 0;
    }
    final PageFormat pageFormat = pageDefinition.getPageFormat(0);
    final PageFormatFactory pageFormatFactory = PageFormatFactory.getInstance();
    return pageFormatFactory.getBottomBorder(pageFormat.getPaper());
  }
View Full Code Here

      report.setPageDefinition(definition);
    }
    else
    {
      final PrinterJob pj = PrinterJob.getPrinterJob();
      final PageFormat original = originalPageDef.getPageFormat(0);
      final PageFormat pf = pj.validatePage(pj.pageDialog(original));
      if (PageFormatFactory.isEqual(pf, original))
      {
        return;
      }
View Full Code Here

    }
    if (isShowLeftBorder() == false)
    {
      return 0;
    }
    final PageFormat pageFormat = pageDefinition.getPageFormat(0);
    final PageFormatFactory pageFormatFactory = PageFormatFactory.getInstance();
    return pageFormatFactory.getLeftBorder(pageFormat.getPaper());
  }
View Full Code Here

  {
    if (pageDefinition == null)
    {
      return 0;
    }
    final PageFormat pageFormat = pageDefinition.getPageFormat(0);
    final PageFormatFactory pageFormatFactory = PageFormatFactory.getInstance();
    return pageFormatFactory.getRightBorder(pageFormat.getPaper());
  }
View Full Code Here

  protected void setUp() throws Exception
  {
    ClassicEngineBoot.getInstance().start();
    outputProcessorMetaData = new DebugOutputProcessorMetaData();
    pageGrid = new DefaultPageGrid(new SimplePageDefinition(new PageFormat()));
  }
View Full Code Here

  }

  public void testBigBadCrash() throws Exception
  {
    final MasterReport report = new MasterReport();
    report.setPageDefinition(new SimplePageDefinition(new PageFormat()));

    final ReportHeader header = report.getReportHeader();

    final Band b = new Band ();
    b.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, "row");
View Full Code Here

  }

  public void testLayout() throws ResourceException, ContentProcessingException, ReportProcessingException
  {
    final MasterReport basereport = new MasterReport();
    basereport.setPageDefinition(new SimplePageDefinition(new PageFormat()));


    final URL target = LayoutTest.class.getResource("layouting.xml");
    final ResourceManager rm = new ResourceManager();
    rm.registerDefaults();
View Full Code Here

  }

  public void testPaddingFromFile() throws Exception
  {
    final MasterReport basereport = new MasterReport();
    basereport.setPageDefinition(new SimplePageDefinition(new PageFormat()));

    final URL target = LayoutTest.class.getResource("padding-test.xml");
    final ResourceManager rm = new ResourceManager();
    rm.registerDefaults();
    final Resource directly = rm.createDirectly(target, MasterReport.class);
View Full Code Here

TOP

Related Classes of java.awt.print.PageFormat

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.