Package de.yaams.extensions.basemap.tiled.mapeditor.undo

Examples of de.yaams.extensions.basemap.tiled.mapeditor.undo.RemoveObjectEdit


        if (layer instanceof ObjectGroup) {
          ObjectGroup group = (ObjectGroup) layer;
          Point pos = mapView.screenToPixelCoords(event.getX(), event.getY());
          MapObject obj = group.getObjectNear(pos.x, pos.y, mapView.getZoom());
          if (obj != null) {
            undoSupport.postEdit(new RemoveObjectEdit(group, obj));
            group.removeObject(obj);
            // TODO: repaint only affected area
            mapView.repaint();
          }
        }
View Full Code Here

TOP

Related Classes of de.yaams.extensions.basemap.tiled.mapeditor.undo.RemoveObjectEdit

Copyright © 2018 www.massapicom. 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.