public class PolygonsObject extends Object implements SpatialComparable
Modifier and Type | Field and Description |
---|---|
private Collection<Polygon> |
polygons
The polygons
|
static PolygonsObject |
PROTOTYPE
Static (empty) prototype
|
Constructor and Description |
---|
PolygonsObject(Collection<Polygon> polygons)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
appendToBuffer(StringBuilder buf)
Append polygons to the buffer.
|
int |
getDimensionality()
Returns the dimensionality of the object.
|
double |
getMax(int dimension)
Returns the maximum coordinate at the specified dimension.
|
double |
getMin(int dimension)
Returns the minimum coordinate at the specified dimension.
|
Collection<Polygon> |
getPolygons()
Access the polygon data.
|
String |
toString() |
public static final PolygonsObject PROTOTYPE
private Collection<Polygon> polygons
public PolygonsObject(Collection<Polygon> polygons)
polygons
- Polygonspublic Collection<Polygon> getPolygons()
public void appendToBuffer(StringBuilder buf)
buf
- Buffer to append topublic int getDimensionality()
SpatialComparable
getDimensionality
in interface SpatialComparable
public double getMin(int dimension)
SpatialComparable
getMin
in interface SpatialComparable
dimension
- the dimension for which the coordinate should be returned,
where 0 ≤ dimension < getDimensionality()
public double getMax(int dimension)
SpatialComparable
getMax
in interface SpatialComparable
dimension
- the dimension for which the coordinate should be returned,
where 0 ≤ dimension < getDimensionality()