org.gwtopenmaps.openlayers.client.event.MouseEvent Maven / Gradle / Ivy
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