ShapeCollection

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:AccessAçıklama:
spTreeElementOku .Slayt XML içindeki {@code <p:spTree>} öğesini alır.
parentGroupIGroupShapeOku .Üst grubu alır.

Yöntemler

SignatureAçı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()ElementSlayt 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()intSpTree’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)ElementYeni 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)ElementYeni bir bağlantı elemanı için XML oluşturur.
addAutoShapeImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IAutoShapeAutoShape eklemek veya takmak için temel uygulama.
addConnectorImpl(index: Integer, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IConnectorBir 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)IPictureFrameBir resim çerçevesini eklemek veya yerleştirmek için temel uygulama.
addTableImpl(index: Integer, x: double, y: double, colWidths: double[], rowHeights: double[])ITableBir 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()IGroupShapeAna 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)IShapeBelirtilen 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)IAutoShapeVerilen 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)IAutoShapeVerilen 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)IConnectorBelirtilen 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)IConnectorBelirtilen 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()

Ayrıca bakınız:

 Türkçe