Examples of render()


Examples of pdp.scrabble.game.BoardCase.render()

  // Display board cases
  for (int v = 0; v < VERT_DIM; v++) {
      for (int h = 0; h < HORI_DIM; h++) {
    BoardCase boardCase = this.board.getCase(v, h);
    boardCase.render(g, h * CASE_SIZE, v * CASE_SIZE);

    // Color new cases only
    if (boardCase.getState() == NEW) {
        g.setColor(NEW_CASE_COLOR);
        g.fill3DRect(h * CASE_SIZE, v * CASE_SIZE,
 
View Full Code Here

Examples of pdp.scrabble.game.Letter.render()

        g.setColor(Color.BLACK);
        g.drawRect(x1, y1, CASE_SIZE, CASE_SIZE);

        // Draw occupied case
        if (letter != null) {
      letter.render(g, x1, y1);
        }
    }

    y += RACK_HEIGHT;
      }
View Full Code Here

Examples of pivot.wtk.content.TreeViewNodeRenderer.render()

        nodeBounds.x += nodeIndent;
        nodeBounds.width -= nodeIndent;

        // Render the node data
        TreeViewNodeRenderer nodeRenderer = (TreeViewNodeRenderer)treeView.getNodeRenderer();
        nodeRenderer.render(nodeData, treeView, false, false,
            TreeView.NodeCheckState.UNCHECKED, false, false);
        nodeRenderer.setSize(nodeBounds.width, nodeBounds.height);

        // Get the text bounds
        Bounds textBounds = nodeRenderer.getTextBounds();
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.ui.widgets.ProcessToolVaadinRenderable.render()

            try {
              ProcessToolWidget realWidget = getWidget(w, stateConfiguration, ctx, null, widgetEventBus);
              if (realWidget instanceof ProcessToolVaadinRenderable && (!nvl(w.getOptional(), false) || realWidget.hasVisibleData())) {
                processWidgetChildren(w, realWidget, stateConfiguration, ctx, null, widgetEventBus);
                ProcessToolVaadinRenderable vaadinW = (ProcessToolVaadinRenderable) realWidget;
                vl.addComponent(vaadinW.render());
              }
            }
            catch (Exception e) {
              logger.log(Level.SEVERE, e.getMessage(), e);
              vl.addComponent(new Label(getMessage("process.data.widget.exception-occurred")));
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.ui.widgets.ProcessToolVaadinWidget.render()

    }

    Component component;
    ProcessToolVaadinWidget vChild = (ProcessToolVaadinWidget) child;
    try {
      component = vChild.render();
    } catch (Throwable e) {
      logger.log(Level.SEVERE, e.getMessage(), e);
            Panel p = new Panel();
            VerticalLayout vl = new VerticalLayout();
            vl.addComponent(new Label(getMessage("process.data.widget.exception-occurred")));
View Full Code Here

Examples of play.templates.GroovyTemplate.render()

    @Test
    public void testDynamicClassBindingWithNew() {
        final String source = "${ new TemplateClassBindingTest.StaticInnerClass().val }";
        GroovyTemplate groovyTemplate = new GroovyTemplate("dynamic_class_binding_with_new", source);
        new GroovyTemplateCompiler().compile(groovyTemplate);
        assertEquals("42", groovyTemplate.render());
    }

    @Test
    public void testDynamicClassBindingWithInstanceOf() {
        StaticInnerClass staticInnerClass = new StaticInnerClass();
View Full Code Here

Examples of play.templates.Template.render()

            response.status = results.passed ? 200 : 500;
            Template resultTemplate = TemplateLoader.load("TestRunner/results.html");
            Map<String, Object> options = new HashMap<String, Object>();
            options.put("test", test);
            options.put("results", results);
            String result = resultTemplate.render(options);
            File testResults = Play.getFile("test-result/" + test + (results.passed ? ".passed" : ".failed") + ".html");
            IO.writeContent(result, testResults);
            try {
                // Write xml output
                options.remove("out");
View Full Code Here

Examples of pneumaticCraft.api.client.IGuiAnimatedStat.render()

                    for(int i = 0; i < UpgradeRenderHandlerList.instance().upgradeRenderers.size(); i++) {
                        IUpgradeRenderHandler upgradeRenderHandler = UpgradeRenderHandlerList.instance().upgradeRenderers.get(i);
                        if(comHudHandler.upgradeRenderersInserted[i] && GuiKeybindCheckBox.trackedCheckboxes.get("pneumaticHelmet.upgrade." + upgradeRenderHandler.getUpgradeName()).checked) {
                            IGuiAnimatedStat stat = upgradeRenderHandler.getAnimatedStat();
                            if(stat != null) {
                                stat.render(-1, -1, partialTicks);
                            }
                            upgradeRenderHandler.render2D(partialTicks, comHudHandler.helmetPressure > 0F);
                        }
                    }
                }
View Full Code Here

Examples of pneumaticCraft.common.progwidgets.IProgWidget.render()

        GL11.glScalef(scale, scale, 1);
        GL11.glTranslatef(-width / 2, -height / 2, 0);
        //  GL11.glTranslatef(x, y, z);
        //GL11.glRotatef(-90F, 1F, 0, 0);

        widget.render();

        // GL11.glEnable(GL11.GL_LIGHTING);
        GL11.glPopMatrix();
    }
}
View Full Code Here

Examples of pt.webdetails.cdf.dd.api.RenderApi.render()

      // images/button-contact-png)

      new ResourcesApi().getResource( pathParams.getStringParameter( MethodParams.COMMAND, "" ), getResponse() );

    } else {
      String result = renderer
          .render( "", "", filePath, inferScheme, root, absolute, bypassCacheRead, debug, viewId, style, getRequest() );
      getResponse().setContentType( MimeTypes.HTML );

      IOUtils.write( result, getResponse().getOutputStream() );
      getResponse().getOutputStream().flush();
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.