Examples of AddObjectsEdit


Examples of tiled.mapeditor.undo.AddObjectsEdit

            bounds.width * w, bounds.height * h);
        /*
         * Point pos = mapView.screenToPixelCoords( event.x, event.y);
         */
        ObjectGroup group = (ObjectGroup) layer;
         addEdit(new AddObjectsEdit(group, object));
        group.addObject(object);
        mapView.redraw();
      }

      // get rid of any visible marquee
View Full Code Here

Examples of tiled.mapeditor.undo.AddObjectsEdit

                initialBounds.y - selectionBounds.y + cursorLocation.y,
                initialBounds.width,
                initialBounds.height);
        resultObjects.add(clone);
      }
      AddObjectsEdit edit = new AddObjectsEdit((ObjectGroup) getCurrentLayer(),resultObjects.toArray(new MapObject[0]));
      edit.execute(null,null);
      addEdit(edit);
      mapView.redraw();
    } catch (CloneNotSupportedException e) {
      // Shouldn't happen
      e.printStackTrace();
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.