ShapeCollection

ShapeCollection

ภาพรวม

ShapeCollection เป็นคลาสใน Aspose.Slides FOSS สําหรับ Java. ทายาทจาก: IShapeCollection, Iterable<IShape>.

แสดงให้เห็นถึงรูปแบบบนสไลด์.

หมวดนี้ให้ 42 วิธีในการทํางานกับ ShapeCollection วัตถุในโปรแกรม Java. วิธีการที่ใช้ได้แก่: ShapeCollection, addAutoShape, addAutoShapeImpl, addConnector, addConnectorImpl, addPictureFrame, addPictureFrameImpl, addTable, addTableImpl, asICollection, asIEnumerable, buildAutoShapeXml,และ 23 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: parentGroup, spTree.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
spTreeElementอ่านดึงเอาองค์ประกอบ {@code <p:spTree>} จากสไลด์ XML.
parentGroupIGroupShapeอ่านรับกลุ่มแม่.

วิธีการ

Signatureคําอธิบาย
ShapeCollection()สร้าง ShapeCollection ที่ว่างเปล่า.
ShapeCollection(spTree: Element, saveCallback: Runnable)สร้าง ShapeCollection ที่รองรับโดยองค์ประกอบต้นรูปที่ให้.
initInternal(spTree: Element, saveCallback: Runnable)การเริ่มต้นภายในกับสไลด์แวดล้อม.
getSpTree()Elementดึงเอาองค์ประกอบ {@code <p:spTree>} จากสไลด์ XML.
loadShapes()List<IShape>โหลดรูปทั้งหมดจาก XML โดยใช้ cache เมื่อมีอยู่.
invalidateCache()ทําให้การเก็บข้อมูลของ Shape ไม่สมควร และทําให้ต้องรีโลดเมื่อเข้าถึงครั้งต่อไป.
save()การเปลี่ยนแปลงที่ยังคงอยู่ในส่วนของสไลด์ผ่านการเรียกคืน Save.
nextShapeId()intค้นหา ID รูปแบบที่มีอยู่ต่อไปโดยการสแกนคุณสมบัติทั้งหมด {@code id} ใน spTree.
buildAutoShapeXml(shapeId: int, name: String, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)Elementสร้าง XML สําหรับองค์ประกอบใหม่ AutoShape ({@code <p:sp>}).
buildConnectorXml(shapeId: int, name: String, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)Elementสร้าง XML สําหรับตัวเชื่อมใหม่ ({@code <p:cxnSp>}).
addAutoShapeImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IAutoShapeการนํามาใช้งานหลักสําหรับการเพิ่มหรือใส่ AutoShape.
addConnectorImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IConnectorการนํามาใช้งานหลักในการเพิ่มหรือใส่ตัวเชื่อม.
addPictureFrameImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage)IPictureFrameการนํามาใช้งานหลักในการเพิ่มหรือใส่กรอบภาพ.
addTableImpl(index: Integer, x: double, y: double, colWidths: double[], rowHeights: double[])ITableการดําเนินงานหลักในการเพิ่มหรือใส่ตาราง.
reorderSingle(newIndex: int, shape: IShape)เรียงรูปแบบเดียวไปยังตําแหน่งใหม่ภายใน spTree XML.
getParentGroup()IGroupShapeการคืนกลุ่มแม่.
setParentGroup(parentGroup: IGroupShape)ตั้งค่ารูปร่างกลุ่มแม่สำหรับคอลเลกชันนี้.
asICollection()List<IShape>การคืนรูปแบบเป็นรายการ
asIEnumerable()Iterable<IShape>การคืนรูปแบบเป็น Iterable
get(index: int)IShapeส่งผลการแสดงรูปแบบที่อัตราฐานที่กําหนดไว้
size()int
iterator()Iterator<IShape>กลับตัวอิเตอร์เนอร์บนรูปแบบในคอลเลกชั่นนี้.
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double)IAutoShapeเพิ่ม AutoShape ใหม่ที่มีชนิดและรูปทรงที่ให้ไว้
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IAutoShape
insertAutoShape(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double)IAutoShapeการใส่ AutoShape ใหม่ที่อินเด็กซ์ที่มีชนิดและรูปทรงการแสดงให้ทราบ
insertAutoShape(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IAutoShape
addConnector(shapeType: ShapeType, x: double, y: double, width: double, height: double)IConnectorเพิ่มตัวเชื่อมใหม่ที่มีประเภทและรูปทรงที่กําหนดไว้
addConnector(shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IConnector
insertConnector(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double)IConnectorการใส่ตัวเชื่อมที่อัตราการแสดงด้วยชนิดและรูปทรง geometry ที่ได้รับ
insertConnector(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IConnector
addPictureFrame(shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage)IPictureFrame
insertPictureFrame(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage)IPictureFrame
addTable(x: double, y: double, colWidths: double[], rowHeights: double[])ITable
insertTable(index: int, x: double, y: double, colWidths: double[], rowHeights: double[])ITable
indexOf(shape: IShape)int
toArray()IShape[]
toArray(startIndex: int, count: int)IShape[]
reorder(index: int, shape: IShape)
reorder(index: int, shapesToReorder: IShape[])
removeAt(index: int)
remove(shape: IShape)
clear()

ดูเช่นกัน

 ภาษาไทย