ShapeCollection
Übersicht über die
ShapeCollection ist eine Klasse in Aspose.Slides FOSS für Java. Erben von: IShapeCollection, Iterable<IShape>.
Darstellt eine Sammlung von Formen auf einer Folie.
Eigenschaften
| Name der Person | Typ der | Zugang zu den Informationen | Beschreibung |
|---|---|---|---|
spTree | Element | Lesen Sie . | Eigentum erhält das zugrunde liegende <p:spTree> Element |
parentGroup | IGroupShape | Lesen Sie . | Eigenschaft erhält oder setzt die Gruppengestalt dieser Sammlung. |
Methoden und Verfahren
| Unterzeichnung | Beschreibung |
|---|---|
ShapeCollection() | Erstellt einen leeren ShapeCollection. |
ShapeCollection(spTree: Element, saveCallback: Runnable) | Erstellt ein ShapeCollection, das durch die gegebene Formbaumelement unterstützt wird. |
initInternal(spTree: Element, saveCallback: Runnable) | Interne Initialisierung mit Dias-Kontext. |
getSpTree() → Element | Erhält das {@code <p:spTree>} Element aus dem XML-Slide. |
loadShapes() → List<IShape> | Lade alle Formen aus dem XML, indem du den Cache benutzt. |
invalidateCache() | Invalidiert den Shape-Cache, erzwingt eine Neuladen beim nächsten Zugriff. |
save() | Änderungen am Bildschirmteil durch den Rückruf des Speichers bestehen. |
nextShapeId() → int | Finden Sie die nächste verfügbare Form-ID, indem alle Attribute {@code id} gescannt werden. |
| In den SpTree. | |
buildAutoShapeXml(shapeId: int, name: String, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → Element | Erstellt XML für ein neues AutoShape ({@code <p:sp>}) Element. |
buildConnectorXml(shapeId: int, name: String, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → Element | Erstellt XML für ein neues Connector ({@code <p:cxnSp>}) Element. |
addAutoShapeImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IAutoShape | Kernimplementierung für das Hinzufügen oder Einfügt eines AutoShape. |
addConnectorImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IConnector | Kernimplementierung für das Hinzufügen oder Einführen eines Steckers. |
addPictureFrameImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage) → IPictureFrame | Kernimplementierung für das Hinzufügen oder Einfügt eines Bildrahmen. |
addTableImpl(index: Integer, x: double, y: double, colWidths: double[], rowHeights: double[]) → ITable | Kernimplementierung für das Hinzufügen oder Einfügt einer Tabelle. |
reorderSingle(newIndex: int, shape: IShape) | Ordnet eine einzelne Form an eine neue Position innerhalb des XML-Baumes um. |
getParentGroup() → IGroupShape | Gibt die Gruppenausstattung dieser Sammlung zurück . |
setParentGroup(parentGroup: IGroupShape) | Setzt die Gruppenabbildung für diese Sammlung. |
asICollection() → List<IShape> | Gibt die Formen als Liste |
asIEnumerable() → Iterable<IShape> | Gibt die Formen als Iterable |
get(index: int) → IShape | Gibt die Form im angegebenen Index zurück. |
size() → int | |
iterator() → Iterator<IShape> | Gibt einen Iterator über die Formen in dieser Sammlung zurück. |
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double) → IAutoShape | Fügt ein neues AutoShape mit gegebener Art und Geometrie zum Ende der Sammlung hinzu. |
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 | Einfügt einen neuen AutoShape in den Index mit optionalem Vorlage-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 | Fügt einen neuen Anschluss mit gegebener Art und Geometrie zum Ende hinzu |
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 | Einfügt einen neuen Anschluss in den angegebenen Index. |
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() |