public class Size extends JavaScriptObject
| Modifier | Constructor and Description |
|---|---|
protected |
Size()
creates Two-dimensional size, where width is the distance on the x-axis, and height is the distance on the y-axis.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toStringprotected Size()
public static final Size newInstance(double width, double height, String widthUnit, String heightUnit)
width - height - widthUnit - heightUnit - Sizepublic static final Size newInstance(double width, double height)
width - height - Sizepublic final boolean equals(Size other)
other - public final String getToString()
public final void setHeight(double height)
height - public final double getHeight()
public final void setWidth(double width)
width - public final double getWidth()
Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.