Package org.locationtech.jts.shape
Class GeometricShapeBuilder
- java.lang.Object
-
- org.locationtech.jts.shape.GeometricShapeBuilder
-
- Direct Known Subclasses:
HilbertCurveBuilder
,KochSnowflakeBuilder
,MortonCurveBuilder
,RandomPointsBuilder
,RandomPointsInGridBuilder
,SierpinskiCarpetBuilder
public abstract class GeometricShapeBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GeometricShapeBuilder(GeometryFactory geomFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Coordinate
getCentre()
double
getDiameter()
Envelope
getExtent()
abstract Geometry
getGeometry()
double
getRadius()
LineSegment
getSquareBaseLine()
Envelope
getSquareExtent()
void
setExtent(Envelope extent)
void
setNumPoints(int numPts)
Sets the total number of points in the createdGeometry
.
-
-
-
Constructor Detail
-
GeometricShapeBuilder
public GeometricShapeBuilder(GeometryFactory geomFactory)
-
-
Method Detail
-
setExtent
public void setExtent(Envelope extent)
-
getExtent
public Envelope getExtent()
-
getCentre
public Coordinate getCentre()
-
getDiameter
public double getDiameter()
-
getRadius
public double getRadius()
-
getSquareBaseLine
public LineSegment getSquareBaseLine()
-
getSquareExtent
public Envelope getSquareExtent()
-
setNumPoints
public void setNumPoints(int numPts)
Sets the total number of points in the createdGeometry
. The created geometry will have no more than this number of points, unless more are needed to create a valid geometry.
-
getGeometry
public abstract Geometry getGeometry()
-
-