Examples of rotate()


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

          QPainter p = new QPainter(rotatedPix);
            rotatedPix.fill(toolBar.palette().color(ColorRole.Button));
            QSize size = pix.size();
            p.translate(size.width()/2, size.height()/2);
            angle = angle+1.0;
            p.rotate(angle);
            p.setBackgroundMode(BGMode.OpaqueMode);
            p.translate(-size.width()/2, -size.height()/2);
            p.drawPixmap(0,0, pix);
            p.end();
            syncIcons.add(rotatedPix);
View Full Code Here

Examples of de.fhpotsdam.unfolding.UnfoldingMap.rotate()

        .getCenter()));
    innerRotateMap3.mapDisplay.setInnerTransformationCenter(innerRotateMap3.getScreenPosition(innerRotateMap3
        .getCenter()));
    innerRotateMap1.rotate(radians(30));
    innerRotateMap2.rotate(radians(30));
    innerRotateMap3.rotate(radians(30));
  }

  public List<UnfoldingMap> createMaps(int xStart, int yStart, int mapWidth, int mapHeight, int xGap, int yGap) {
    List<UnfoldingMap> maps = new ArrayList<UnfoldingMap>();
    for (int y = yStart; y < yStart + (yGap + mapHeight) * 4; y += yGap + mapHeight) {
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.core.MapLayer.rotate()

      switch (transform) {
      case MapLayer.ROTATE_90:
      case MapLayer.ROTATE_180:
      case MapLayer.ROTATE_270:
        transEdit.setPresentationName("Rotate");
        layer.rotate(transform);
        // if(marqueeSelection != null)
        // marqueeSelection.rotate(transform);
        break;
      case MapLayer.MIRROR_VERTICAL:
        transEdit.setPresentationName("Vertical Flip");
View Full Code Here

Examples of eas.math.geometry.Polygon2D.rotate()

            boolean color) {
        Polygon2D tileTurned = new Polygon2D();
        for (Vector2D v : tile) {
            tileTurned.add(new Vector2D(v));
        }
        tileTurned.rotate(Vector2D.NULL_VECTOR, angle);
       
        for (Vector2D p : tileTurned) {
            Vector2D gesPos = new Vector2D(pos);
            gesPos.translate(p);
            this.setPix((int) Math.round(gesPos.x), (int) Math.round(gesPos.y), color);
View Full Code Here

Examples of eas.math.geometry.Vector2D.rotate()

        b.scale(Vector2D.NULL_VECTOR, new Vector2D(scale, scale));
        Vector2D pos = new Vector2D(fieldPos.x, fieldPos.y);

        if (env.getVisualizationAngleCenterPoint() != null) {
            pos.rotate(env.getVisualizationAngleCenterPoint(), env.getVisualizationAngleRAD());
        }

        pos.scale(Vector2D.NULL_VECTOR, new Vector2D(scale, scale));
        Vector2D midTranslation = new Vector2D(
                env.getScreenWidth() / 2,
View Full Code Here

Examples of edu.cmu.cs.stage3.math.Matrix44.rotate()

  public void rotate( javax.vecmath.Vector3d axis, double amount, ReferenceFrame asSeenBy ) {
    if( asSeenBy==null ) {
      asSeenBy = this;
    }
    Matrix44 m = getTransformation( asSeenBy );
    m.rotate( axis, amount );
    setTransformation( m, asSeenBy );
  }
  public void scale( javax.vecmath.Vector3d axis, ReferenceFrame asSeenBy ) {
    if( asSeenBy==null ) {
      asSeenBy = this;
View Full Code Here

Examples of edu.uci.ics.jung.visualization.transform.MutableTransformer.rotate()

            Point2D q = down;
            Point2D p = e.getPoint();
            Point2D v1 = new Point2D.Double(center.getX()-p.getX(), center.getY()-p.getY());
            Point2D v2 = new Point2D.Double(center.getX()-q.getX(), center.getY()-q.getY());
            double theta = angleBetween(v1, v2);
            modelTransformer.rotate(theta, vv.getRenderContext().getMultiLayerTransformer().inverseTransform(Layer.VIEW, center));
            down.x = e.getX();
            down.y = e.getY();
       
            e.consume();
        }
View Full Code Here

Examples of gwt.g2d.client.graphics.shapes.ShapeBuilder.rotate()

  private void drawStar(double r) {
    Surface surface = getPrimarySurface();
    surface.save();
    ShapeBuilder shapeBuilder = new ShapeBuilder().moveTo(r, 0);
    for (int i = 0; i < 9; i++) {
      shapeBuilder.rotate(Math.PI / 5);
      if (i % 2 == 0) {
        shapeBuilder.drawLineTo((r / 0.525731) * 0.200811, 0);
      } else {
        shapeBuilder.drawLineTo(r, 0);
      }
View Full Code Here

Examples of java.awt.Graphics.rotate()

      if (canvas != null) {
        node.writePackEntry();
        Graphics2D g = (Graphics2D)canvas.getGraphics();
        if (image.rotate) {
          g.translate(node.left, node.top);
          g.rotate(-90 * MathUtils.degreesToRadians);
          g.translate(-node.left, -node.top);
          g.translate(-image.getWidth(), 0);
        }
        if (settings.duplicatePadding) {
          int amount = settings.padding / 2;
View Full Code Here

Examples of java.awt.Graphics2D.rotate()

              (imWidth - headHeight) / bds.getHeight());
          if (scale2 >= scale * 1.1) { // will rotate
            scale = scale2;
            if (imHeight > imWidth) { // portrait -> landscape
              g2.translate(0, imHeight);
              g2.rotate(-Math.PI / 2);
            } else { // landscape -> portrait
              g2.translate(imWidth, 0);
              g2.rotate(Math.PI / 2);
            }
            double t = imHeight;
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.