public class MultiPointBuilder extends Object
IMultiPoint
instances.| Modifier and Type | Method and Description |
|---|---|
IMultiPoint |
build()
Creates a new multi-point from all points previously added to this
builder with
MultiPointBuilder.withPoint(DirectPosition). |
MultiPointBuilder |
withPoint(com.mapinfo.midev.geometry.DirectPosition position)
Adds a new point to the multi-point created by this builder.
|
MultiPointBuilder |
withPoint(double x,
double y)
Adds a new point to the multi-point created by this builder.
|
MultiPointBuilder |
withPoint(String x,
String y)
Adds a new point to the multi-point created by this builder.
|
public MultiPointBuilder withPoint(com.mapinfo.midev.geometry.DirectPosition position)
position - the coordinates of the point to be addedpublic MultiPointBuilder withPoint(double x, double y)
x - the x coordinate of the point to be addedy - the y coordinate of the point to be addedpublic MultiPointBuilder withPoint(String x, String y)
x - the x coordinate of the point to be addedy - the y coordinate of the point to be addedNumberFormatException - if any of the coordinate values cannot be
parsed into a double valueNullPointerException - if any of the coordinate values is
null.public IMultiPoint build()
MultiPointBuilder.withPoint(DirectPosition).