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

Examples of org.pentaho.reporting.engine.classic.core.testsupport.font.LocalFontRegistry.initialize()


    assertEquals(17, elementsByNodeType.length); // quick and easy way to see that all elements are there.

    // debugPrintText(elementsByNodeType);

    final LocalFontRegistry registry = new LocalFontRegistry();
    registry.initialize();

    final GraphicsOutputProcessorMetaData metaData = new GraphicsOutputProcessorMetaData(new DefaultFontStorage(registry));
    metaData.initialize(report.getConfiguration());

    final LogicalPageDrawable drawable = new LogicalPageDrawable();
View Full Code Here


  {
    final MemoryByteArrayOutputStream outputStream = new MemoryByteArrayOutputStream();
    try
    {
      final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
      localFontRegistry.initialize();
      final XmlTableOutputProcessor outputProcessor =
          new XmlTableOutputProcessor(outputStream, new XmlTableOutputProcessorMetaData(
              XmlTableOutputProcessorMetaData.PAGINATION_FULL, localFontRegistry));
      final ReportProcessor streamReportProcessor = new PageableReportProcessor(report, outputProcessor);
      try
View Full Code Here

  }

  public static LogicalPageBox layoutPage(final MasterReport report, final int page) throws Exception
  {
    final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new SinglePageFlowSelector(page, false));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
View Full Code Here

  }

  public static LogicalPageBox layoutPageStrict(final MasterReport report, final int maxPage, final int page) throws Exception
  {
    final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new StrictMultiPageFlowSelector(false, maxPage, page));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
View Full Code Here

  }

  public static List<LogicalPageBox> layoutPages(final MasterReport report, final int... page) throws Exception
  {
    final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new MultiPageFlowSelector(false, page));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
View Full Code Here

  public static List<LogicalPageBox> layoutPagesStrict(final MasterReport report,
                                                       final int maxPage, final int... page) throws Exception
  {
    final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new StrictMultiPageFlowSelector(false, maxPage, page));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
View Full Code Here

  }

  public static LogicalPageBox layoutTablePage(final MasterReport report, final int page) throws Exception
  {
    final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
    localFontRegistry.initialize();

    final InterceptingXmlTableOutputProcessor outputProcessor = new InterceptingXmlTableOutputProcessor
        (new NullOutputStream(), new XmlTableOutputProcessorMetaData
            (XmlTableOutputProcessorMetaData.PAGINATION_MANUAL, localFontRegistry));
    outputProcessor.setFlowSelector(new SinglePageFlowSelector(page, true));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.