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 PersonTyp derZugang zu den InformationenBeschreibung
spTreeElementLesen Sie .Eigentum erhält das zugrunde liegende <p:spTree> Element
parentGroupIGroupShapeLesen Sie .Eigenschaft erhält oder setzt die Gruppengestalt dieser Sammlung.

Methoden und Verfahren

UnterzeichnungBeschreibung
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()ElementErhä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()intFinden 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)ElementErstellt 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)ElementErstellt 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)IAutoShapeKernimplementierung 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)IConnectorKernimplementierung 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)IPictureFrameKernimplementierung für das Hinzufügen oder Einfügt eines Bildrahmen.
addTableImpl(index: Integer, x: double, y: double, colWidths: double[], rowHeights: double[])ITableKernimplementierung 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()IGroupShapeGibt die Gruppenausstattung dieser Sammlung zurück .
setParentGroup(parentGroup: IGroupShape)Setzt die Gruppenabbildung für diese Sammlung.
asICollection()List<IShape>Gibt die Formen als Liste zurück.
asIEnumerable()Iterable<IShape>Gibt die Formen als Iterable zurück.
get(index: int)IShapeGibt 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)IAutoShapeFü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)IAutoShapeEinfü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)IConnectorFü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)IConnectorEinfü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()
 Deutsch