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
|
| 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
|
void |
setNumPoints(int numPts)
Sets the total number of points in the created
Geometry.
|
protected Envelopeextent
protected int numPts
protected GeometryFactorygeomFactory
public GeometricShapeBuilder(GeometryFactorygeomFactory)
public void setExtent(Envelopeextent)
public EnvelopegetExtent()
public CoordinategetCentre()
public double getDiameter()
public double getRadius()
public LineSegmentgetSquareBaseLine()
public EnvelopegetSquareExtent()
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 GeometrygetGeometry()
protected CoordinatecreateCoord(double x, double y)