public class RandomPointsBuilder extends GeometricShapeBuilder
| Modifier and Type | Field and Description |
|---|---|
protected Geometry |
maskPoly |
extent, geomFactory, numPts| 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 |
|---|---|
protected Coordinate |
createCoord(double x,
double y) |
protected Coordinate |
createRandomCoord(Envelope env) |
Geometry |
getGeometry() |
protected boolean |
isInExtent(Coordinate p) |
void |
setExtent(Geometry mask)
Sets a polygonal mask.
|
getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPointsprotected Geometry maskPoly
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 GeometricShapeBuilderprotected boolean isInExtent(Coordinate p)
protected Coordinate createCoord(double x, double y)
createCoord in class GeometricShapeBuilderprotected Coordinate createRandomCoord(Envelope env)
Copyright © 2015. All rights reserved.