org.gwtopenmaps.openlayers.client.geometry
Class Collection

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.geometry.Geometry
              extended by org.gwtopenmaps.openlayers.client.geometry.Collection
Direct Known Subclasses:
MultiLineString, MultiPoint, MultiPolygon, Polygon

public abstract class Collection
extends Geometry

Author:
Edwin Commandeur - Atlis EJS

Field Summary
 
Fields inherited from class org.gwtopenmaps.openlayers.client.geometry.Geometry
LINEARRING_CLASS_NAME, LINESTRING_CLASS_NAME, MULTI_LINE_STRING_CLASS_NAME, MULTI_POLYGON_CLASS_NAME, POINT_CLASS_NAME, POLYGON_CLASS_NAME
 
Constructor Summary
protected Collection(JSObject element)
           
 
Method Summary
 boolean equals(Geometry geometry)
          APIMethod: equals Determine whether another geometry is equivalent to this one.
 JSObject getComponent(int index)
           
 double getLength()
           
 int getNumberOfComponents()
          Every Geometry that is a collection has components These components can be basic geometry types or other collections.
 void transform(Projection source, Projection dest)
           
 
Methods inherited from class org.gwtopenmaps.openlayers.client.geometry.Geometry
calculateBounds, clone, destroy, fromWKT, getArea, getBounds, narrowToGeometry, toString
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
getClassName, getEvents, narrowToOpenLayersObjectWrapper
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Collection

protected Collection(JSObject element)
Method Detail

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.