示例#1
0
  public void endDrag() {
    System.out.println("END DRAG!");

    ArrayList doodads = new ArrayList();

    for (int i = 0; i < getSelectionCircles().size(); i++) {
      Doodad d = getSelectionCircles().get(i).getDoodad();

      doodads.add(d);
    }

    editorApp.addUndo(new MoveDoodads(doodads, dragStartPositions, editorApp));
    editorApp.nextIsBreak();

    dragStartPositions = new ArrayList();
  }
示例#2
0
  public void delete() {
    /*
    while(getSelectionCircles().size()>0)
     {
         SelectionCircle sc = getSelectionCircles().get(0);
         sc.getDoodad().removeSpace(editorApp.getPathingManager().getPathingMap());
         sc.getDoodad().remove();
         sc.close();
         getSelectionCircles().remove(0);
     }
      *
      */

    DeleteDoodads dd = new DeleteDoodads(this, editorApp);
    editorApp.addUndo(dd);
    editorApp.nextIsBreak();

    dragPositions.clear();
    moveSmooth = true;
  }