public class RandomPointsInGridBuilder extends GeometricShapeBuilder
extent, geomFactory, numPts| Constructor and Description |
|---|
RandomPointsInGridBuilder()
Create a builder which will create shapes using the default
GeometryFactory.
|
RandomPointsInGridBuilder(GeometryFactory
Create a builder which will create shapes using the given
GeometryFactory.
|
| Modifier and Type | Method and Description |
|---|---|
Geometry |
getGeometry()
Gets the
MultiPoint containing the generated point
|
void |
setConstrainedToCircle(boolean isConstrainedToCircle)
Sets whether generated points are constrained to lie within a circle contained within each grid cell.
|
void |
setGutterFraction(double gutterFraction)
Sets the fraction of the grid cell side which will be treated as a gutter, in which no points will be created.
|
createCoord, getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPointspublic RandomPointsInGridBuilder()
GeometryFactory.
public RandomPointsInGridBuilder(GeometryFactorygeomFact)
GeometryFactory.
geomFact - the factory to use
public void setConstrainedToCircle(boolean isConstrainedToCircle)
The default is to not be constrained to a circle.
isConstrainedToCircle -
public void setGutterFraction(double gutterFraction)
gutterFraction -
public GeometrygetGeometry()
MultiPoint containing the generated point
getGeometry in class
GeometricShapeBuilder