org.gwtopenmaps.openlayers.client.geometry
Class Point

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.Point

public class Point
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
  Point(double x, double y)
           
protected Point(JSObject point)
           
 
Method Summary
 boolean equals(Point p)
          APIMethod: equals Determine whether another geometry is equivalent to this one.
 String getId()
           
 double getX()
           
 double[] getXY()
           
 double getY()
           
static Point narrowToPoint(JSObject point)
           
 void setX(double x)
           
 void setXY(double x, double y)
           
 void setY(double y)
           
 void transform(Projection source, Projection dest)
          Translate the x,y properties of the point from source to dest.
 
Methods inherited from class org.gwtopenmaps.openlayers.client.geometry.Geometry
calculateBounds, clone, destroy, fromWKT, getArea, getBounds, getLength, 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

Point

protected Point(JSObject point)

Point

public Point(double x,
             double y)
Parameters:
x - - double
y - - double
Method Detail

narrowToPoint

public static Point narrowToPoint(JSObject point)

getX

public double getX()

getY

public double getY()

getId

public String getId()

setX

public void setX(double x)

setY

public void setY(double y)

getXY

public double[] getXY()

setXY

public void setXY(double x,
                  double y)

equals

public boolean equals(Point p)
APIMethod: equals Determine whether another geometry is equivalent to this one. Geometries are considered equivalent if all components have the same coordinates. Parameters: p - {} The geometry to test. Returns: {Boolean} The supplied geometry is equivalent to this geometry.


transform

public void transform(Projection source,
                      Projection dest)
Translate the x,y properties of the point from source to dest.

Parameters:
source -
dest -


Copyright © 2011 sourceforge. All Rights Reserved.