Examples of translate()


Examples of org.teiid.query.sql.visitor.CriteriaTranslatorVisitor.translate()

    }

    // create a clone of user's criteria that is then translated
    Criteria userClone = (Criteria) userCriteria.clone();

    userClone = translateVisitor.translate(userClone);

    // translated criteria
    ((TranslatableProcedureContainer)userCmd).addImplicitParameters(translateVisitor.getImplicitParams());
   
    translatedCriteria = rewriteCriteria(userClone);
View Full Code Here

Examples of org.teiid.translator.jdbc.EscapeSyntaxModifier.translate()

    }

  private void helpTest(Function func, String expected) {
        EscapeSyntaxModifier mod = new EscapeSyntaxModifier();

        List parts = mod.translate(func);
        StringBuffer sb = new StringBuffer();
        for (Object object : parts) {
      sb.append(object);
    }
        assertEquals(expected, sb.toString());
View Full Code Here

Examples of org.teiid.translator.jdbc.oracle.Log10FunctionModifier.translate()

    public void testModifier() {
        Literal arg = LANG_FACTORY.createLiteral(new Double(5.2), Double.class);
        Function func = LANG_FACTORY.createFunction("log10", Arrays.asList(arg), Double.class); //$NON-NLS-1$
       
        Log10FunctionModifier modifier = new Log10FunctionModifier(LANG_FACTORY);
        modifier.translate(func);
       
        assertEquals("log", func.getName()); //$NON-NLS-1$
        assertEquals(Double.class, func.getType());
       
        List<Expression> outArgs = func.getParameters();
View Full Code Here

Examples of org.zanata.service.TranslationService.translate()

        TransUnitUpdateRequest translateReq =
                new TransUnitUpdateRequest(transUnitId, newContents,
                        ContentState.Approved, 1);

        List<TranslationResult> result =
                transService.translate(new LocaleId("de"),
                        Lists.newArrayList(translateReq));

        assertThat(result.get(0).isTranslationSuccessful(), is(true));
        assertThat(result.get(0).getBaseVersionNum(), is(1));
        assertThat(result.get(0).getBaseContentState(),
View Full Code Here

Examples of pivot.wtk.Bounds.translate()

            if (shape.isVisible()) {
                int x = shape.getX();
                int y = shape.getY();

                Bounds transformedBounds = shape.getTransformedBounds();
                transformedBounds = transformedBounds.translate(x, y);

                if (transformedBounds.intersects(clipBounds)) {
                    Graphics2D shapeGraphics = (Graphics2D)graphics.create();
                    shapeGraphics.translate(x, y);
                    shapeGraphics.transform(shape.getTransforms().getAffineTransform());
View Full Code Here

Examples of pivot.wtkx.Translator.translate()

       Translator translator = new Translator();

       InputStream inputStream = JavaTranslatorTest.class.getResourceAsStream
           ("java_translator_test.wtkx");

       JavaFileObject javaFileObject = translator.translate(inputStream,
           "pivot.wtkx.test.java_translator_test_WTKX");

       System.out.println(javaFileObject.getCharContent(true));

       ArrayList<JavaFileObject> javaFileObjects = new ArrayList<JavaFileObject>(1);
View Full Code Here

Examples of ponkOut.graphics.WorldText.translate()

    scrollPos = 0.0f;

    WorldText ponkOutText = new WorldText("PonkOut", 15.0f, new Color(0.8f, 0.8f, 1.0f, 0.8f), new Vector3f(0.0f,
        0.0f, -150.0f), -45.0f, 0.0f, 0.0f, goManager);
    ponkOutText.translate(-0.5f * ponkOutText.getWidth(), 0.0f, 0.0f);

    textPosY = -40.0f;
    textPosZ = -130.0f;

    newCaption("PROGRAMMING");
View Full Code Here

Examples of processing.core.PApplet.translate()

   
    for (int i = 0; i < triangles.length; i++) {
      Triangle t = triangles[i];
      r.pushMatrix();
      Vector3D centerPoint = t.getCenterPointLocal();
      r.translate(centerPoint.x, centerPoint.y, centerPoint.z);
      r.scale(-2,-2,-2);
     
      r.line(0, 0, 0,  t.getNormalLocal().x, t.getNormalLocal().y, t.getNormalLocal().z);
      r.popMatrix();
    }
View Full Code Here

Examples of processing.core.PGraphics.translate()

    PGraphics pg = applet.createGraphics(content.getWidth(), content.getHeight(), PConstants.JAVA2D);
    pg.beginDraw();
    // draw the graphs
    pg.noFill();
    pg.pushMatrix();
    pg.translate(0, content.getHeight() / 2);
    // iterate through all the graphs
    for (GraphData graph : graphs.values()) {
      pg.beginShape();
      pg.stroke(graph.color);
      for (int i=0; i<graph.data.length; ++ i) {
View Full Code Here

Examples of processing.core.PGraphicsJava2D.translate()

    PGraphicsJava2D snap = (PGraphicsJava2D) winApp.createGraphics(buffer.width, buffer.height, PApplet.JAVA2D);
    snap.beginDraw();
    snap.image(buffer,0,0);
    if(hsb != null){
      snap.pushMatrix();
      snap.translate(hsb.getX(), hsb.getY());
      snap.image(hsb.getBuffer(), 0, 0);
      snap.popMatrix();
    }
    if(vsb != null){
      snap.pushMatrix();
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.