Package cn.mapway.ui.client.mvc
Class Size
- java.lang.Object
-
- cn.mapway.ui.client.mvc.Size
-
@JsType public class Size extends Object
Size 该size可以被javascript使用
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Sizeclone()SizecopyFrom(Size src)SizecopyTo(Size dest)static Sizecreate(double x, double y)doubledistanceTo(double tx, double ty)doubledistanceTo(Size target)doublegetX()intgetXAsInt()doublegetY()intgetYAsInt()Sizeoffset(double offsetX, double offsetY)Sizescale(double scaleX, double scaleY)Sizeset(double x, double y)StringtoString()StringtoSVGString()SVG representation points="50,0 21,90 98,35 2,35 79,90" x,y format
-
-
-
Method Detail
-
distanceTo
@JsMethod(name="distanceToXY") public double distanceTo(double tx, double ty)
-
distanceTo
@JsMethod(name="distanceToOtherSize") public double distanceTo(Size target)
-
create
public static Size create(double x, double y)
-
toSVGString
public String toSVGString()
SVG representation points="50,0 21,90 98,35 2,35 79,90" x,y format- Returns:
-
offset
public Size offset(double offsetX, double offsetY)
-
set
public Size set(double x, double y)
-
getX
public double getX()
-
getY
public double getY()
-
getXAsInt
public int getXAsInt()
-
getYAsInt
public int getYAsInt()
-
scale
public Size scale(double scaleX, double scaleY)
-
-