org.gwtopenmaps.openlayers.client
Class Size
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
org.gwtopenmaps.openlayers.client.Size
public class Size
- extends OpenLayersObjectWrapper
OpenLayers BaseType representing a width/height pair.
- Author:
- Erdem Gunay, Edwin Commandeur
Constructor Summary |
|
Size(float width,
float height)
|
|
Size(int w,
int h)
|
protected |
Size(JSObject size)
|
Size
protected Size(JSObject size)
Size
public Size(int w,
int h)
Size
public Size(float width,
float height)
narrowToSize
public static Size narrowToSize(JSObject size)
getWidth
public float getWidth()
setWidth
public void setWidth(float width)
getHeight
public float getHeight()
setHeight
public void setHeight(float height)
equals
public boolean equals(Size size)
- Returns true when the size object argument has the same width and
height as the size object, and false otherwise.
- Parameters:
size
- - see Size
.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 sourceforge. All Rights Reserved.