com.google.gwt.maps.client.geom
Class Size

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.geom.Size

public class Size
extends com.google.gwt.core.client.JavaScriptObject

A Size represents the size in pixels of a rectangular area of the map. The size object has two parameters, width and height. Width is a difference in the x-coordinate; height is a difference in the y-coordinate, of points.


Constructor Summary
protected Size()
           
 
Method Summary
 int getHeight()
          Returns the height parameter.
 int getWidth()
          Returns the width parameter.
static Size newInstance(int width, int height)
          Construct a new Size object.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Size

protected Size()
Method Detail

newInstance

public static Size newInstance(int width,
                               int height)
Construct a new Size object.

Parameters:
width - Width is a difference in the x-coordinate.
height - height is a difference in the y-coordinate, of points.

getHeight

public final int getHeight()
Returns the height parameter.

Returns:
the height parameter.

getWidth

public final int getWidth()
Returns the width parameter.

Returns:
the width parameter.