ShapeCollection
خلاصه ای
ShapeCollection یک کلاس در Aspose.Slides FOSS برای جاوا است. وارثان از: IShapeCollection, Iterable<IShape>.
مجموعه ای از شکل ها را روی یک اسلاید نشان می دهد.
این کلاس ۴۲ روش برای کار با ShapeCollection در برنامه های جاوا را فراهم می کند. روش های موجود شامل: ShapeCollection, addAutoShape, addAutoShapeImpl, addConnector, addConnectorImpl, addPictureFrame, addPictureFrameImpl, addTable, addTableImpl, asICollection, asIEnumerable, buildAutoShapeXml,و 23 روش دیگر. همه اعضای عمومی پس از نصب بسته Aspose.Slides FOSS for Java به هر برنامه جاوا قابل دسترسی هستند. خواص: parentGroup, spTree.
خواص
| نام: | نوع: | Access | شرح: |
|---|---|---|---|
spTree | Element | بخونید. | عنصر {@code <p:spTree>} را از اسلاید XML دریافت میکند. |
parentGroup | IGroupShape | بخونید. | گروه والد را دریافت میکند. |
روش ها
| Signature | شرح: |
|---|---|
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} در spTree، 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) | یک شکل را به موقعیت جدید در XML spTree تغییر می دهد. |
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() |