ShapeCollection

ShapeCollection

סקירה כללית

ShapeCollection הוא שיעור ב Aspose.Slides FOSS עבור Java. מורשת מ : IShapeCollection, Iterable<IShape>.

מייצג אוסף של צורות על סליד.

שיעור זה מספק 42 שיטות לעבוד עם אובייקטים ShapeCollection בתוכניות Java. שיטות זמינות כוללות: ShapeCollection, addAutoShape, addAutoShapeImpl, addConnector, addConnectorImpl, addPictureFrame, addPictureFrameImpl, addTable, addTableImpl, asICollection, asIEnumerable, buildAutoShapeXml,23 שיטות נוספות. כל החברים הציבוריים זמינים לכל יישום Java לאחר התקנת Aspose.Slides FOSS עבור חבילת Java. רכוש : parentGroup, spTree.

נכסים

שםסוגגישהתיאור
spTreeElementקראומקבל את האלמנט {@code <p:spTree>} מהסליד XML.
parentGroupIGroupShapeקראוקבל את קבוצת ההורים.

שיטות

חתימהתיאור
ShapeCollection()יצירת שקיעה ריקה.
ShapeCollection(spTree: Element, saveCallback: Runnable)יצירת ShapeCollection תומכת על ידי אלמנט עץ צורה מסוימת.
initInternal(spTree: Element, saveCallback: Runnable)הפתיחה פנימית עם רקע סליד.
getSpTree()Elementמקבל את האלמנט {@code <p:spTree>} מהסליד XML.
loadShapes()List<IShape>הורד את כל הצורות מ- XML, באמצעות המזכרת כאשר זמין.
invalidateCache()מונע את צורות ה-Cache, ומכריח מחדש על הגישה הבאה.
save()שינויים מתמשכים לחלק הזיכרון באמצעות שיחת ההחזרה.
nextShapeId()intמצא את ה-File ID הבא הזמין על ידי סריקה של כל התכונות {@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()

ראה גם

 עברית