Package org.jfree.layouting.modules.output.graphics

Examples of org.jfree.layouting.modules.output.graphics.QueryPhysicalPageInterceptor


      final PageState state = getPhysicalPageState(page);

      final ReportTargetState targetState = state.getTargetState();
      final GraphicsOutputProcessor outputProcessor = getGraphicsProcessor();
      outputProcessor.setPageCursor(state.getPageCursor());
      final QueryPhysicalPageInterceptor interceptor =
          new QueryPhysicalPageInterceptor(outputProcessor.getPhysicalPage(page));
      outputProcessor.setInterceptor(interceptor);

      final LibLayoutReportTarget target =
          (LibLayoutReportTarget) targetState.restore(outputProcessor);

      LayoutController position = state.getLayoutController();

      // we have the data and we have our position inside the report.
      // lets generate something ...
      while (position.isAdvanceable())
      {
        position = position.advance(target);
        target.commit();

        while (position.isAdvanceable() == false &&
               position.getParent() != null)
        {
          final LayoutController parent = position.getParent();
          position = parent.join(position.getFlowController());
        }

        if (interceptor.isMoreContentNeeded() == false)
        {
          outputProcessor.setInterceptor(null);
          return interceptor.getDrawable();
        }

      }

      outputProcessor.setInterceptor(null);
      return interceptor.getDrawable();
    }
  }
View Full Code Here


      final PageState state = getPhysicalPageState(page);

      final ReportTargetState targetState = state.getTargetState();
      final GraphicsOutputProcessor outputProcessor = getGraphicsProcessor();
      outputProcessor.setPageCursor(state.getPageCursor());
      final QueryPhysicalPageInterceptor interceptor =
          new QueryPhysicalPageInterceptor(outputProcessor.getPhysicalPage(page));
      outputProcessor.setInterceptor(interceptor);

      final LibLayoutReportTarget target =
          (LibLayoutReportTarget) targetState.restore(outputProcessor);

      LayoutController position = state.getLayoutController();

      // we have the data and we have our position inside the report.
      // lets generate something ...
      while (position.isAdvanceable())
      {
        position = position.advance(target);
        target.commit();

        while (position.isAdvanceable() == false &&
               position.getParent() != null)
        {
          final LayoutController parent = position.getParent();
          position = parent.join(position.getFlowController());
        }

        if (interceptor.isMoreContentNeeded() == false)
        {
          outputProcessor.setInterceptor(null);
          return interceptor.getDrawable();
        }

      }

      outputProcessor.setInterceptor(null);
      return interceptor.getDrawable();
    }
  }
View Full Code Here

      final PageState state = getPhysicalPageState(page);

      final ReportTargetState targetState = state.getTargetState();
      final GraphicsOutputProcessor outputProcessor = getGraphicsProcessor();
      outputProcessor.setPageCursor(state.getPageCursor());
      final QueryPhysicalPageInterceptor interceptor =
          new QueryPhysicalPageInterceptor(outputProcessor.getPhysicalPage(page));
      outputProcessor.setInterceptor(interceptor);

      final LibLayoutReportTarget target =
          (LibLayoutReportTarget) targetState.restore(outputProcessor);

      LayoutController position = state.getLayoutController();

      // we have the data and we have our position inside the report.
      // lets generate something ...
      while (position.isAdvanceable())
      {
        position = position.advance(target);
        target.commit();

        while (position.isAdvanceable() == false &&
               position.getParent() != null)
        {
          final LayoutController parent = position.getParent();
          position = parent.join(position.getFlowController());
        }

        if (interceptor.isMoreContentNeeded() == false)
        {
          outputProcessor.setInterceptor(null);
          return interceptor.getDrawable();
        }

      }

      outputProcessor.setInterceptor(null);
      return interceptor.getDrawable();
    }
  }
View Full Code Here

TOP

Related Classes of org.jfree.layouting.modules.output.graphics.QueryPhysicalPageInterceptor

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.