Examples of rotate()


Examples of com.jgraph.gaeawt.java.awt.Graphics2D.rotate()

    InputStream in = ClipImage.class.getResourceAsStream(filename);
    final BufferedImage image = Sanselan.getBufferedImage(in);
    in.close();

    Graphics2D g2 = imageARGB.createGraphics();
    g2.rotate(-Math.PI / 12, image.getWidth() / 2, image.getHeight() / 2);
    String s = "bella";
    Font font = new Font("Serif", Font.PLAIN, 192);
    FontRenderContext frc = g2.getFontRenderContext();
    //GlyphVector gv = font.createGlyphVector(frc, s);
    //Shape clippingShape = gv.getOutline(10, 200);
View Full Code Here

Examples of com.jme3.scene.CameraNode.rotate()

        cam.setFrustumFar(500);
        cam.update();
       
        CameraNode camNode = new CameraNode("camera", cam);
        camNode.setControlDir(CameraControl.ControlDirection.SpatialToCamera);
        camNode.rotate((float) Math.PI / 2, (float) Math.PI, 0);
        camNode.move(-6, -50 / 2 + 15 / 2, 8 + 3);
        head.attachChild(camNode);

        Node actuator = createActuatorAssmNode("actuator");
        actuator.move(8, -50 / 2 + 25 / 2, 4 + 3);
View Full Code Here

Examples of com.jme3.scene.Geometry.rotate()

    b.setMode(Mesh.Mode.Points);
    b.setPointSize(10f);
    b.setStatic();
    */
    Geometry g = new Geometry("Bubble", b);
    g.rotate(FastMath.HALF_PI, 0, FastMath.HALF_PI);
    //g.scale(1, 1, -1);
    Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
    Texture tex = assetManager.loadTexture("Textures/test3.png");
    mat.setTexture("ColorMap", tex);
    //mat.setColor("Color", ColorRGBA.Blue);
View Full Code Here

Examples of com.jme3.scene.Node.rotate()

    grassPatch.setQueueBucket(RenderQueue.Bucket.Transparent);

    face1.setMaterial(faceMat);
    face2.setMaterial(faceMat);

    grassPatch.rotate(new Quaternion().fromAngleAxis(
        (((int) (Math.random() * 359)) + 1) * (FastMath.PI / 190),
        new Vector3f(0, 1, 0)));
    grassPatch.setLocalTranslation(location);

    return grassPatch;
View Full Code Here

Examples of com.jme3.scene.Spatial.rotate()

    private void setupScene() {

        /** Load a Ninja model (OgreXML + material + texture from test_data) */
        Spatial ninja = assetManager.loadModel("Models/Ninja/Ninja.mesh.xml");
        ninja.scale(0.05f, 0.05f, 0.05f);
        ninja.rotate(0.0f, -3.0f, 0.0f);
        ninja.setLocalTranslation(0.0f, -5.0f, -2.0f);
        rootNode.attachChild(ninja);
        /** You must add a light to make the model visible */
        DirectionalLight sun = new DirectionalLight();
        sun.setDirection(new Vector3f(-0.1f, -0.7f, -1.0f).normalizeLocal());
View Full Code Here

Examples of com.lowagie.text.LwgRectangle.rotate()

                    }
                }
            }
            if(pageSize != null) {
              if ("landscape".equals(orientation)) {
                pageSize = pageSize.rotate();
              }
              document.setPageSize(pageSize);
            }
            document.setMargins(leftMargin, rightMargin, topMargin,
                    bottomMargin);
View Full Code Here

Examples of com.lowagie.text.Rectangle.rotate()

            decodeGenericDictionary(merged, tx);
            //rect
            PdfArray rect = (PdfArray)PdfReader.getPdfObject(merged.get(PdfName.RECT));
            Rectangle box = PdfReader.getNormalizedRectangle(rect);
            if (tx.getRotation() == 90 || tx.getRotation() == 270)
                box = box.rotate();
            tx.setBox(box);
            if (fieldCache != null)
                fieldCache.put(fieldName, tx);
        }
        else {
View Full Code Here

Examples of com.mxgraph.canvas.mxGraphicsCanvas2D.rotate()

    // Adds rotation and horizontal/vertical flipping
    rotation = rotation % 360;

    if (rotation != 0 || flipH || flipV)
    {
      canvas.rotate(rotation, flipH, flipV, state.getCenterX(),
          state.getCenterY());
    }

    // Note: Overwritten in mxStencil.paintShape (can depend on aspect)
    double scale = state.getView().getScale();
View Full Code Here

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

    XElement element = getElement(sprite);
    Style style = element.getStyle();
    Element skew = element.getPropertyJSO("skew").cast();

    if (rotation != null) {
      matrix.rotate(rotation.getDegrees(), rotation.getX(), rotation.getY());
      deltaDegrees += rotation.getDegrees();
    }
    if (scaling != null) {
      matrix.scale(scaling.getX(), scaling.getY(), scaling.getCenterX(), scaling.getCenterY());
      deltaScaleX *= scaling.getX();
View Full Code Here

Examples of com.trolltech.qt.gui.QMatrix.rotate()

  public void rotateImageRight() {
    QWebSettings.setMaximumPagesInCache(0);
    QWebSettings.setObjectCacheCapacities(0, 0, 0);
    QImage image = new QImage(selectedFile);
    QMatrix matrix = new QMatrix();
    matrix.rotate( 90.0 );
    image = image.transformed(matrix);
    image.save(selectedFile);
    QWebSettings.setMaximumPagesInCache(0);
    QWebSettings.setObjectCacheCapacities(0, 0, 0);
    browser.setHtml(browser.page().mainFrame().toHtml());
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.