com.vividsolutions.jts.shape.random
Class RandomPointsInGridBuilder
java.lang.Object
com.vividsolutions.jts.shape.GeometricShapeBuilder
com.vividsolutions.jts.shape.random.RandomPointsInGridBuilder
public class RandomPointsInGridBuilder
- extends GeometricShapeBuilder
Creates random point sets
where the points are constrained to lie in the cells of a grid.
- Author:
- mbdavis
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomPointsInGridBuilder
public RandomPointsInGridBuilder()
- Create a builder which will create shapes using the default
GeometryFactory
.
RandomPointsInGridBuilder
public RandomPointsInGridBuilder(GeometryFactory geomFact)
- Create a builder which will create shapes using the given
GeometryFactory
.
- Parameters:
geomFact
- the factory to use
setConstrainedToCircle
public void setConstrainedToCircle(boolean isConstrainedToCircle)
setGutterFraction
public void setGutterFraction(double gutterFraction)
getGeometry
public Geometry getGeometry()
- Specified by:
getGeometry
in class GeometricShapeBuilder