Examples of translate()


Examples of com.jada.util.GoogleTranslate.translate()

      form.setItemShortDescLangFlag(true);
      form.setItemDescLangFlag(true);
      form.setPageTitleLangFlag(true);
      form.setMetaKeywordsLangFlag(true);
      form.setMetaDescriptionLangFlag(true);
      form.setItemShortDescLang(translator.translate(item.getItemLanguage().getItemShortDesc()));
      form.setItemDescLang(translator.translate(item.getItemLanguage().getItemDesc()));
      form.setPageTitleLang(translator.translate(item.getItemLanguage().getPageTitle()));
      form.setMetaKeywordsLang(translator.translate(item.getItemLanguage().getMetaKeywords()));
      form.setMetaDescriptionLang(translator.translate(item.getItemLanguage().getMetaDescription()));
     
View Full Code Here

Examples of com.jcloisterzone.ui.ImmutablePoint.translate()

         }

         public ImmutablePoint getScaledOffset(int boxSize) {
             ImmutablePoint point = offset;
             if (order > 0) {
                 point = point.translate(10*order, 0);
             }
             return point.scale(getSquareSize(), boxSize);
         }

         public boolean match(Class<? extends Meeple> meepleType, FeaturePointer fp) {
View Full Code Here

Examples of com.jgraph.gaeawt.java.awt.Rectangle.translate()

        AffineTransform at = g.getTransform();
        Rectangle c = g.getClipBounds();
        if (at != null){
            int atType = at.getType();
            if (atType == AffineTransform.TYPE_TRANSLATION) {
                c.translate((int)Math.round(at.getTranslateX()), (int)Math.round(at.getTranslateY()));
            }
        }

        WritableRaster wr = ((BufferedImageGraphics2D)g).getWritableRaster();
View Full Code Here

Examples of com.mobixess.jodb.core.plugin.IClassProcessor.translate()

        IOBase base = ioTicket.getBase();
       
       
        IClassProcessor classProcessor = JODBPluginRegistry.getInstance().getClassProcessor(rootObject.getClass());
       
        Object objectToPersist = classProcessor.translate(rootObject);
       
        ClassDescriptor classDescr = session.getDescriptorForClass(objectToPersist.getClass());
        FieldAndIDRecord[] fields = classDescr.getAllFields();
       
        Vector<IndexingRecord> indexes = null;
View Full Code Here

Examples of com.mxgraph.model.mxGeometry.translate()

            {
              double dx = o2.getX() - o1.getX();
              double dy = o2.getY() - o1.getY();

              geo = (mxGeometry) geo.clone();
              geo.translate(dx, dy);

              if (!geo.isRelative() && model.isVertex(cells[i])
                  && !isAllowNegativeCoordinates())
              {
                geo.setX(Math.max(0, geo.getX()));
View Full Code Here

Examples of com.netflix.suro.routing.filter.lang.MessageFilterTranslatable.translate()

     * @throws InvalidFilterException If the input filter is invalid.
     */
    public static MessageFilter compile(String filter) throws InvalidFilterException {
        MessageFilterParser parser = MessageFilterParser.createParser(filter);
        MessageFilterTranslatable t = parseToTranslatable(parser);
        MessageFilter translate = t.translate();
        if (BaseMessageFilter.class.isAssignableFrom(translate.getClass())) {
            ((BaseMessageFilter) translate).setOriginalDslString(filter);
        }

        return translate;
View Full Code Here

Examples of com.nexirius.framework.htmlview.HTMLTranslator.translate()

                result.append(s);

            translatedName = result.toString();
        } else {

            translatedName = htmlTranslator.translate(name + ".color");
        }

        parser.getOut().write(translatedName.getBytes());
    }
}
View Full Code Here

Examples of com.nexirius.framework.htmlview.function.HTMLFunction.translate()

                        state = 0;
                        try {
                            HTMLFunction f = parseFunction(sessionVariable, in);
                            String[] arguments = parseFunctionArguments(sessionVariable, in);

                            f.translate(sessionVariable, this, arguments);
                            ++translateCount;
                        } catch (Exception ex) {
                            ex.printStackTrace(new PrintStream(out));
                        }
                    } else {
View Full Code Here

Examples of com.sencha.gxt.chart.client.draw.Matrix.translate()

      matrix.scale(scaling.getX(), scaling.getY(), scaling.getCenterX(), scaling.getCenterY());
      deltaScaleX *= scaling.getX();
      deltaScaleY *= scaling.getY();
    }
    if (translation != null) {
      matrix.translate(translation.getX(), translation.getY());
    }
    if (viewBoxShift != null) {
      matrix.scale(viewBoxShift.getX(), viewBoxShift.getY(), -1, -1);
      matrix.add(1, 0, 0, 1, viewBoxShift.getCenterX(), viewBoxShift.getCenterY());
    }
View Full Code Here

Examples of com.serotonin.m2m2.i18n.TranslatableMessage.translate()

            try {
                TranslatableMessage lm = new TranslatableMessage("ftl.scheduledReport", reportConfig.getName());
                String subject = creator.getSubject();
                if (subject == null)
                    subject = lm.translate(translations);
                EmailWorkItem.queueEmail(toAddrs, subject, emailContent, postEmail);
            }
            catch (AddressException e) {
                LOG.error(e);
            }
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.