ShapeCollection
المعلومات العامة
ShapeCollection هي فئة في Aspose.Slides FOSS لـ Java. الميراث من: IShapeCollection, Iterable<IShape>.
يمثل مجموعة من الأشكال على الشريحة.
خصائص
| اسم | النوع | الوصول | وصف |
|---|---|---|---|
spTree | Element | اقرأ | الممتلكات تحصل على عنصر <p:spTree> الأساسي |
parentGroup | IGroupShape | اقرأ | العقار يحصل على أو يحدد شكل المجموعة الأم لهذا المجمع |
الطرق
| التوقيع | وصف |
|---|---|
ShapeCollection() | يخلق ShapeCollection فارغ. |
ShapeCollection(spTree: Element, saveCallback: Runnable) | يخلق ShapeCollection مدعومًا عن طريق عنصر شجرة الشكل المحدد. |
initInternal(spTree: Element, saveCallback: Runnable) | التمهيديات الداخلية مع سياق الشريحة. |
getSpTree() → Element | يحصل على عنصر {@code <p:spTree>} من الشريحة XML. |
loadShapes() → List<IShape> | يقوم بتحميل جميع الأشكال من XML، باستخدام الذاكرة المؤقتة عندما تكون متاحة. |
invalidateCache() | يُبطل مخزن الأشكال، ويجبر على إعادة التحميل عند الوصول القادم. |
save() | استمر التغييرات على الجزء المشرط عبر إعادة الإستدعاء. |
nextShapeId() → int | يجد معرف الشكل المتاح التالي عن طريق مسح جميع صفات {@code id} |
| في شجرة السب. | |
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> | يعيد الأشكال كـ |
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 | يضيف رابط جديد في المؤشر المحدد |
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() |