public class RandomPointsBuilder extends GeometricShapeBuilder
| Modifier and Type | Field and Description |
|---|---|
protected Geometry |
maskPoly |
extent, geometryFactory, 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 Point |
createCoord(double x,
double y) |
protected Point |
createRandomCoord(BoundingBox env) |
Geometry |
getGeometry() |
protected boolean |
isInExtent(Point 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 useprotected Point createCoord(double x, double y)
createCoord in class GeometricShapeBuilderprotected Point createRandomCoord(BoundingBox env)
public Geometry getGeometry()
getGeometry in class GeometricShapeBuilderprotected boolean isInExtent(Point p)
public void setExtent(Geometry mask)
mask - IllegalArgumentException - if the mask is not polygonalCopyright © 2015 Revolution Systems Inc.. All rights reserved.