Package org.pentaho.reporting.engine.classic.core

Examples of org.pentaho.reporting.engine.classic.core.CustomPageDefinition


    {
      throw new SAXException
          ("page-definition element needs at least one page definition.");
    }

    final CustomPageDefinition pageDefinition = new CustomPageDefinition();

    for (int i = 0; i < pageDefList.size(); i++)
    {
      final PageReadHandler readHandler = (PageReadHandler) pageDefList.get(i);
      pageDefinition.addPageFormat(readHandler.getPageFormat(),
          readHandler.getX(), readHandler.getY());
    }

    final MasterReport report = (MasterReport)
        getRootHandler().getHelperObject(ReportParserUtil.HELPER_OBJ_REPORT_NAME);
View Full Code Here


  }

  public void testSerializeEmpty ()
          throws IOException, ClassNotFoundException
  {
    final CustomPageDefinition cpd = new CustomPageDefinition();

    final ByteArrayOutputStream bo = new ByteArrayOutputStream();
    final ObjectOutputStream out = new ObjectOutputStream(bo);
    out.writeObject(cpd);
    out.close();
View Full Code Here

  }

  public void testSerializeFilled ()
          throws IOException, ClassNotFoundException
  {
    final CustomPageDefinition cpd = new CustomPageDefinition();
    cpd.addPageFormat(new PageFormat(), 0, 0);
    cpd.addPageFormat(new PageFormat(), 0, 400);
    cpd.addPageFormat(new PageFormat(), 400, 0);
    cpd.addPageFormat(new PageFormat(), 400, 400);

    final ByteArrayOutputStream bo = new ByteArrayOutputStream();
    final ObjectOutputStream out = new ObjectOutputStream(bo);
    out.writeObject(cpd);
    out.close();
View Full Code Here

    {
      throw new SAXException
          ("page-definition element needs at least one page definition.");
    }

    final CustomPageDefinition pageDefinition = new CustomPageDefinition();

    for (int i = 0; i < pageDefList.size(); i++)
    {
      final PageReadHandler readHandler = (PageReadHandler) pageDefList.get(i);
      pageDefinition.addPageFormat(readHandler.getPageFormat(),
          readHandler.getX(), readHandler.getY());
    }

    final MasterReport report = (MasterReport)
        getRootHandler().getHelperObject(ReportParserUtil.HELPER_OBJ_REPORT_NAME);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.CustomPageDefinition

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.