Class Rectangle
java.lang.Object
org.ofdrw.layout.Rectangle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToHeight(double delta) 增加高度voidaddToWidth(double delta) 增加宽度clone()doubledoublegetWidth()doublegetX()doublegetY()booleanisEmpty()reduce(double height) 缩减矩形区域voidsetHeight(double height) voidsetWidth(double width) voidsetX(double x) voidsetY(double y) toString()
-
Field Details
-
Empty
-
-
Constructor Details
-
Rectangle
public Rectangle(double x, double y, double width, double height) -
Rectangle
public Rectangle(double width, double height)
-
-
Method Details
-
addToWidth
public void addToWidth(double delta) 增加宽度- Parameters:
delta- 增加量(正为增,负为减)
-
addToHeight
public void addToHeight(double delta) 增加高度- Parameters:
delta- 增加量(正为增,负为减)
-
isEmpty
public boolean isEmpty() -
getWidth
public double getWidth() -
setWidth
public void setWidth(double width) -
getHeight
public double getHeight() -
setHeight
public void setHeight(double height) -
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
reduce
-
clone
-
toString
-