org.gwtopenmaps.openlayers.client.geometry
Class Collection
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
org.gwtopenmaps.openlayers.client.geometry.Geometry
org.gwtopenmaps.openlayers.client.geometry.Collection
- Direct Known Subclasses:
- MultiLineString, MultiPoint, MultiPolygon, Polygon
public abstract class Collection
- extends Geometry
- Author:
- Edwin Commandeur - Atlis EJS
Collection
protected Collection(JSObject element)
getNumberOfComponents
public int getNumberOfComponents()
- Every Geometry that is a collection has components
These components can be basic geometry types or other collections.
The getComponents method is defined for direct subclasses of Collection
and the return type differs per subclass.
- Returns:
- integer number of components
getComponent
public JSObject getComponent(int index)
transform
public void transform(Projection source,
Projection dest)
equals
public boolean equals(Geometry geometry)
- APIMethod: equals Determine whether another geometry is equivalent to
this one. Geometries are considered equivalent if all components have the
same coordinates.
Parameters: geom - {} The geometry to test.
Returns: {Boolean} The supplied geometry is equivalent to this geometry.
getLength
public double getLength()
- Overrides:
getLength
in class Geometry
Copyright © 2011 sourceforge. All Rights Reserved.