public abstract class GeometricShapeBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected Envelope |
extent |
protected GeometryFactory |
geomFactory |
protected int |
numPts |
Constructor and Description |
---|
GeometricShapeBuilder(GeometryFactory geomFactory) |
Modifier and Type | Method and Description |
---|---|
protected Coordinate |
createCoord(double x,
double y) |
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 created
Geometry . |
protected Envelope extent
protected int numPts
protected GeometryFactory geomFactory
public GeometricShapeBuilder(GeometryFactory geomFactory)
public void setExtent(Envelope extent)
public Envelope getExtent()
public Coordinate getCentre()
public double getDiameter()
public double getRadius()
public LineSegment getSquareBaseLine()
public Envelope getSquareExtent()
public void setNumPoints(int numPts)
Geometry
.
The created geometry will have no more than this number of points,
unless more are needed to create a valid geometry.public abstract Geometry getGeometry()
protected Coordinate createCoord(double x, double y)
Copyright © 2016. All rights reserved.