| Modifier and Type | Method and Description |
|---|---|
ICurve |
build()
Creates a curve constructed from the line strings in this builder.
|
CurveBuilder |
withLineString(com.mapinfo.midev.geometry.DirectPosition... positions)
Adds a new line string to the curve to be created with this builder.
|
CurveBuilder |
withLineString(IDirectPositionList positions)
Adds a new line string to the curve to be created with this builder.
|
CurveBuilder |
withLineString(Iterable<com.mapinfo.midev.geometry.DirectPosition> positions)
Adds a new line string to the curve to be created with this builder.
|
CurveBuilder |
withPoint(com.mapinfo.midev.geometry.DirectPosition position)
Adds a new point to the curve constructed by this builder.
|
CurveBuilder |
withPoint(double x,
double y)
Adds a new point to the curve constructed by this builder.
|
CurveBuilder |
withPoint(String x,
String y)
Adds a new point to the curve constructed by this builder.
|
public CurveBuilder withLineString(com.mapinfo.midev.geometry.DirectPosition... positions)
positions - An array of direct positions representing the points
of the line string.public CurveBuilder withLineString(Iterable<com.mapinfo.midev.geometry.DirectPosition> positions)
positions - An iterable data structure of direct positions
representing the points of the line string.public CurveBuilder withLineString(IDirectPositionList positions)
positions - A direct position list representing the points of the
line string.public CurveBuilder withPoint(double x, double y)
x - the x coordinate of the point to be added.y - the y coordinate of the point to be added.public CurveBuilder withPoint(String x, String y)
x - the x coordinate of the point to be added.y - the y coordinate of the point to be added.NumberFormatException - if any of the coordinate values cannot be
parsed into a double valueNullPointerException - if any of the coordinate values is
null.public CurveBuilder withPoint(com.mapinfo.midev.geometry.DirectPosition position)
position - the position of the point to addpublic ICurve build()
InvalidGeometryException - if no valid curve can be created from
the previously added line strings