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

org.gwtopenmaps.openlayers.client.Pixel Maven / Gradle / Ivy

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

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

/**
 *
 * @author Erdem Gunay
 * @author Curtis Jensen
 *
 */
public class Pixel extends OpenLayersObjectWrapper {

	protected Pixel(JSObject element) {
		super(element);
	}

	public static Pixel narrowToPixel(JSObject element)
	{
		return (element == null)? null: new Pixel(element);
	}

	public Pixel(int x, int y) {
		this(PixelImpl.create(x, y));
	}
	
	public Pixel(float x, float y) {
		this(PixelImpl.create(x, y));
	}
	public int x() {
		return PixelImpl.getX(this.getJSObject());
	}
	
	public int y() {
		return PixelImpl.getY(this.getJSObject());
	}
	
	public String toString() {
		return PixelImpl.toString(getJSObject());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy