com.google.maps.gwt.client
Class Size

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

public class Size
extends JavaScriptObject

THIS SOURCE CODE IS GENERATED, DO NOT MODIFY


Constructor Summary
protected Size()
          Protected constructor avoids default public constructor.
 
Method Summary
static Size create(double width, double height)
          Two-dimensonal size, where width is the distance on the x-axis, and height is the distance on the y-axis.
static Size create(double width, double height, java.lang.String widthUnit)
          Two-dimensonal size, where width is the distance on the x-axis, and height is the distance on the y-axis.
static Size create(double width, double height, java.lang.String widthUnit, java.lang.String heightUnit)
          Two-dimensonal size, where width is the distance on the x-axis, and height is the distance on the y-axis.
 boolean equals(Size other)
          Compares two Sizes.
 double getHeight()
          The height along the y-axis, in pixels.
 double getWidth()
          The width along the x-axis, in pixels.
 void setHeight(double height)
          The height along the y-axis, in pixels.
 void setWidth(double width)
          The width along the x-axis, in pixels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Size

protected Size()
Protected constructor avoids default public constructor.

Method Detail

create

public static Size create(double width,
                          double height,
                          java.lang.String widthUnit,
                          java.lang.String heightUnit)
Two-dimensonal size, where width is the distance on the x-axis, and height is the distance on the y-axis.


create

public static Size create(double width,
                          double height,
                          java.lang.String widthUnit)
Two-dimensonal size, where width is the distance on the x-axis, and height is the distance on the y-axis.


create

public static Size create(double width,
                          double height)
Two-dimensonal size, where width is the distance on the x-axis, and height is the distance on the y-axis.


equals

public final boolean equals(Size other)
Compares two Sizes.


getHeight

public final double getHeight()
The height along the y-axis, in pixels.


getWidth

public final double getWidth()
The width along the x-axis, in pixels.


setHeight

public final void setHeight(double height)
The height along the y-axis, in pixels.


setWidth

public final void setWidth(double width)
The width along the x-axis, in pixels.