Examples of translate()


Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPoint.translate()

  @Override
  public IPoint add(final IPoint pt) {
    final IPoint added = ShapeFactory.createPoint((IPoint)this);
    if(pt!=null)
      added.translate(pt.getX(), pt.getY());
    return added;
  }
}
View Full Code Here

Examples of net.sf.latexdraw.parsers.svg.SVGMatrix.translate()

  @Test
  public void testTranslate() {
    SVGMatrix m = new SVGMatrix();
    double tx = 1.4, ty = -0.4;

    m.translate(tx, ty);
    assertEquals(m.getA(), 1., 0.0001);
    assertEquals(m.getB(), 0., 0.0001);
    assertEquals(m.getC(), 0., 0.0001);
    assertEquals(m.getD(), 1., 0.0001);
    assertEquals(m.getE(), tx, 0.0001);
View Full Code Here

Examples of net.xoetrope.xui.helper.XTranslator.translate()

  }

  public void setAppTitle( String title )
  {
    XTranslator translator = currentProject.getTranslator();
    setTitle( translator.translate( title ));
  }

  /**
   * Set the application icon
   * @param img the image name
View Full Code Here

Examples of nu.fw.jeti.plugins.Translator.translate()

      {
        //jTextArea1.setDocument(new DefaultStyledDocument());
        Translator links = (Translator) PluginsInfo.newPluginInstance("links");
        links.init(jTextArea1);
        List wordList = ChatSplitPane.createWordList(message);
              links.translate(wordList);
              // Insert words from wordlist
              Document doc = jTextArea1.getDocument();
        for(Iterator i = wordList.iterator();i.hasNext();) {
          Word w = (Word) i.next();
          doc.insertString(doc.getLength(),w.toString(),
View Full Code Here

Examples of nu3a.math.N3Matrix4D.translate()

        matrix.mult(rotationMatrix);
        needRotation = false;
      }
      if (needTranslation) {
        N3Matrix4D translationMatrix = new N3Matrix4D();
        translationMatrix.translate(translation);
        matrix.mult(translationMatrix);
        needTranslation = false;
      }
      setDirty();
    }
View Full Code Here

Examples of nu3a.scene.N3TransformationNode.translate()

    sm.setDiffuseColor(new N3ColorRGBA(1, 0, 0));
    sm.applyMaterial(true);
    for (int i = -5; i < 4; i++)
      for (int j = -5; j < 4; j++) {
        sueloTrans = new N3TransformationNode(scene, "sueloTrans" + i + "-" + j);
        sueloTrans.translate(new N3Vector3D(i * 0.4f, j * 0.4f, 0));
        sueloTrans.update();
        suelo = new N3VisualMesh(scene, g, "suelo" + i + "-" + j);
        suelo.setMaterial(sm);
        sueloTrans.addChild(suelo);
        sueloRot.addChild(sueloTrans);
View Full Code Here

Examples of oracle.toplink.essentials.internal.databaseaccess.DatabaseCall.translate()

        //the query object has to be set in order to access to the platform and login objects
        call.setQuery(writeQuery);
        // prepare it
        call.prepare(session);
        //finally do the translation
        call.translate(writeQuery.getTranslationRow(), writeQuery.getModifyRow(), session);
        return call;
    }

    // Building of SELECT statements is no longer done in DatabaseAccessor.basicExecuteCall
    // for updates because DatabaseCall.isUpdateCall() can't recognize update in case
View Full Code Here

Examples of oracle.toplink.essentials.internal.databaseaccess.DatasourceCall.translate()

        // For CR 2923 must move to session we will execute call on now
        // so correct DatasourcePlatform used by translate.
        AbstractSession sessionToUse = getSession().getExecutionSession(getQuery());
        DatasourceCall clonedCall = (DatasourceCall)databaseCall.clone();
        clonedCall.setQuery(getQuery());
        clonedCall.translate(getTranslationRow(), getModifyRow(), sessionToUse);
        return sessionToUse.executeCall(clonedCall, getTranslationRow(), getQuery());
    }

    /**
     * Execute a non selecting call.
View Full Code Here

Examples of org.antlr.codegen.ActionTranslator.translate()

    generator.genRecognizer(); // forces load of templates
    ActionTranslator translator = new ActionTranslator(generator,
                                  "rule",
                                  new antlr.CommonToken(ANTLRParser.ACTION,action),1);
    String rawTranslation =
      translator.translate();

    int expectedMsgID = ErrorManager.MSG_WRITE_TO_READONLY_ATTR;
    Object expectedArg = "other";
    Object expectedArg2 = "tree";
    GrammarSemanticsMessage expectedMessage =
View Full Code Here

Examples of org.antlr.codegen.ActionTranslatorLexer.translate()

    generator.genRecognizer(); // forces load of templates
    ActionTranslatorLexer translator = new ActionTranslatorLexer(generator,
                                  "rule",
                                  new antlr.CommonToken(ANTLRParser.ACTION,action),1);
    String rawTranslation =
      translator.translate();

    int expectedMsgID = ErrorManager.MSG_WRITE_TO_READONLY_ATTR;
    Object expectedArg = "other";
    Object expectedArg2 = "tree";
    GrammarSemanticsMessage expectedMessage =
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.