public interface ShapeContainer<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
extends java.lang.Iterable<S>
Modifier and Type | Method and Description |
---|---|
void |
addShape(S shape) |
AutoShape<S,P> |
createAutoShape()
create a new shape with a predefined geometry and add it to this shape container
(创建具有预定义几何形状的新形状并将其添加到此形状容器中)
|
ConnectorShape<S,P> |
createConnector()
create a connector
(创建连接器)
|
FreeformShape<S,P> |
createFreeform()
create a new shape with a custom geometry
(使用自定义几何创建新形状)
|
GroupShape<S,P> |
createGroup()
create a group of shapes belonging to this container
(创建一组属于该容器的形状)
|
ObjectShape<?,?> |
createOleShape(PictureData pictureData)
Create a new OLE object shape with the given pictureData as preview image
(使用给定的图片数据创建一个新的 OLE 对象形状作为预览图像)
|
PictureShape<S,P> |
createPicture(PictureData pictureData)
create a picture belonging to this container
(创建属于该容器的图片)
|
TableShape<S,P> |
createTable(int numRows, int numCols)
Create a new Table of the given number of rows and columns
(创建给定行数和列数的新表)
|
TextBox<S,P> |
createTextBox()
create a text box
(创建一个文本框)
|
java.util.List<S> |
getShapes()
Returns an list containing all of the elements in this container in proper sequence (from first to last element).
(返回一个列表,该列表包含此容器中按正确顺序(从第一个元素到最后一个元素)中的所有元素。)
|
boolean |
removeShape(S shape)
Removes the specified shape from this sheet, if it is present (optional operation).
(如果存在,则从此工作表中删除指定的形状(可选操作)。)
|
java.util.List<S> getShapes()
void addShape(S shape)
boolean removeShape(S shape)
shape
- the shape to be removed from this sheet, if present
(shape - 要从此工作表中删除的形状(如果存在))
java.lang.IllegalArgumentException
- if the type of the specified shape is incompatible with this sheet (optional)
(java.lang.IllegalArgumentException - 如果指定形状的类型与此工作表不兼容(可选))
AutoShape<S,P> createAutoShape()
FreeformShape<S,P> createFreeform()
ConnectorShape<S,P> createConnector()
GroupShape<S,P> createGroup()
PictureShape<S,P> createPicture(PictureData pictureData)
TableShape<S,P> createTable(int numRows, int numCols)
numRows
- the number of rows
(numRows - 行数)
numCols
- the number of columns
(numCols - 列数)
ObjectShape<?,?> createOleShape(PictureData pictureData)
pictureData
- the preview image
(pictureData - 预览图像)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.