Package cn.mapway.ui.client.mvc
Class Rect
java.lang.Object
cn.mapway.ui.client.mvc.Rect
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable,Serializable
public class Rect
extends Object
implements Serializable, com.google.gwt.user.client.rpc.IsSerializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Rectclone()final booleancontains(double x, double y) final booleanfinal Rectfinal Rectfinal Rectexpand(double top, double right, double bottom, double left) final Rectextend(double x, double y) final Rectfinal Sizefinal doubleintgetSize()final doublegetWidth()intfinal doublegetX()intfinal doublegetY()intfinal booleanfinal Rect正交化对象final Rectoffset(double dx, double dy) final Rectset(double startX, double startY, double width, double height) final RectsetHeight(double height) final RectsetWidth(double width) final voidsetX(double x) final voidsetY(double y) final Rectshrink(double left, double top, double right, double bottom) snapToGrid(int gridSize) final StringtoString()output json format
-
Field Details
-
x
public double x -
y
public double y -
width
public double width -
height
public double height
-
-
Constructor Details
-
Rect
public Rect() -
Rect
public Rect(double x, double y, double width, double height)
-
-
Method Details
-
getSize
-
getXAsInt
public int getXAsInt() -
getYAsInt
public int getYAsInt() -
getWidthAsInt
public int getWidthAsInt() -
getHeightAsInt
public int getHeightAsInt() -
toString
output json format -
offset
-
expand
-
getCenter
-
clone
-
contains
-
contains
public final boolean contains(double x, double y) -
extend
-
extend
-
shrink
-
normalize
正交化对象 -
intersect
-
copyFrom
-
copyTo
-
getX
public final double getX() -
setX
public final void setX(double x) -
getY
public final double getY() -
setY
public final void setY(double y) -
getWidth
public final double getWidth() -
setWidth
-
getHeight
public final double getHeight() -
setHeight
-
set
-
snapToGrid
-