ShapeCollection

ShapeCollection

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)JenisAksesDeskripsi
spTreeElementBacalah.Properti mendapatkan elemen <p:spTree> yang mendasari
parentGroupIGroupShapeBacalah.Properti mendapatkan atau menetapkan bentuk kelompok induk dari koleksi ini

Metode-metode yang digunakan

Tanda tanganDeskripsi
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() → ElementDapatkan 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() → intMenemukan 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) → ElementMembangun 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) → ElementMembangun XML untuk elemen konektor baru ({@code <p:cxnSp>}).
addAutoShapeImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IAutoShapeImplementasi inti untuk menambahkan atau memasukkan AutoShape.
addConnectorImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IConnectorImplementasi inti untuk menambahkan atau memasukkan konektor.
addPictureFrameImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage) → IPictureFrameImplementasi inti untuk menambahkan atau memasukkan bingkai gambar.
addTableImpl(index: Integer, x: double, y: double, colWidths: double[], rowHeights: double[]) → ITableImplementasi inti untuk menambahkan atau memasukkan tabel.
reorderSingle(newIndex: int, shape: IShape)Mengatur ulang bentuk tunggal ke posisi baru dalam spTree XML.
getParentGroup() → IGroupShapeMengembalikan 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) → IShapeMengembalikan 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) → IAutoShapeMenambahkan 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) → IAutoShapeMenambahkan 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) → IConnectorMenambahkan 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) → IConnectorMenambahkan 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()
 Bahasa Indonesia