public class RandomPointsBuilder extends GeometricShapeBuilder
Constructor and Description |
---|
RandomPointsBuilder()
Create a shape factory which will create shapes using the default
GeometryFactory . |
RandomPointsBuilder(GeometryFactory geomFact)
Create a shape factory which will create shapes using the given
GeometryFactory . |
Modifier and Type | Method and Description |
---|---|
Geometry |
getGeometry() |
void |
setExtent(Geometry mask)
Sets a polygonal mask.
|
getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPoints
public RandomPointsBuilder()
GeometryFactory
.public RandomPointsBuilder(GeometryFactory geomFact)
GeometryFactory
.geomFact
- the factory to usepublic void setExtent(Geometry mask)
mask
- IllegalArgumentException
- if the mask is not polygonalpublic Geometry getGeometry()
getGeometry
in class GeometricShapeBuilder
Copyright © 2022. All rights reserved.