Examples of translate()


Examples of ae.java.awt.Rectangle.translate()

            if (usrClip instanceof Rectangle) {
                r = new Rectangle((Rectangle) usrClip);
            } else {
                r = usrClip.getBounds();
            }
            r.translate(-transX, -transY);
        } else {
            r = getClip().getBounds();
        }
        return r;
    }
View Full Code Here

Examples of ae.java.awt.geom.AffineTransform.translate()

    private static AffineTransform createGradientTransform(Rectangle2D r) {
        double cx = r.getCenterX();
        double cy = r.getCenterY();
        AffineTransform xform = AffineTransform.getTranslateInstance(cx, cy);
        xform.scale(r.getWidth()/2, r.getHeight()/2);
        xform.translate(-cx, -cy);
        return xform;
    }

    /**
     * Creates and returns a {@link PaintContext} used to
View Full Code Here

Examples of bnGUI.venn.geometry.FPolygon.translate()

                    FPoint off= itrans.inverseTransform(pt);
                   
                    FPolygon p = ((VennPolygonObject)node.vennObject).getPolygon();
                    if (p != null)
                    {
                          p.translate(off);
                        node.vennObject.directPaint( g, itrans );
                    }
                    }
                }
            }
View Full Code Here

Examples of bof_java8.PhoneCoder.translate()

    @Test
    public void should_get_JAVA_when_5282() {
        Set<String> words = new HashSet<>(Arrays.asList("Java"));
        PhoneCoder phoneCoder = new PhoneCoder(words);

        Collection<String> result = phoneCoder.translate("5282");

        assertThat(result).contains("JAVA");
    }

}
View Full Code Here

Examples of ca.eandb.jmist.framework.geometry.MeshBuilder.translate()

    double starPointRadius = halfTableWidth * (1.0 - cut.relStarLength)
        + radius * cut.relStarLength;
    double lowerGirdleInner = radius * (1.0 - cut.relLowerHalfLength);

    MeshBuilder b = MeshBuilder.fromCylinder(radius, -culetBottom, 64);
    b.translate(new Vector3(0, 0, culetBottom));

    for (int i = 0; i < 8; i++) {

      double theta0 = 2.0 * Math.PI * ((double) i) / 8.0;
      double theta1 = 2.0 * Math.PI * (((double) i) + 0.5) / 8.0;
View Full Code Here

Examples of ca.eandb.jmist.framework.lens.TransformableLens.translate()

    TransformableLens lens = new TransformableLens(
        PinholeLens.fromHfovAndAspect(2.0 * Math.atan2(0.25 / 2.0, 0.35), 1.0));

    lens.rotateY(Math.PI);
    lens.translate(new Vector3(278.0, 273.0, -800.0));

    return lens;

  }

View Full Code Here

Examples of ca.eandb.jmist.framework.scene.TransformableSceneElement.translate()

          block.root = block.geometry;
        }
      }

      TransformableSceneElement e = new TransformableSceneElement(block.root);
      e.translate(block.base.vectorFromOrigin());
      e.stretch(scale[0], scale[1], scale[2]);
      e.rotateZ(Math.toRadians(angle));

      e.translate(insertionPoint.vectorFromOrigin());
      Basis3 basis = DxfUtil.getBasisFromArbitraryAxis(extrusionDir);
View Full Code Here

Examples of charva.awt.Point.translate()

  }

  /* Now draw the JPasswordField itself.
   */
  Insets insets = super.getInsets();
  origin.translate(insets.left, insets.top);

  /* If the field is enabled, it is drawn with the UNDERLINE
   * attribute.  If it is disabled, it is drawn without the
   * UNDERLINE attribute.
   */
 
View Full Code Here

Examples of cli.MonoTouch.CoreGraphics.CGAffineTransform.Translate()

                    // update and set the transform on the game view
                    UIView gameView = _overlay.get_Superview();
                    CGAffineTransform trans = gameView.get_Transform();
                    _gameViewTransform = trans.Invert().Invert(); // clone
                    trans.Translate(target.get_X(), target.get_Y());
                    gameView.set_Transform(trans);
                    _gameViewTransformed = true;

                    // touches outside of the keyboard will close the keyboard
                    _overlay.Add(_touchDetector);
View Full Code Here

Examples of com.adobe.internal.fxg.types.FXGMatrix.translate()

            List<ShapeRecord> clipRectRecords = ShapeHelper.rectangle(0.0, 0.0, imageTag.width, imageTag.height);
            DefineShape clipShape = createDefineShape(null, clipRectRecords, new SolidColorFillNode(), null, context.getTransform());
            FXGMatrix bitmapMatrix = TypeHelper.bitmapFillMatrix(fillNode, imageTag, edgeBounds);
            FXGMatrix clipMatrix = new FXGMatrix(bitmapMatrix.a, bitmapMatrix.b, bitmapMatrix.c, bitmapMatrix.d, 0, 0);
            clipMatrix.scale(1.0/SwfConstants.TWIPS_PER_PIXEL, 1.0/SwfConstants.TWIPS_PER_PIXEL);
            clipMatrix.translate(bitmapMatrix.tx, bitmapMatrix.ty);
            GraphicContext clipContext = new GraphicContext();
            clipContext.setTransform(clipMatrix);
            placeObject(clipShape, clipContext);
            spriteStack.pop();
           
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.