All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gwtopenmaps.openlayers.client.geometry.PointImpl Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package org.gwtopenmaps.openlayers.client.geometry;

import org.gwtopenmaps.openlayers.client.util.JSObject;

/**
 * @author Edwin Commandeur - Atlis EJS
 *
 */
public class PointImpl {

    public native static JSObject create(double x, double y)/*-{
        return new $wnd.OpenLayers.Geometry.Point(x, y);
    }-*/;

    public native static double getX(JSObject self)/*-{
        return self.x;
    }-*/;

    public native static double getY(JSObject self)/*-{
        return self.y;
    }-*/;

    public native static String getId(JSObject self)/*-{
        return self.id;
    }-*/;

    public native static void setX(JSObject self, double x)/*-{
        self.x = x;
    }-*/;

    public native static void setY(JSObject self, double y)/*-{
        self.y = y;
    }-*/;

    public native static boolean equals(JSObject self, JSObject geom)/*-{
        self.equals(geom);
    }-*/;

    public native static void transform(JSObject self, JSObject source, JSObject dest)/*-{
        self.transform(source, dest);
    }-*/;
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy