Skip to main content

UIRect

Complete API reference for UIRect, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: UI

Component: yes


public class UIRect extends Component

Constructors

SignatureDescription
UIRect()Creates a new instance of UIRect.

Virtual Attributes

NameTypeAccessDescription
autoSHbooleansetVirtual attribute exposed by setAutoSH. Access it like a field to read or write the underlying value.
autoSWbooleansetVirtual attribute exposed by setAutoSW. Access it like a field to read or write the underlying value.
marginBottomintget/setVirtual attribute exposed by getMarginBottom. Access it like a field to read or write the underlying value.
marginLeftintget/setVirtual attribute exposed by getMarginLeft. Access it like a field to read or write the underlying value.
marginRightintget/setVirtual attribute exposed by getMarginRight. Access it like a field to read or write the underlying value.
marginTopintget/setVirtual attribute exposed by getMarginTop. Access it like a field to read or write the underlying value.
paddingBottomintget/setVirtual attribute exposed by getPaddingBottom. Access it like a field to read or write the underlying value.
paddingLeftintget/setVirtual attribute exposed by getPaddingLeft. Access it like a field to read or write the underlying value.
paddingRightintget/setVirtual attribute exposed by getPaddingRight. Access it like a field to read or write the underlying value.
paddingTopintget/setVirtual attribute exposed by getPaddingTop. Access it like a field to read or write the underlying value.
positionPoint2getVirtual attribute exposed by getPosition. Access it like a field to read or write the underlying value.
positionXintget/setVirtual attribute exposed by getPositionX. Access it like a field to read or write the underlying value.
positionYintget/setVirtual attribute exposed by getPositionY. Access it like a field to read or write the underlying value.
sizePoint2getVirtual attribute exposed by getSize. Access it like a field to read or write the underlying value.
sizeXintget/setVirtual attribute exposed by getSizeX. Access it like a field to read or write the underlying value.
sizeYintget/setVirtual attribute exposed by getSizeY. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
getScreenWidth()intReturns the current screenWidth value.
getScreenHeight()intReturns the current screenHeight value.
getScreenPositionX()intReturns the current screenPositionX value.
getScreenPositionY()intReturns the current screenPositionY value.
getMarginBottom()intReturns the current marginBottom value.
getMarginLeft()intReturns the current marginLeft value.
getMarginRight()intReturns the current marginRight value.
getMarginTop()intReturns the current marginTop value.
getPaddingBottom()intReturns the current paddingBottom value.
getPaddingLeft()intReturns the current paddingLeft value.
getPaddingRight()intReturns the current paddingRight value.
getPaddingTop()intReturns the current paddingTop value.
getPosition()Point2Returns the current position value.
getPositionX()intReturns the current positionX value.
getPositionY()intReturns the current positionY value.
getSize()Point2Returns the current size value.
getSizeX()intReturns the current sizeX value.
getSizeY()intReturns the current sizeY value.
isAutoSH()booleanReturns whether autoSH is true.
isAutoSW()booleanReturns whether autoSW is true.
setAutoSH(boolean)voidSets autoSH.
setAutoSW(boolean)voidSets autoSW.
setMarginBottom(int)voidSets marginBottom.
setMarginLeft(int)voidSets marginLeft.
setMarginRight(int)voidSets marginRight.
setMarginTop(int)voidSets marginTop.
setPaddingBottom(int)voidSets paddingBottom.
setPaddingLeft(int)voidSets paddingLeft.
setPaddingRight(int)voidSets paddingRight.
setPaddingTop(int)voidSets paddingTop.
setPosition(int, int)voidSets position.
setPositionX(int)voidSets positionX.
setPositionY(int)voidSets positionY.
setSize(int, int)voidSets size.
setSizeX(int)voidSets sizeX.
setSizeY(int)voidSets sizeY.