Rect

Общ преглед

Rect е клас в Aspose.3D FOSS за Java. Наследници от: Struct<Rect>, Serializable.

Класа, която представлява правоъгълника.

Този клас предоставя 19 метода за работа с обекти Rect в програми на Java. Наличните методи включват: Rect, clone, contains, copyFrom, equals, getBottom, getHeight, getLeft, getRight, getTop, getWidth, getX, и 6 допълнителни методи. Всички публични членове са достъпни за всяко приложение на Java след инсталиране на пакета Aspose.3D FOSS for Java. Свойства: bottom, height, left, right, top, width, и още 2 .

Свойства на веществата

NameTypeAccessDescription
xintReadGets the x of the size @return the x of the size /
yintReadGets the y of the size @return the y of the size /
widthintReadGets the width of the size @return the width of the size /
heightintReadGets the height of the size @return the height of the size /
leftintReadGets the left of the rectangle @return the left of the rectangle /
rightintReadGets the right of the rectangle @return the right of the rectangle /
topintReadGets the top of the rectangle @return the top of the rectangle /
bottomintReadGets the bottom of the rectangle @return the bottom of the rectangle /

Методи за изчисляване на данните

SignatureDescription
Rect()Calls Rect on this Rect instance.
Rect(x: int, y: int, width: int, height: int)Calls Rect(x, y, width, height) on this Rect instance.
getX()intGets the x of the size @return the x of the size /
setX(value: int)Sets the x of the size @param value New value /
getY()intGets the y of the size @return the y of the size /
setY(value: int)Sets the y of the size @param value New value /
getWidth()intGets the width of the size @return the width of the size /
setWidth(value: int)Sets the width of the size @param value New value /
getHeight()intGets the height of the size @return the height of the size /
setHeight(value: int)Sets the height of the size @param value New value /
getLeft()intGets the left of the rectangle @return the left of the rectangle /
getRight()intGets the right of the rectangle @return the right of the rectangle /
getTop()intGets the top of the rectangle @return the top of the rectangle /
getBottom()intGets the bottom of the rectangle @return the bottom of the rectangle /
contains(x: int, y: int)booleanReturn true if the given point is inside the rectangle.
clone()RectClone current instance @return cloned instance /
copyFrom(src: Rect)Description copied from interface: Struct @param src source instance to copy /
hashCode()intCalls hashCode on this Rect instance.
equals(obj: Object)booleanCalls equals(obj) on this Rect instance.

Вижте също:

 Български