ShapeCollection

المعلومات العامة

ShapeCollection هي فئة في Aspose.Slides FOSS لـ Java. الميراث من: IShapeCollection, Iterable<IShape>.

يمثل مجموعة من الأشكال على الشريحة.

خصائص

اسمالنوعالوصولوصف
spTreeElementاقرأالممتلكات تحصل على عنصر <p:spTree> الأساسي
parentGroupIGroupShapeاقرأالعقار يحصل على أو يحدد شكل المجموعة الأم لهذا المجمع

الطرق

التوقيعوصف
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>يعيد الأشكال كـ Iterable
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()
 العربية