Examples of rotate()


Examples of org.apache.flex.compiler.internal.fxg.types.FXGMatrix.rotate()

        double ty = (!Double.isNaN(gradient.getY()) ? gradient.getY() (pathBounds.yMax() + pathBounds.yMin()) / (2.0*ISWFConstants.TWIPS_PER_PIXEL));
           
        FXGMatrix matrix = new FXGMatrix();
        matrix.scale(w/ISWFConstants.GRADIENT_SQUARE, h/ISWFConstants.GRADIENT_SQUARE);
        if (!Double.isNaN(gradient.getRotation()) && (gradient.getRotation() != 0))
            matrix.rotate(gradient.getRotation());
        matrix.translate(tx, ty);
       
        return matrix.toSWFMatrix();
    }

View Full Code Here

Examples of org.apache.fop.svg.PDFDocumentGraphics2D.rotate()

            copy.rotate(-2 * Math.PI / c, 70, 90);
        }
        copy.dispose();

        //Some text
        g2d.rotate(-0.25);
        g2d.setColor(Color.RED);
        g2d.setFont(new Font("sans-serif", Font.PLAIN, 36));
        g2d.drawString("Hello world!", 140, 140);
        g2d.setColor(Color.RED.darker());
        g2d.setFont(new Font("serif", Font.PLAIN, 36));
View Full Code Here

Examples of org.apache.xmlgraphics.java2d.ps.EPSDocumentGraphics2D.rotate()

                copy.rotate(-2 * Math.PI / (double)c, 70, 90);
            }
            copy.dispose();
           
            //Some text
            g2d.rotate(-0.25);
            g2d.setColor(Color.RED);
            g2d.setFont(new Font("sans-serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 140);
            g2d.setColor(Color.RED.darker());
            g2d.setFont(new Font("serif", Font.PLAIN, 36));
View Full Code Here

Examples of org.eclipse.swt.graphics.Transform.rotate()

                // Ignore ERROR_NO_GRAPHICS_LIBRARY error or any others
              }

              try {
                Transform transform = new Transform(e.gc.getDevice());
                transform.rotate(270);
                e.gc.setTransform(transform);

                String s = activeTopBar.getShortTitle();
                Point size = e.gc.textExtent(s);
                e.gc.drawText(s, -size.x, 0, true);
View Full Code Here

Examples of org.eclipse.swt.graphics.Transform.rotate()

                if (g.getFontMetrics().getHeight() < width
                        && c.getBounds().height
                           > g.getFontMetrics().getAverageCharWidth()
                                * binLabels[i].length()) {
                    Transform tr = new Transform(disp);
                    tr.rotate(-90.0f);
                    g.setTransform(tr);
                    Path p = new Path(disp);
                    p.addString(binLabels[i], -c.getBounds().height + 5,
                            x1 + (int) (0.5 * width) - 10, f);
                    g.fillPath(p);
View Full Code Here

Examples of org.eclipse.swt.graphics.Transform.rotate()

                    g.setTransform(tr);
                    Path p = new Path(disp);
                    p.addString(binLabels[i], -c.getBounds().height + 5,
                            x1 + (int) (0.5 * width) - 10, f);
                    g.fillPath(p);
                    tr.rotate(90.0f);
                    g.setTransform(tr);
                    tr.dispose();
                    p.dispose();
                }
                f.dispose();
View Full Code Here

Examples of org.geotools.geometry.jts.TransformedShape.rotate()

            double shapeSize = (maxMarkSizeEnabled ? Math.max(bounds.getWidth(), bounds.getHeight()) : bounds.getHeight());
            double scale = size / shapeSize;
            TransformedShape ts = new TransformedShape();
            ts.shape = shape;
            ts.translate(x, y);
            ts.rotate(rotation);
            // flip the symbol to take into account the screen orientation
            // where the y grows from top to bottom
            ts.scale(scale, -scale);

            return ts;
View Full Code Here

Examples of org.im4java.core.IMOperation.rotate()

            ConvertCmd cmd = new ConvertCmd();

            // create the operation, add images and operators/options
            IMOperation op = new IMOperation();
            op.addImage(getFile(i).getPath());
            op.rotate(clockwise ? 90. : -90.);
            op.addImage(outputFile.getPath());

            cmd.run(op);
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of org.lwjgl.util.vector.Matrix4f.rotate()

  }

  public static void glRotatef(final float angle, final float x, final float y, final float z) {
    final Matrix4f m = getCurrentMatrix();
    v3f.set(x, y, z);
    m.rotate((float)toRadians(angle), v3f);
  }

  public static void glOrtho(final float l, final float r, final float b, final float t, final float n, final float f) {
    final Matrix4f m = m4f;
    m.setIdentity();
View Full Code Here

Examples of org.newdawn.slick.Image.rotate()

    int[] pos = Transforma.transform(p0, p, wm, hm, escala);
    g.drawImage(h.getScaledCopy(inf[0], inf[1]), pos[0], pos[1]);

    pos = Transforma.transform(p1, p, wm, hm, escala);
    Image img = h.getScaledCopy(inf[0], inf[1]);
    img.rotate(180);
    g.drawImage(img, pos[0], pos[1]);

    img = v.getScaledCopy(inf[0], inf[1]);
    inf = Transforma.transform(sizev, escala);
    pos = Transforma.transform(p2, p, wm, hm, escala);
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.