PropertyCollection (pemegang tempat)
Pengamatan umum
ShapeCollection adalah kelas di Aspose.Slides FOSS untuk Java. Warisan dari: IShapeCollection, Iterable<IShape>.
Menampilkan koleksi bentuk pada slide.
Sifat-sifatnya
| Nama (Inggris) | Jenis | Akses | Deskripsi |
|---|---|---|---|
spTree | Element | Bacalah. | Properti mendapatkan elemen <p:spTree> yang mendasari |
parentGroup | IGroupShape | Bacalah. | Properti mendapatkan atau menetapkan bentuk kelompok induk dari koleksi ini |
Metode-metode yang digunakan
| Tanda tangan | Deskripsi |
|---|---|
ShapeCollection() | Membuat ShapeCollection kosong. |
ShapeCollection(spTree: Element, saveCallback: Runnable) | Membuat ShapeCollection didukung oleh elemen pohon bentuk yang diberikan. |
initInternal(spTree: Element, saveCallback: Runnable) | Inisialisasi internal dengan konteks slide. |
getSpTree() → Element | Dapatkan elemen {@code <p:spTree>} dari slide XML. |
loadShapes() → List<IShape> | Mengunggah semua bentuk dari XML, menggunakan cache saat tersedia. |
invalidateCache() | Menonaktifkan cache bentuk, memaksa pengisian ulang pada akses berikutnya. |
save() | Perubahan di bagian slide tetap terjadi melalui penarikan kembali. |
nextShapeId() → int | Menemukan ID bentuk yang tersedia berikutnya dengan memindai semua atribut {@code id} |
| di spTree. | |
buildAutoShapeXml(shapeId: int, name: String, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → Element | Membangun XML untuk elemen baru AutoShape ({@code <p:sp>}). |
buildConnectorXml(shapeId: int, name: String, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → Element | Membangun XML untuk elemen konektor baru ({@code <p:cxnSp>}). |
addAutoShapeImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IAutoShape | Implementasi inti untuk menambahkan atau memasukkan AutoShape. |
addConnectorImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IConnector | Implementasi inti untuk menambahkan atau memasukkan konektor. |
addPictureFrameImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage) → IPictureFrame | Implementasi inti untuk menambahkan atau memasukkan bingkai gambar. |
addTableImpl(index: Integer, x: double, y: double, colWidths: double[], rowHeights: double[]) → ITable | Implementasi inti untuk menambahkan atau memasukkan tabel. |
reorderSingle(newIndex: int, shape: IShape) | Mengatur ulang bentuk tunggal ke posisi baru dalam spTree XML. |
getParentGroup() → IGroupShape | Mengembalikan bentuk kelompok induk dari koleksi ini |
setParentGroup(parentGroup: IGroupShape) | Menetapkan bentuk kelompok induk untuk koleksi ini. |
asICollection() → List<IShape> | Mengembalikan bentuk sebagai daftar |
asIEnumerable() → Iterable<IShape> | Mengembalikan bentuk sebagai Iterable |
get(index: int) → IShape | Mengembalikan bentuk pada indeks yang ditentukan |
size() → int | |
iterator() → Iterator<IShape> | Mengembalikan iterator pada bentuk dalam koleksi ini. |
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double) → IAutoShape | Menambahkan AutoShape baru dengan tipe dan geometri yang diberikan ke akhir koleksi |
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 | Menambahkan AutoShape baru pada indeks dengan templat opsional flag |
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 | Menambahkan konektor baru dengan tipe dan geometri yang diberikan ke akhir |
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 | Menambahkan konektor baru pada indeks yang diberikan |
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() |