public abstract class GeometricShapeBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BoundingBox |
extent |
protected GeometryFactory |
geometryFactory |
protected int |
numPts |
| Constructor and Description |
|---|
GeometricShapeBuilder(GeometryFactory geomFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected Point |
createCoord(double x,
double y) |
Point |
getCentre() |
double |
getDiameter() |
BoundingBox |
getExtent() |
abstract Geometry |
getGeometry() |
double |
getRadius() |
LineSegment |
getSquareBaseLine() |
BoundingBox |
getSquareExtent() |
void |
setExtent(BoundingBox extent) |
void |
setNumPoints(int numPts)
Sets the total number of points in the created
Geometry. |
protected BoundingBox extent
protected int numPts
protected GeometryFactory geometryFactory
public GeometricShapeBuilder(GeometryFactory geomFactory)
protected Point createCoord(double x, double y)
public Point getCentre()
public double getDiameter()
public BoundingBox getExtent()
public abstract Geometry getGeometry()
public double getRadius()
public LineSegment getSquareBaseLine()
public BoundingBox getSquareExtent()
public void setExtent(BoundingBox extent)
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.Copyright © 2015 Revolution Systems Inc.. All rights reserved.