public final class PolygonRingBuilder<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
IPolygonBuilder<T> |
build()
Creates a new ring and adds it to the parent polygon builder.
|
PolygonRingBuilder<T> |
withLineString(com.mapinfo.midev.geometry.DirectPosition... positions)
Adds a new line string to the ring to be created with this builder.
|
PolygonRingBuilder<T> |
withLineString(IDirectPositionList positions)
Adds a new line string to the ring to be created with this builder.
|
PolygonRingBuilder<T> |
withLineString(Iterable<com.mapinfo.midev.geometry.DirectPosition> positions)
Adds a new line string to the ring to be created with this builder.
|
PolygonRingBuilder<T> |
withPoint(com.mapinfo.midev.geometry.DirectPosition position)
Adds a new point to the ring constructed by this builder.
|
PolygonRingBuilder<T> |
withPoint(double x,
double y)
Adds a new point to the ring constructed by this builder.
|
PolygonRingBuilder<T> |
withPoint(String x,
String y)
Adds a new point to the ring constructed by this builder.
|
public PolygonRingBuilder<T> withLineString(com.mapinfo.midev.geometry.DirectPosition... positions)
positions - an array of direct positions representing the points of
the line string.public PolygonRingBuilder<T> withLineString(Iterable<com.mapinfo.midev.geometry.DirectPosition> positions)
positions - an iterable data structure of direct positions
representing the points of the line string.public PolygonRingBuilder<T> withLineString(IDirectPositionList positions)
positions - a direct position list representing the points of the
line string.public PolygonRingBuilder<T> 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 PolygonRingBuilder<T> 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 PolygonRingBuilder<T> withPoint(com.mapinfo.midev.geometry.DirectPosition position)
position - the coordinates of the point to be added.public IPolygonBuilder<T> build()