
org.geomajas.command.dto.GeometryBufferRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geomajas-command Show documentation
Show all versions of geomajas-command Show documentation
Geomajas server: Main - commands
The newest version!
/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2016 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.command.dto;
import java.util.List;
import org.geomajas.annotation.Api;
import org.geomajas.command.CommandRequest;
import org.geomajas.geometry.Geometry;
/**
* Request object for {@link org.geomajas.command.geometry.GeometryBufferCommand}.
*
* @author Emiel Ackermann
* @since 1.11.0
*/
@Api(allMethods = true)
public class GeometryBufferRequest implements CommandRequest {
private static final long serialVersionUID = 1110L;
/** Command name for this request. **/
public static final String COMMAND = "command.geometry.Buffer";
private List geometries;
private double bufferDistance;
private int quadrantSegments;
/**
* Get geometries.
* @return geometries to buffer
*/
public List getGeometries() {
return geometries;
}
/**
* Set geometries.
* @param geometries to buffer
*/
public void setGeometries(List geometries) {
this.geometries = geometries;
}
/**
* Get the buffer distance.
* @return buffer distance distance of buffer
*/
public double getBufferDistance() {
return bufferDistance;
}
/**
* Set the buffer distance.
* @param bufferDistance distance of buffer
*/
public void setBufferDistance(double bufferDistance) {
this.bufferDistance = bufferDistance;
}
/**
* Get the quadrant segments or the number of segments of one quarter of a circle.
* @return quadrant segments the number of segments of one quarter of a circle
*/
public int getQuadrantSegments() {
return quadrantSegments;
}
/**
* Set the quadrant segments or the number of segments of one quarter of a circle.
* @param quadrantSegments the number of segments of one quarter of a circle
*/
public void setQuadrantSegments(int quadrantSegments) {
this.quadrantSegments = quadrantSegments;
}
/**
* Get the string representation of this request.
* @return string representation of this request
*/
@Override
public String toString() {
return "GeometryBufferRequest{" +
"geometries=" + geometries +
", bufferDistance=" + bufferDistance +
", quadrantSegments=" + quadrantSegments +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy