Package org.jfree.resourceloader

Examples of org.jfree.resourceloader.ResourceManager


      throw new IllegalStateException(
              "OutputProcessor is invalid.");
    }
    final LayoutProcess layoutProcess =
            new ChainingLayoutProcess(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


  public static ResourceManager getResourceManager(DocumentContext context)
  {
    final Object o = context.getMetaAttribute(DocumentContext.RESOURCE_MANAGER_ATTR);
    if (o instanceof ResourceManager == false)
    {
      ResourceManager value = new ResourceManager();
      value.registerDefaults();
      context.setMetaAttribute(DocumentContext.RESOURCE_MANAGER_ATTR, value);
      return value;
    }
    return (ResourceManager) o;
  }
View Full Code Here

    Log.debug ("---------------------------------------------------------");
    final File defaultStyleURL = new File
            ("/home/src/jfreereport/head/liblayout/resource/pages.css");

    final ResourceManager manager = new ResourceManager();
    manager.registerDefaults();
    Resource res = manager.createDirectly(defaultStyleURL, StyleSheet.class);
    StyleSheet s = (StyleSheet) res.getResource();
    Log.debug ("S");
  }
View Full Code Here

    return instance;
  }

  private EncodingRegistry()
  {
    this.manager = new ResourceManager();
    this.manager.registerFactoryCache();
    this.manager.registerDataCache();
    this.manager.registerDefaultLoaders();
    this.manager.registerFactory(new EncodingFactory());
    this.manager.registerFactory(new PropertiesResourceFactory());
View Full Code Here

  public static void main (String[] args)
          throws IOException, CSSParserInstantiationException
  {
    final String selector = ".bordered";

    final ResourceManager resourceManager= new ResourceManager();
    resourceManager.registerDefaults();

    final Parser parser = CSSParserFactory.getInstance().createCSSParser();
    final StyleSheetHandler handler = new StyleSheetHandler();
    handler.init (resourceManager, null, 0, StyleKeyRegistry.getRegistry(), null);
    parser.setDocumentHandler(handler);
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

      try
      {
        final ReportContext reportContext = runtime.getReportContext();
        final ReportStructureRoot root = reportContext.getReportStructureRoot();
        final ResourceKey baseResource = root.getBaseResource();
        final ResourceManager resourceManager = root.getResourceManager();

        final byte[] bytes = styleText.getBytes("UTF-8");
        final ResourceKey key = resourceManager.createKey(bytes);
        final Resource resource = resourceManager.create
            (key, baseResource, StyleRule.class);

        final CSSDeclarationRule parsedRule =
            (CSSDeclarationRule) resource.getResource();
        mergeDeclarationRule(targetRule, parsedRule);
View Full Code Here

      throw new IllegalStateException(
              "OutputProcessor is invalid.");
    }
    final LayoutProcess layoutProcess =
            new ChainingLayoutProcess(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

    this.baseResource = baseResource;
    this.reportJob = reportJob;

    if (resourceManager == null)
    {
      this.resourceManager = new ResourceManager();
      this.resourceManager.registerDefaults();
    }
    else
    {
      this.resourceManager = resourceManager;
View Full Code Here

    {
      throw new IllegalStateException("OutputProcessor is invalid.");
    }
    final LayoutProcess layoutProcess =
        new ChainingLayoutProcess(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.resourceloader.ResourceManager

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.