public class AreasAndLengthsParameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static AreasAndLengthsParameters |
create()
Creates a new AreasAndLengthsParameters object.
|
GeometryService.UnitType |
getAreaUnit()
The area unit in which areas of polygons will be calculated.
|
GeometryService.UnitType |
getLengthUnit()
The length unit in which perimeters of polygons will be calculated.
|
com.google.gwt.core.client.JsArray<Geometry> |
getPolygons()
Polygon geometries for which to compute areas and lengths.
|
void |
setAreaUnit(GeometryService.UnitType areaUnit)
Set the area unit parameter.
|
void |
setLengthUnit(GeometryService.UnitType lengthUnit)
Set the length unit parameter.
|
void |
setPolygons(Geometry[] polygons)
Set the polygons parameter.
|
public static AreasAndLengthsParameters create()
public final GeometryService.UnitType getAreaUnit()
public final void setAreaUnit(GeometryService.UnitType areaUnit)
areaUnit
- - The area unit in which areas of polygons will be calculated.public final GeometryService.UnitType getLengthUnit()
public final void setLengthUnit(GeometryService.UnitType lengthUnit)
lengthUnit
- - The length unit in which perimeters of polygons will be calculated.public final com.google.gwt.core.client.JsArray<Geometry> getPolygons()
public final void setPolygons(Geometry[] polygons)
polygons
- - Polygon geometries for which to compute areas and lengths