Package org.jfree.layouting

Examples of org.jfree.layouting.DefaultLayoutProcess$DefaultLayoutProcessState


  {
    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


    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

   // XhtmlDocument doc = module.createDocument(url.openStream(), url, url.toExternalForm(), "text/html");

    final long startTime = System.currentTimeMillis();
    for (int i = 0; i < 10; i++)
    {
      final DefaultLayoutProcess process = new DefaultLayoutProcess
                  (new StreamingHtmlOutputProcessor
                      (LibLayoutBoot.getInstance().getGlobalConfig()));
      final XhtmlInputDriver idrDriver = new XhtmlInputDriver(process.getInputFeed());
     // idrDriver.processDomTree(doc.getDocument());
    }
    final long endTime = System.currentTimeMillis();

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

  public static void main(final String[] args) throws InputFeedException
  {
    final LibLayoutBoot instance = LibLayoutBoot.getInstance();
    instance.start();
    final GraphicsOutputProcessor op = new GraphicsOutputProcessor(instance.getGlobalConfig());
    final DefaultLayoutProcess dlp = new DefaultLayoutProcess(op);
    final InputFeed inputFeed = dlp.getInputFeed();
    inputFeed.startDocument();
      inputFeed.startElement(NAMESPACE, "body");
      inputFeed.addContent(" ");
        inputFeed.startElement(NAMESPACE, "span");
        inputFeed.addContent(" ");
View Full Code Here

  public static void main(final String[] args) throws InputFeedException
  {
    final LibLayoutBoot instance = LibLayoutBoot.getInstance();
    instance.start();
    final GraphicsOutputProcessor op = new GraphicsOutputProcessor(instance.getGlobalConfig());
    final DefaultLayoutProcess dlp = new DefaultLayoutProcess(op);
    final InputFeed inputFeed = dlp.getInputFeed();
    inputFeed.startDocument();
      inputFeed.startElement(NAMESPACE, "body");
      inputFeed.addContent(" ");
        inputFeed.startElement(NAMESPACE, "span");
        inputFeed.addContent(" ");
View Full Code Here

   // XhtmlDocument doc = module.createDocument(url.openStream(), url, url.toExternalForm(), "text/html");

    final long startTime = System.currentTimeMillis();
    for (int i = 0; i < 10; i++)
    {
      final DefaultLayoutProcess process = new DefaultLayoutProcess
                  (new StreamingHtmlOutputProcessor
                      (LibLayoutBoot.getInstance().getGlobalConfig()));
      final XhtmlInputDriver idrDriver = new XhtmlInputDriver(process.getInputFeed());
     // idrDriver.processDomTree(doc.getDocument());
    }
    final long endTime = System.currentTimeMillis();

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

    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

    fontSpecification.setFontFamily("Arial");
    fontSpecification.setFontSize(12);

    final FlowHtmlOutputProcessor out =
        new FlowHtmlOutputProcessor(LibLayoutBoot.getInstance().getGlobalConfig());
    final DefaultLayoutProcess layoutProcess = new DefaultLayoutProcess(out);
    TestRenderableTextFactory tr = new TestRenderableTextFactory(layoutProcess);


//    int[] text = new int[]{ ' ', 'A',' ', 'B',' '};
    int[] text = new int[]{ '1'};
View Full Code Here

  {
    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

    {
      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
            (job, resourceKey, resourceManager, layoutProcess);
View Full Code Here

TOP

Related Classes of org.jfree.layouting.DefaultLayoutProcess$DefaultLayoutProcessState

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.