ShapeCollection
Genel Bakış
ShapeCollection Java için FOSS’de bir sınıf. Mirasçılar: IShapeCollection, Iterable<IShape>.
Bir slaytta bir dizi şekil temsil eder.
Bu sınıf, Java programlarında ShapeCollection nesnelerle çalışmak için 42 yöntem sağlar. Kullanılabilir yöntemler şunlardır: ShapeCollection, addAutoShape, addAutoShapeImpl, addConnector, addConnectorImpl, addPictureFrame, addPictureFrameImpl, addTable, addTableImpl, asICollection, asIEnumerable, buildAutoShapeXml, ve 23 ek yöntem. Tüm kamu üyeleri, Java için FOSS paketini yükledikten sonra herhangi bir Java uygulamasına erişilebilir. Özellikleri: parentGroup, spTree.
Özellikler
| Adı: | Tip: | Access | Açıklama: |
|---|---|---|---|
spTree | Element | Oku . | Slayt XML içindeki {@code <p:spTree>} öğesini alır. |
parentGroup | IGroupShape | Oku . | Üst grubu alır. |
Yöntemler
| Signature | Açıklama: |
|---|---|
ShapeCollection() | Boş bir ShapeCollection oluşturur. |
ShapeCollection(spTree: Element, saveCallback: Runnable) | Verilen şekil ağacı unsuru tarafından desteklenen bir ShapeCollection oluşturur. |
initInternal(spTree: Element, saveCallback: Runnable) | Slide bağlamı ile iç başlangıç. |
getSpTree() → Element | Slayt XML içindeki {@code <p:spTree>} öğesini alır. |
loadShapes() → List<IShape> | XML’den tüm şekilleri yükler, mevcut olduğunda önbellek kullanılır. |
invalidateCache() | Şekil önbelleğini geçersiz kılar, bir sonraki erişimde yeniden yüklenmeye zorlar. |
save() | Kaydet geri çağrısı ile slayt kısmında değişiklikler devam ediyor. |
nextShapeId() → int | SpTree’deki tüm {@code id} özelliklerini tarayarak bir sonraki mevcut şekil kimliğini bulur. |
buildAutoShapeXml(shapeId: int, name: String, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → Element | Yeni bir AutoShape ({@code <p:sp>}) elemanı için XML oluşturur. |
buildConnectorXml(shapeId: int, name: String, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → Element | Yeni bir bağlantı elemanı için XML oluşturur. |
addAutoShapeImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IAutoShape | AutoShape eklemek veya takmak için temel uygulama. |
addConnectorImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IConnector | Bir bağlantı eklemek veya yerleştirmek için temel uygulama. |
addPictureFrameImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage) → IPictureFrame | Bir resim çerçevesini eklemek veya yerleştirmek için temel uygulama. |
addTableImpl(index: Integer, x: double, y: double, colWidths: double[], rowHeights: double[]) → ITable | Bir tablo eklemek veya yerleştirmek için temel uygulama. |
reorderSingle(newIndex: int, shape: IShape) | Tek bir şekli spTree XML’de yeni bir konuma yeniden düzenler. |
getParentGroup() → IGroupShape | Ana grup geri gönderir. |
setParentGroup(parentGroup: IGroupShape) | Bu koleksiyon için üst grup şekli ayarlar. |
asICollection() → List<IShape> | Şekilleri Listesi olarak gönderir |
asIEnumerable() → Iterable<IShape> | Şekilleri <IShape olarak iterasyonel olarak gönderir> |
get(index: int) → IShape | Belirtilen indeksde şekli gönderir |
size() → int | |
iterator() → Iterator<IShape> | Bu koleksiyonun şekillerinde bir tekrarlayıcı gönderir. |
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double) → IAutoShape | Verilen tip ve geometri ile yeni bir AutoShape ekler. |
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 | Verilen tip ve geometri ile indeksde yeni bir AutoShape ekler. |
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 | Belirtilen tip ve geometri ile yeni bir bağlantı ekler . |
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 | Belirtilen tip ve geometri ile indekste bir bağlantı ekler. |
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() |