Examples of Renderer


Examples of org.jbpm.formapi.server.render.Renderer

        Set<Throwable> errors = new HashSet<Throwable>();
        for (String language : langs) {
            try {
                Translator translator = TranslatorFactory.getInstance().getTranslator(language);
                assertNotNull("translator shouldn't be null", translator);
                Renderer renderer = RendererFactory.getInstance().getRenderer(language);
                assertNotNull("renderer shouldn't be null", renderer);
                URL url = translator.translateForm(form);
                Map<String, Object> inputs = basicInputs();
                Object html = renderer.render(url, inputs);
                assertNotNull("html shouldn't be null", html);
            } catch (TranslatorException e) {
                errors.add(new Exception("translator for language " + language + " failed", e));
            } catch (RendererException e) {
                errors.add(new Exception("renderer for language " + language + " failed", e));
View Full Code Here

Examples of org.jfree.layouting.renderer.Renderer

     * @throws StateException
     */
    public StatefullComponent restore(final LayoutProcess layoutProcess)
            throws StateException
    {
      final Renderer renderer = (Renderer) this.renderer.restore(layoutProcess);
      return new PrintContentGenerator(renderer);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.render.Renderer

        if (newContext != null) {
            CompositeRenderContext compositeRenderContext = (CompositeRenderContext) newContext;
            compositeRenderContext.addListener(contextListener);
            for( IRenderContext context : compositeRenderContext.getContexts() ) {
                if (findExecutor(context) == null) {
                    Renderer renderer = getRendererCreator(context).getRenderer((RenderContext) context);
                    getRenderExecutors().add(createRenderExecutor(renderer));
                }
            }
            super.setContext(newContext);
        }
View Full Code Here

Examples of org.olat.core.gui.render.Renderer

    String pagePath = vc.getPage();
    Context ctx = vc.getContext();
   
    // the component id of the urlbuilder  will be overwritten by the recursive render call for
    // subcomponents (see Renderer)
    Renderer fr = Renderer.getInstance(vc, translator, ubu, renderResult, renderer.getGlobalSettings());
    VelocityRenderDecorator vrdec = new VelocityRenderDecorator(fr, vc);     
    ctx.put("r", vrdec);
    VelocityHelper vh = VelocityHelper.getInstance();
    String mm = vh.mergeContent(pagePath, ctx, theme);
   
View Full Code Here

Examples of org.olat.core.gui.render.Renderer

            if (interceptHandler != null) {
              InterceptHandlerInstance dhri = interceptHandler.createInterceptHandlerInstance();
              renderResult.setInterceptHandlerRenderInstance(dhri);
            }
           
            Renderer fr = Renderer.getInstance(top, top.getTranslator(), ubu, renderResult, gsettings);
            long rstart = 0;
            if (isDebugLog) {
              rstart = System.currentTimeMillis();
            }
            result = fr.render(top).toString();
            if (isDebugLog) {
              long rstop = System.currentTimeMillis();
              long diff = rstop - rstart;
              debugMsg.append("render:").append(diff).append(LOG_SEPARATOR);
            }
View Full Code Here

Examples of org.olat.core.gui.render.Renderer

                if (interceptHandler != null) {
                  InterceptHandlerInstance dhri = interceptHandler.createInterceptHandlerInstance();
                  renderResult.setInterceptHandlerRenderInstance(dhri);
                }

                Renderer fr = Renderer.getInstance(wrapper,null, ubu, renderResult, gsettings);

                jsol = new StringOutput();
                fr.renderBodyOnLoadJSFunctionCall(jsol,toRender);

                hdr = new StringOutput();
                fr.renderHeaderIncludes(hdr, toRender);

                long pstart = 0;
                if (isDebugLog) {
                  pstart = System.currentTimeMillis();
                }
                result = fr.render(toRender).toString();
                if (isDebugLog) {
                  long pstop = System.currentTimeMillis();
                  debugMsg.append(toRender.getComponentName()).append(":").append((pstop - pstart));
                  if (i < dCnt - 1)
                    debugMsg.append(",");
View Full Code Here

Examples of org.olat.core.gui.render.Renderer

        public ComponentRenderer getComponentRendererFor(Component source) {
          return null;
        }
        public boolean isIdDivsForced() { return false; }
      };
      Renderer renderer = Renderer.getInstance(container, pageTranslator, new EmptyURLBuilder(), null, globalSettings);
      // Add render decorator with helper methods
      VelocityRenderDecorator vrdec = new VelocityRenderDecorator(renderer, container);     
      ctx.put("r", vrdec);
      // Add empty static dir url - only used to not generate error messages
      ctx.put("chelpStaticDirUrl", "");
View Full Code Here

Examples of org.openscience.jchempaint.renderer.Renderer

            boolean isViewer, JChemPaintAbstractApplet applet)
            throws IOException {
        // setup the Renderer and the controller 'model'

        if (this.renderer == null) {
            this.renderer = new Renderer(makeGenerators(chemModel),
                    makeReactionGenerators(), new AWTFontManager());
            // any specific rendering settings defaults that overwrite user settings should go here
            //this.renderer.getRenderer2DModel().setShowEndCarbons(false);
            //this.renderer.getRenderer2DModel().setShowAromaticity(false);
        }
View Full Code Here

Examples of org.opentripplanner.analyst.request.Renderer

        // Optional Analyst Modules.
        if (params.analyst) {
            tileCache = new TileCache(graphService);
            sptCache = new SPTCache(sptServiceFactory, graphService);
            renderer = new Renderer(tileCache, sptCache);
            sampleGridRenderer = new SampleGridRenderer(graphService, sptServiceFactory);
            isoChroneSPTRenderer = new IsoChroneSPTRendererAccSampling(graphService, sptServiceFactory, sampleGridRenderer);
            surfaceCache = new SurfaceCache(30);
            pointSetCache = new DiskBackedPointSetCache(100, new File(params.pointSetDirectory));
        }
View Full Code Here

Examples of org.opoo.press.Renderer

  @Override
  public void render(Map<String, Object> rootMap) {
    //comment this, call convert() separately.
    //convert();
   
    Renderer renderer = getRenderer();
    boolean isContentRenderRequired = renderer.isRenderRequired(getContent());
    boolean isValidLayout = renderer.isValidLayout(getLayout());
   
    if(!isValidLayout && !isContentRenderRequired){
      log.debug("Layout is nil and content is plain text, skip render file: "
          + getSource().getSourceEntry().getFile());
      //output = content;
      //do nothing
      return;
    }
   
    rootMap = new HashMap<String,Object>(rootMap);
    mergeRootMap(rootMap);
    //if content is plain text
    if(!isContentRenderRequired){
      rootMap.put("content", getContent());
    }
   
    String name = isContentRenderRequired ? renderer.prepareWorkingTemplate(getLayout(), isValidLayout,
        getContent(), isContentRenderRequired,
        getSource().getSourceEntry())
        : renderer.getLayoutWorkingTemplate(getLayout());
    String output = renderer.render(name, rootMap);
//    String output = getRenderer().render(getLayout(), getContent(), getSource().getSourceEntry(), rootMap);
    setContent(output);
  }
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.