Examples of LayoutProcess


Examples of org.jfree.layouting.LayoutProcess

  {
    final GraphicsOutputProcessor gop = new GraphicsOutputProcessor
        (LibLayoutBoot.getInstance().getGlobalConfig());

    // Stage one: Global values ..
    final LayoutProcess dlpPrep1 = new ChainingLayoutProcess(new DefaultLayoutProcess(gop));
    executeFirst(dlpPrep1);

    // Stage two: Pagination
    final LayoutProcess dlpPrep2 =
        new ChainingLayoutProcess(new DefaultLayoutProcess(gop));
    final LayoutProcessState[] layoutProcessStates = executeSecond(dlpPrep2);

//      // Stage Three: Content generation ..
//    for (int i = 0; i < layoutProcessStates.length; i++)
View Full Code Here

Examples of org.jfree.layouting.LayoutProcess

    final long startTime = System.currentTimeMillis();

    final StreamingHtmlOutputProcessor outputProcessor =
        new StreamingHtmlOutputProcessor(LibLayoutBoot.getInstance().getGlobalConfig());
    final LayoutProcess process = new DefaultLayoutProcess(outputProcessor);


    final SwingDocumentImport imprt = new SwingDocumentImport();
    imprt.parseDocument((DefaultStyledDocument) pane.getDocument(), process.getInputFeed());

    final long endTime = System.currentTimeMillis();

    System.out.println("Done!: " + (endTime - startTime));
  }
View Full Code Here

Examples of org.jfree.layouting.LayoutProcess

    if (styleValue instanceof String)
    {
      final String styleText = (String) styleValue;
      try
      {
        final LayoutProcess layoutProcess = getLayoutProcess();
        final byte[] bytes = styleText.getBytes("UTF-8");
        final ResourceKey baseKey =
                DocumentContextUtility.getBaseResource
                        (layoutProcess.getDocumentContext());
        final ResourceManager manager = layoutProcess.getResourceManager();
        final ResourceKey key = manager.createKey(bytes);
        final Resource resource = manager.create(key, baseKey, StyleRule.class);

        final CSSDeclarationRule rule =
                (CSSDeclarationRule) resource.getResource();
View Full Code Here

Examples of org.jfree.layouting.LayoutProcess

    if (pageContext == null)
    {
      throw new NullPointerException();
    }

    final LayoutProcess layoutProcess = getLayoutProcess();
    final OutputProcessor outputProcessor = layoutProcess.getOutputProcessor();
    outputProcessor.processDocumentMetaData(layoutProcess.getDocumentContext());

    this.pageContext = new RenderPageContext(layoutProcess, pageContext);
    // create the initial pagegrid.
    final PageGrid pageGrid =
        this.pageContext.createPageGrid(this.layoutProcess.getOutputMetaData());
View Full Code Here

Examples of org.jfree.layouting.LayoutProcess

    if (pageContext == null)
    {
      throw new NullPointerException();
    }

    final LayoutProcess layoutProcess = getLayoutProcess();
    final OutputProcessor outputProcessor = layoutProcess.getOutputProcessor();
    outputProcessor.processDocumentMetaData(layoutProcess.getDocumentContext());

    this.pageContext = new RenderPageContext(layoutProcess, pageContext);
    // create the initial pagegrid.
    final PageGrid pageGrid =
        this.pageContext.createPageGrid(this.layoutProcess.getOutputMetaData());
View Full Code Here

Examples of org.jfree.layouting.LayoutProcess

    if (styleValue instanceof String)
    {
      final String styleText = (String) styleValue;
      try
      {
        final LayoutProcess layoutProcess = getLayoutProcess();
        final byte[] bytes = styleText.getBytes("UTF-8");
        final ResourceKey baseKey =
                DocumentContextUtility.getBaseResource
                        (layoutProcess.getDocumentContext());
        final ResourceManager manager = layoutProcess.getResourceManager();
        final ResourceKey key = manager.createKey(bytes);
        final Resource resource = manager.create(key, baseKey, StyleRule.class);

        final CSSDeclarationRule rule =
                (CSSDeclarationRule) resource.getResource();
View Full Code Here

Examples of org.jfree.layouting.LayoutProcess

    final long startTime = System.currentTimeMillis();

    final StreamingHtmlOutputProcessor outputProcessor =
        new StreamingHtmlOutputProcessor(LibLayoutBoot.getInstance().getGlobalConfig());
    final LayoutProcess process = new DefaultLayoutProcess(outputProcessor);


    final SwingDocumentImport imprt = new SwingDocumentImport();
    imprt.parseDocument((DefaultStyledDocument) pane.getDocument(), process.getInputFeed());

    final long endTime = System.currentTimeMillis();

    System.out.println("Done!: " + (endTime - startTime));
  }
View Full Code Here

Examples of org.jfree.layouting.LayoutProcess

  {
    final GraphicsOutputProcessor gop = new GraphicsOutputProcessor
        (LibLayoutBoot.getInstance().getGlobalConfig());

    // Stage one: Global values ..
    final LayoutProcess dlpPrep1 = new ChainingLayoutProcess(new DefaultLayoutProcess(gop));
    executeFirst(dlpPrep1);

    // Stage two: Pagination
    final LayoutProcess dlpPrep2 =
        new ChainingLayoutProcess(new DefaultLayoutProcess(gop));
    final LayoutProcessState[] layoutProcessStates = executeSecond(dlpPrep2);

      // Stage Three: Content generation ..
    for (int i = 0; i < layoutProcessStates.length; i++)
View Full Code Here

Examples of org.jfree.layouting.LayoutProcess

    }

    public ReportTarget restore(final OutputProcessor out)
        throws StateException
    {
      final LayoutProcess layoutProcess = this.layoutProcess.restore(out);
      return new LibLayoutReportTarget(reportJob,
          baseResourceKey, resourceManager, layoutProcess, namespaceCollection);
    }
View Full Code Here

Examples of org.jfree.layouting.LayoutProcess

    if (outputProcessor == null)
    {
      throw new IllegalStateException(
              "OutputProcessor is invalid.");
    }
    final LayoutProcess layoutProcess =
        new DefaultLayoutProcess(outputProcessor);
    final ResourceManager resourceManager = job.getReportStructureRoot().getResourceManager();
    final ResourceKey resourceKey = job.getReportStructureRoot().getBaseResource();

    return new LibLayoutReportTarget
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.