
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(StringBuffer 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(StringBuffer buf)
buf - Buffer to append topublic int getDimensionality()
SpatialComparablegetDimensionality in interface SpatialComparablepublic double getMin(int dimension)
SpatialComparablegetMin in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
where 1 ≤ dimension ≤ getDimensionality()public double getMax(int dimension)
SpatialComparablegetMax in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
where 1 ≤ dimension ≤ getDimensionality()