Examples of translate()


Examples of com.digitolio.jdbi.strategy.TranslatingStrategy.translate()

         final String key = d.value();
         final Class<?> clazz = (Class<?>) arg;
         return new SqlStatementCustomizer() {
            public void apply(SQLStatement q) {
               TranslatingStrategy translatable = getTranslatable(q.getContext());
               q.define(key, translatable.translate(clazz.getSimpleName()));
            }
         };
      }

      private TranslatingStrategy getTranslatable(StatementContext ctx) {
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.Transform.translate()

        double y = attr.getY();

        if ((x != 0) || (y != 0))
        {
            xfrm.translate(x, y);
        }
        Transform t2 = getTransform();

        if (t2 != null) // Use the Transform if it's defined
        {
View Full Code Here

Examples of com.google.code.appengine.awt.Graphics.translate()

    // Public methods

    public Graphics create(int x, int y, int width, int height) {
        Graphics res = create();
        res.translate(x, y);
        res.clipRect(0, 0, width, height);
        return res;
    }

    public void draw3DRect(int x, int y, int width, int height, boolean raised) {
View Full Code Here

Examples of com.google.code.appengine.awt.Graphics2D.translate()

        graphics.fill(graphics.getDeviceConfiguration().getBounds());
        graphics.setComposite(AlphaComposite.SrcOver);

        // draw paint
        graphics.setPaint(paint);
        graphics.translate(- bounds.getMinX(), - bounds.getMinY());
        graphics.fill(shape);
        graphics.dispose();

        // draw image
        Shape clip = getClip();
View Full Code Here

Examples of com.google.code.appengine.awt.Rectangle.translate()

        if (clip == null) {
            return null;
        }

        Rectangle res = (Rectangle) clip.getBounds().clone();
        res.translate(-Math.round((float)transform.getTranslateX()), -Math.round((float)transform.getTranslateY()));
        return res;
    }

    @Override
    public Color getColor() {
View Full Code Here

Examples of com.google.code.appengine.awt.geom.AffineTransform.translate()

                    arg1 = ttf.readChar();
                    arg2 = ttf.readChar();
                }
                AffineTransform t = new AffineTransform();
                if (ttf.flagBit(ARGS_XY)) {
                    t.translate(arg1, arg2);
                } else {
                    System.err
                            .println("TTFGlyfTable: ARGS_ARE_POINTS not implemented.");
                }
View Full Code Here

Examples of com.google.devtools.moe.client.editors.Translator.translate()

        String.format(
            "Translating %s from project space \"%s\" to \"%s\"",
            codebaseToTranslate.getPath(), codebaseToTranslate.getProjectSpace(), toProjectSpace));

    Codebase translatedCodebase =
        translator.translate(codebaseToTranslate, translateOp.term.options, context);

    // Don't mark the translated codebase for persistence if it wasn't allocated by the Translator.
    if (translatedCodebase.equals(codebaseToTranslate)) {
      AppContext.RUN.ui.popTask(translateTask, translatedCodebase.getPath() + " (unmodified)");
    } else {
View Full Code Here

Examples of com.google.gwt.canvas.dom.client.Context2d.translate()

      canvas.setCoordinateSpaceWidth(colWidth * getTotalWidth(theme));
      Context2d ctx = canvas.getContext2d();

      //ctx.clearRect(0, 0, colWidth * columns_.length, height);

      ctx.translate(colWidth / 2.0, 0);

      int startPos = -1;
      int endPos = -1;
      int nexusColumn = -1;
      for (int i = 0; i < columns_.length; i++)
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.mengine.physics.Point.translate()

    Point crossP=new Point(getX(),getTopY()+getWidth()/2);
    Point bmP=this.getPositionAt(PositionType.SOUTH);
    Point blP=bmP.clone();
    Point brP=bmP.clone();
    blP.translate(-7.5f, 0);
    brP.translate(7.5f, 0);
    points=Point.getRotatedPoint(getPosition(), getAngle(),tlP,trP,crossP,bmP,blP,brP);
   
    Vec2 crossV=CoordinateConverter.vectorPixelToWorld(position.delta(crossP));
   
    BodyDef bodyD=new BodyDef();
View Full Code Here

Examples of com.itextpdf.awt.PdfGraphics2D.translate()

            throw new RuntimeException("An error occurred while creating a PdfWriter object.", e);
        }
        document.open();
        PdfContentByte contentByte = writer.getDirectContent();
        Graphics2D g = new PdfGraphics2D(contentByte, (float) bounds.getWidth(), (float) bounds.getHeight(), fontMapper);
        g.translate(-bounds.getX(), -bounds.getY());
        drawable.draw(g);
        g.dispose();
        document.close();
    }
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.