Examples of moveto()


Examples of com.trolltech.qt.gui.QPainterPath.moveTo()

      double x1 = (double) tileXMap.get(conn.startTile)*tileSize  + (conn.startWire%tileSize);
      double y1 = (double) tileYMap.get(conn.startTile)*tileSize  + (conn.startWire*tileSize)/enumSize;
      double x2 = (double) tileXMap.get(conn.endTile)*tileSize  + (conn.endWire%tileSize);
      double y2 = (double) tileYMap.get(conn.endTile)*tileSize  + (conn.endWire*tileSize)/enumSize;

      path.moveTo(x1, y1);
      path.lineTo(x2, y2);
    }
    PathItem item = new PathItem(path, pd);
    item.setBrush(QBrush.NoBrush);
    item.setPen(wirePen);
View Full Code Here

Examples of controlP5.Button.moveTo()

        nfoYPos+=yposAdd;
       
        Button saveScreenshot = cp5.addButton(GuiElement.SAVE_SCREENSHOT.guiText(), 0,
            nfoXPos, nfoYPos, 110, 15);
        saveScreenshot.setCaptionLabel(messages.getString("GeneratorGui.SAVE_SCREENSHOT")); //$NON-NLS-1$
        saveScreenshot.moveTo(infoTab);
        cp5.getTooltip().register(GuiElement.SAVE_SCREENSHOT.guiText(), messages.getString("GeneratorGui.TOOLTIP_SAVE_SCREENSHOT")); //$NON-NLS-1$

       
        nfoXPos += xposAdd;
        nfoYPos = yPosStartDrowdown+20;
View Full Code Here

Examples of controlP5.Textlabel.moveTo()

        //----------       

        Textlabel tRnd = cp5.addTextlabel("rndDesc"//$NON-NLS-1$
            messages.getString("GeneratorGui.TEXT_RANDOM_MODE_SELECT_ELEMENTS")//$NON-NLS-1$
            20, yPosStartDrowdown);
        tRnd.moveTo(randomTab).getValueLabel();
       
       
        randomCheckbox = cp5.addCheckBox(GuiElement.RANDOM_ELEMENT.guiText())
                .setPosition(35, 20+yPosStartDrowdown)
                .setSize(40, 20)
View Full Code Here

Examples of controller.commands.Move.moveTo()

  }
  @Override
  public void actionPerformed(ActionEvent arg0) {
    //Still have some problem that how far need to move? Moving and attacking is in different round or in same round?
    Move moving = new Move();
    moving.moveTo(map.getMoveToX(), map.getMoveToY());
    moving.execute(map.getSelectedAlly(), map.getSelectedEnemy());
    Command attacking = new Attack();
    attacking.execute(map.getSelectedAlly(), map.getSelectedEnemy());
  }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.moveTo()

          Vector p1 = cent.plusTimes(pc[dim1], i);
          Vector p2 = cent.plusTimes(pc[dim2], i);
          Vector p3 = cent.minusTimes(pc[dim1], i);
          Vector p4 = cent.minusTimes(pc[dim2], i);

          path.moveTo(p1);
          path.cubicTo(p1.plus(direction2), p2.plus(direction1), p2);
          path.cubicTo(p2.minus(direction1), p3.plus(direction2), p3);
          path.cubicTo(p3.minus(direction2), p4.minus(direction1), p4);
          path.cubicTo(p4.plus(direction1), p1.minus(direction2), p1);
          path.close();
View Full Code Here

Examples of de.nameless.gameEngine.gameObjects.NEUnit.moveTo()


  @Override
  public void DoTransaktion(NEgameServer game) {
    NEUnit u = game.getUnitByID(unitid);   
    u.moveTo(game.getMap().get(toX, toY));   
  }

 
  @Override
  public String toString() {   
View Full Code Here

Examples of diva.util.java2d.Polygon2D.moveTo()

        // Create the graphic
        PaintedList graphic = new PaintedList();

        Polygon2D polygon = new Polygon2D.Double();
        polygon.moveTo(30, 50);
        polygon.lineTo(70, 80);
        polygon.lineTo(70, 20);
        graphic.add(new PaintedShape(polygon, Color.red, 1.0f));

        Line2D line1 = new Line2D.Double(10, 50, 30, 50);
View Full Code Here

Examples of diva.util.java2d.Polyline2D.moveTo()

        path.closePath();
        _shape = new BasicFigure(path, Color.red);
        layer.add(_shape);

        Polyline2D poly = new Polyline2D.Double();
        poly.moveTo(240, 120);
        poly.lineTo(280, 140);
        poly.lineTo(240, 160);
        poly.lineTo(280, 180);
        poly.lineTo(240, 200);
        poly.lineTo(280, 220);
View Full Code Here

Examples of edu.umd.cs.piccolo.nodes.PPath.moveTo()

  public void drawLine(int x1, int y1, int x2, int y2) {
    PPath pn = PPath.createLine(x1, y1, x2, y2);
    pn.setStrokePaint(currentPenColor);
    pn.setPaint(null)// Null paint may render faster than the default.
    pn.setStroke(stroke);
    pn.moveTo(x1, y1);
    pn.lineTo(x2, y2);
    layer.addChild(pn);
  }

  /**
 
View Full Code Here

Examples of gwt.g2d.client.graphics.canvas.Context.moveTo()

  }
 
  @Override
  public void visit(Surface surface) {
    Context context = surface.getContext();
    context.moveTo(x, y);
    context.arc(x, y, radius, 0, MathHelper.TWO_PI, true);
  }
}
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.