@Beta public class XSLFGroupShape extends XSLFShape implements XSLFShapeContainer, GroupShape<XSLFShape,XSLFTextParagraph>
XSLFShape.ReparseFactory<T extends org.apache.xmlbeans.XmlObject>
Modifier | Constructor and Description |
---|---|
protected |
XSLFGroupShape(org.openxmlformats.schemas.presentationml.x2006.main.CTGroupShape shape, XSLFSheet sheet) |
Modifier and Type | Method and Description |
---|---|
void |
addShape(XSLFShape shape) |
void |
clear()
Removes all of the elements from this container (optional operation).
(从此容器中移除所有元素(可选操作)。)
|
XSLFAutoShape |
createAutoShape()
create a new shape with a predefined geometry and add it to this shape container
(创建具有预定义几何形状的新形状并将其添加到此形状容器中)
|
XSLFConnectorShape |
createConnector()
create a connector
(创建连接器)
|
XSLFFreeformShape |
createFreeform()
create a new shape with a custom geometry
(使用自定义几何创建新形状)
|
XSLFGroupShape |
createGroup()
create a group of shapes belonging to this container
(创建一组属于该容器的形状)
|
XSLFObjectShape |
createOleShape(PictureData pictureData)
Create a new OLE object shape with the given pictureData as preview image
(使用给定的图片数据创建一个新的 OLE 对象形状作为预览图像)
|
XSLFPictureShape |
createPicture(PictureData pictureData)
create a picture belonging to this container
(创建属于该容器的图片)
|
XSLFTable |
createTable() |
XSLFTable |
createTable(int numRows, int numCols)
Create a new Table of the given number of rows and columns
(创建给定行数和列数的新表)
|
XSLFTextBox |
createTextBox()
create a text box
(创建一个文本框)
|
java.awt.geom.Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape.
(返回此形状的锚点(边界框矩形)。)
|
boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped
(形状是否水平翻转)
|
boolean |
getFlipVertical()
Whether the shape is vertically flipped
(形状是否垂直翻转)
|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties |
getGrpSpPr() |
java.awt.geom.Rectangle2D |
getInteriorAnchor()
Gets the coordinate space of this group.
(获取该组的坐标空间。)
|
double |
getRotation()
Rotation angle in degrees
(以度为单位的旋转角度)
|
java.util.List<XSLFShape> |
getShapes()
Returns an list containing all of the elements in this container in proper sequence (from first to last element).
(返回一个列表,该列表包含此容器中按正确顺序(从第一个元素到最后一个元素)中的所有元素。)
|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTGroupTransform2D |
getXfrm() |
java.util.Iterator<XSLFShape> |
iterator()
Returns an iterator over the shapes in this sheet
(返回此工作表中形状的迭代器)
|
boolean |
removeShape(XSLFShape xShape)
Remove the specified shape from this group
(从此组中删除指定的形状)
|
void |
setAnchor(java.awt.geom.Rectangle2D anchor) |
void |
setFlipHorizontal(boolean flip) |
void |
setFlipVertical(boolean flip)
Whether the shape is vertically flipped
(形状是否垂直翻转)
|
void |
setInteriorAnchor(java.awt.geom.Rectangle2D anchor)
Sets the coordinate space of this group.
(设置该组的坐标空间。)
|
void |
setRotation(double theta)
Rotate this shape.
(旋转这个形状。)
|
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getFillPaint, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, isPlaceholder, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent, setPlaceholder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, getParent, getShapeId, getShapeName, getSheet
getParent, getSheet
protected XSLFGroupShape(org.openxmlformats.schemas.presentationml.x2006.main.CTGroupShape shape, XSLFSheet sheet)
protected org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties getGrpSpPr()
getGrpSpPr
in class
XSLFShape
protected org.openxmlformats.schemas.drawingml.x2006.main.CTGroupTransform2D getXfrm()
public java.awt.geom.Rectangle2D getAnchor()
Shape
getAnchor
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getAnchor
getAnchor
in interface
Shape<XSLFShape,XSLFTextParagraph>
(接口 Shape 中的 getAnchor
public void setAnchor(java.awt.geom.Rectangle2D anchor)
setAnchor
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 setAnchor
anchor
- the position of this shape within the drawing canvas. The coordinates are expressed in points
(anchor - 此形状在绘图画布中的位置。坐标以点表示)
public java.awt.geom.Rectangle2D getInteriorAnchor()
GroupShape
getInteriorAnchor
in interface
GroupShape<XSLFShape,XSLFTextParagraph>
(接口 GroupShape 中的 getInteriorAnchor
public void setInteriorAnchor(java.awt.geom.Rectangle2D anchor)
GroupShape
setInteriorAnchor
in interface
GroupShape<XSLFShape,XSLFTextParagraph>
(接口 GroupShape 中的 setInteriorAnchor
anchor
- the coordinates of the child extents rectangle used for calculations of grouping, scaling, and rotation behavior of shapes placed within a group.
(anchor - 子范围矩形的坐标,用于计算组内形状的分组、缩放和旋转行为。)
public java.util.List<XSLFShape> getShapes()
ShapeContainer
getShapes
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口 ShapeContainer 中的 getShapes
public java.util.Iterator<XSLFShape> iterator()
iterator
in interface
java.lang.Iterable<XSLFShape>
(接口 java.lang.Iterable 中的迭代器
public boolean removeShape(XSLFShape xShape)
removeShape
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口 ShapeContainer 中的 removeShape
xShape
- the shape to be removed from this sheet, if present
(xShape - 要从此工作表中删除的形状(如果存在))
public XSLFAutoShape createAutoShape()
ShapeContainer
createAutoShape
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口 ShapeContainer 中的 createAutoShape
createAutoShape
in interface
XSLFShapeContainer
(接口 XSLFShapeContainer 中的 createAutoShape)
public XSLFFreeformShape createFreeform()
ShapeContainer
createFreeform
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口 ShapeContainer 中的 createFreeform
createFreeform
in interface
XSLFShapeContainer
(接口 XSLFShapeContainer 中的 createFreeform)
public XSLFTextBox createTextBox()
ShapeContainer
createTextBox
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口 ShapeContainer 中的 createTextBox
createTextBox
in interface
XSLFShapeContainer
(接口 XSLFShapeContainer 中的 createTextBox)
public XSLFConnectorShape createConnector()
ShapeContainer
createConnector
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口 ShapeContainer 中的 createConnector
createConnector
in interface
XSLFShapeContainer
(接口 XSLFShapeContainer 中的 createConnector)
public XSLFGroupShape createGroup()
ShapeContainer
createGroup
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口 ShapeContainer 中的 createGroup
createGroup
in interface
XSLFShapeContainer
(接口 XSLFShapeContainer 中的 createGroup)
public XSLFPictureShape createPicture(PictureData pictureData)
ShapeContainer
createPicture
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口ShapeContainer中的createPicture
createPicture
in interface
XSLFShapeContainer
(接口 XSLFShapeContainer 中的 createPicture)
public XSLFObjectShape createOleShape(PictureData pictureData)
ShapeContainer
createOleShape
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口 ShapeContainer 中的 createOleShape
pictureData
- the preview image
(pictureData - 预览图像)
public XSLFTable createTable()
public XSLFTable createTable(int numRows, int numCols)
ShapeContainer
createTable
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口 ShapeContainer 中的 createTable
numRows
- the number of rows
(numRows - 行数)
numCols
- the number of columns
(numCols - 列数)
public void setFlipHorizontal(boolean flip)
setFlipHorizontal
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 setFlipHorizontal
flip
- whether the shape is horizontally flipped
(翻转 - 形状是否水平翻转)
public void setFlipVertical(boolean flip)
PlaceableShape
setFlipVertical
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 setFlipVertical
flip
- whether the shape is vertically flipped
(翻转 - 形状是否垂直翻转)
public boolean getFlipHorizontal()
PlaceableShape
getFlipHorizontal
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getFlipHorizontal
public boolean getFlipVertical()
PlaceableShape
getFlipVertical
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getFlipVertical
public void setRotation(double theta)
PlaceableShape
Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
(旋转这个形状。正角度是顺时针方向(即,朝向正 y 轴);负角是逆时针的(即,朝向负 y 轴)。)setRotation
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 setRotation
theta
- the rotation angle in degrees.
(theta - 以度为单位的旋转角度。)
public double getRotation()
PlaceableShape
Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
(以度为单位的旋转角度 正角度是顺时针方向(即,朝向正 y 轴);负角是逆时针的(即,朝向负 y 轴)。)getRotation
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getRotation
public void clear()
clear
in interface
XSLFShapeContainer
(在接口 XSLFShapeContainer 中清除)
public void addShape(XSLFShape shape)
addShape
in interface
ShapeContainer<XSLFShape,XSLFTextParagraph>
(接口 ShapeContainer 中的 addShape
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.