Follow us on GitHub

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

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

public class Size
extends JavaScriptObject

Two-dimensional size, where width is the distance on the x-axis, and height is the distance on the y-axis.

See Size API Doc


Constructor Summary
protected Size()
          creates Two-dimensional size, where width is the distance on the x-axis, and height is the distance on the y-axis.
 
Method Summary
 boolean equals(Size other)
          Compares two Sizes.
 double getHeight()
          gets The height along the y-axis, in pixels.
 String getToString()
          Returns a string representation of this Size.
 double getWidth()
          gets The width along the x-axis, in pixels.
static Size newInstance(double width, double height)
          creates Two-dimensional size, where width is the distance on the x-axis, and height is the distance on the y-axis.
static Size newInstance(double width, double height, String widthUnit, String heightUnit)
          creates Two-dimensional size, where width is the distance on the x-axis, and height is the distance on the y-axis.
 void setHeight(double height)
          sets The height along the y-axis, in pixels.
 void setWidth(double width)
          sets The width along the x-axis, in pixels.
 
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()
creates Two-dimensional size, where width is the distance on the x-axis, and height is the distance on the y-axis. use newInstance();

Method Detail

newInstance

public static final Size newInstance(double width,
                                     double height,
                                     String widthUnit,
                                     String heightUnit)
creates Two-dimensional size, where width is the distance on the x-axis, and height is the distance on the y-axis.

Parameters:
width -
height -
widthUnit -
heightUnit -
Returns:
Size

newInstance

public static final Size newInstance(double width,
                                     double height)
creates Two-dimensional size, where width is the distance on the x-axis, and height is the distance on the y-axis.

Parameters:
width -
height -
Returns:
Size

equals

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

Parameters:
other -
Returns:
boolean

getToString

public final String getToString()
Returns a string representation of this Size.


setHeight

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

Parameters:
height -

getHeight

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


setWidth

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

Parameters:
width -

getWidth

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



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.