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

NameTypeAccessDescription
leftfloatReadได้รหัส x ของมุมด้านซ้ายล่าง.
bottomfloatReadได้ y-coordinate ของมุมด้านซ้ายล่าง.
widthfloatReadได้ความกว้างของสี่เหลี่ยม.
heightfloatReadได้ความสูงของสี่เหลี่ยม.
roundedCornerRadiusfloatReadได้รังสีมุมสําหรับสี่เหลี่ยมกลม.

Methods

SignatureDescription
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} /

See Also

 ภาษาไทย