org.gwtopenmaps.openlayers.client.geometry
Class Geometry

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
Direct Known Subclasses:
Collection, Point

public class Geometry
extends OpenLayersObjectWrapper

Author:
Edwin Commandeur - Atlis EJS, Curtis Jensen

Field Summary
static String LINEARRING_CLASS_NAME
           
static String LINESTRING_CLASS_NAME
           
static String MULTI_LINE_STRING_CLASS_NAME
           
static String MULTI_POLYGON_CLASS_NAME
           
static String POINT_CLASS_NAME
           
static String POLYGON_CLASS_NAME
           
 
Constructor Summary
protected Geometry(JSObject element)
           
 
Method Summary
 void calculateBounds()
          Recalculate the bounds for the geometry.
 Geometry clone()
           
 void destroy()
           
static Geometry fromWKT(String wkt)
           
 double getArea()
           
 Bounds getBounds()
           
 double getLength()
           
static Geometry narrowToGeometry(JSObject element)
           
 String 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
 

Field Detail

LINEARRING_CLASS_NAME

public static final String LINEARRING_CLASS_NAME
See Also:
Constant Field Values

LINESTRING_CLASS_NAME

public static final String LINESTRING_CLASS_NAME
See Also:
Constant Field Values

POINT_CLASS_NAME

public static final String POINT_CLASS_NAME
See Also:
Constant Field Values

POLYGON_CLASS_NAME

public static final String POLYGON_CLASS_NAME
See Also:
Constant Field Values

MULTI_POLYGON_CLASS_NAME

public static final String MULTI_POLYGON_CLASS_NAME
See Also:
Constant Field Values

MULTI_LINE_STRING_CLASS_NAME

public static final String MULTI_LINE_STRING_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

Geometry

protected Geometry(JSObject element)
Method Detail

narrowToGeometry

public static Geometry narrowToGeometry(JSObject element)

destroy

public void destroy()

getBounds

public Bounds getBounds()

toString

public String toString()
Overrides:
toString in class Object

fromWKT

public static Geometry fromWKT(String wkt)

clone

public Geometry clone()
Overrides:
clone in class Object

calculateBounds

public void calculateBounds()
Recalculate the bounds for the geometry.


getArea

public double getArea()

getLength

public double getLength()


Copyright © 2011 sourceforge. All Rights Reserved.