Class HilbertCurveBuilder
- java.lang.Object
-
- org.locationtech.jts.shape.GeometricShapeBuilder
-
- org.locationtech.jts.shape.fractal.HilbertCurveBuilder
-
public class HilbertCurveBuilder extends GeometricShapeBuilder
Generates aLineString
representing the Hilbert Curve at a given level.- Author:
- Martin Davis
- See Also:
HilbertCode
-
-
Constructor Summary
Constructors Constructor Description HilbertCurveBuilder(GeometryFactory geomFactory)
Creates a new instance using the providedGeometryFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometry
getGeometry()
void
setLevel(int level)
Sets the level of curve to generate.-
Methods inherited from class org.locationtech.jts.shape.GeometricShapeBuilder
getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPoints
-
-
-
-
Constructor Detail
-
HilbertCurveBuilder
public HilbertCurveBuilder(GeometryFactory geomFactory)
Creates a new instance using the providedGeometryFactory
.- Parameters:
geomFactory
- the geometry factory to use
-
-
Method Detail
-
setLevel
public void setLevel(int level)
Sets the level of curve to generate. The level must be in the range [0 - 16].- Parameters:
level
- the order of the curve
-
getGeometry
public Geometry getGeometry()
- Specified by:
getGeometry
in classGeometricShapeBuilder
-
-