org.geomajas.plugin.editing.client.event.GeometryEditRemoveEvent Maven / Gradle / Ivy
The newest version!
/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2013 Geosparc nv, http://www.geosparc.com/, Belgium.
*
* The program is available in open source according to the GNU Affero
* General Public License. All contributions in this program are covered
* by the Geomajas Contributors License Agreement. For full licensing
* details, see LICENSE.txt in the project root.
*/
package org.geomajas.plugin.editing.client.event;
import java.util.List;
import org.geomajas.annotation.FutureApi;
import org.geomajas.geometry.Geometry;
import org.geomajas.plugin.editing.client.service.GeometryIndex;
/**
* Event which is passed when some part of a geometry has been deleted during geometry editing.
*
* @author Pieter De Graef
* @since 1.0.0
*/
@FutureApi(allMethods = true)
public class GeometryEditRemoveEvent extends AbstractGeometryEditEvent {
/**
* Main constructor.
*
* @param geometry geometry
* @param indices indices
*/
public GeometryEditRemoveEvent(Geometry geometry, List indices) {
super(geometry, indices);
}
/**
* Get the type of this class.
*
* @return Class .class of this class
*/
public Type getAssociatedType() {
return GeometryEditRemoveHandler.TYPE;
}
protected void dispatch(GeometryEditRemoveHandler handler) {
handler.onGeometryEditRemove(this);
}
}