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

org.gwtopenmaps.openlayers.client.event.MouseEvent Maven / Gradle / Ivy

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

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

/**
 * @author Giuseppe La Scaleia - CNR IMAA geoSDI Group
 * @email [email protected]
 * 
 */
public class MouseEvent extends Event {

	protected MouseEvent(JSObject openLayersObject) {
		super(openLayersObject);
		// TODO Auto-generated constructor stub
	}

	public static MouseEvent narrowToMouseEvent(JSObject element) {
		return (element == null) ? null : new MouseEvent(element);
	}

	public Pixel getScreenPixel() {
		return new Pixel(MouseEventImpl.clientX(getJSObject()),
				MouseEventImpl.clientY(getJSObject()));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy