|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.base.Size
public class Size
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 |
---|
protected Size()
Method Detail |
---|
public static final Size newInstance(double width, double height, String widthUnit, String heightUnit)
width
- height
- widthUnit
- heightUnit
-
Size
public static final Size newInstance(double width, double height)
width
- height
-
Size
public 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()
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |