org.gwtopenmaps.openlayers.client
Class Size

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by 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)
           
 
Method Summary
 boolean equals(Size size)
          Returns true when the size object argument has the same width and height as the size object, and false otherwise.
 float getHeight()
           
 float getWidth()
           
static Size narrowToSize(JSObject size)
           
 void setHeight(float height)
           
 void setWidth(float width)
           
 String toString()
           
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
getClassName, getEvents, narrowToOpenLayersObjectWrapper
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Size

protected Size(JSObject size)

Size

public Size(int w,
            int h)

Size

public Size(float width,
            float height)
Method Detail

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.