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 | คําอธิบาย |
|---|---|---|---|
spTree | Element | อ่าน | ดึงเอาองค์ประกอบ {@code <p:spTree>} จากสไลด์ XML. |
parentGroup | IGroupShape | อ่าน | รับกลุ่มแม่. |
วิธีการ
| 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() |