Rectangle
Overview
Rectangle เป็นคลาสใน Aspose.PDF FOSS สําหรับ Java. ทายาทจาก: Shape.
แสดงรูปแบบวาดสี่เหลี่ยม.
หมวดนี้ให้วิธีการ 12 สําหรับทํางานกับวัตถุ Rectangle ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: Rectangle, checkBounds, getBottom, getHeight, getLeft, getRoundedCornerRadius, getWidth, setBottom, setHeight, setLeft, setRoundedCornerRadius, setWidth. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: bottom, height, left, roundedCornerRadius, width.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
left | float | Read | ได้รหัส x ของมุมด้านซ้ายล่าง. |
bottom | float | Read | ได้ y-coordinate ของมุมด้านซ้ายล่าง. |
width | float | Read | ได้ความกว้างของสี่เหลี่ยม. |
height | float | Read | ได้ความสูงของสี่เหลี่ยม. |
roundedCornerRadius | float | Read | ได้รังสีมุมสําหรับสี่เหลี่ยมกลม. |
Methods
| Signature | Description |
|---|---|
Rectangle(left: float, bottom: float, width: float, height: float) | สร้างสี่เหลี่ยมใหม่ที่มีตําแหน่งและขนาดที่กําหนดไว้. |
getLeft() → float | ได้รหัส x ของมุมด้านซ้ายล่าง. |
setLeft(left: float) | ตั้งจุดประสาน x ของมุมด้านซ้ายล่าง. |
getBottom() → float | ได้ y-coordinate ของมุมด้านซ้ายล่าง. |
setBottom(bottom: float) | กําหนด y-coordinate ของมุมด้านซ้ายล่าง. |
getWidth() → float | ได้ความกว้างของสี่เหลี่ยม. |
setWidth(width: float) | กําหนดความกว้างของสี่เหลี่ยม. |
getHeight() → float | ได้ความสูงของสี่เหลี่ยม. |
setHeight(height: float) | กําหนดความสูงของสี่เหลี่ยม. |
getRoundedCornerRadius() → float | ได้รังสีมุมสําหรับสี่เหลี่ยมกลม. |
setRoundedCornerRadius(roundedCornerRadius: float) | กําหนดรัศมีมุมสําหรับสี่เหลี่ยมกลม. |
checkBounds(containerWidth: double, containerHeight: double) | {@inheritDoc} / |