Class RandomPointsInGridBuilder

Hierarchy: Object , GeometricShapeBuilder, RandomPointsInGridBuilder
public class RandomPointsInGridBuilder
extends GeometricShapeBuilder
Creates random point sets where the points are constrained to lie in the cells of a grid.
Authors:
mbdavis
public RandomPointsInGridBuilder()
Create a builder which will create shapes using the default GeometryFactory.
public RandomPointsInGridBuilder(GeometryFactory geomFact)
Create a builder which will create shapes using the given GeometryFactory.
Parameters:
geomFact - geomFact the factory to use
public void setConstrainedToCircle(boolean isConstrainedToCircle)
Sets whether generated points are constrained to lie within a circle contained within each grid cell. This provides greater separation between points in adjacent cells.

The default is to not be constrained to a circle.

Parameters:
isConstrainedToCircle - isConstrainedToCircle
public 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. The provided value is clamped to the range [0.0, 1.0].
Parameters:
gutterFraction - gutterFraction
public Geometry getGeometry()
Gets the MultiPoint containing the generated point
Returns:
a MultiPoint