public class HSLFGroupShape extends HSLFShape implements HSLFShapeContainer, GroupShape<HSLFShape,HSLFTextParagraph>
Modifier | Constructor and Description |
---|---|
|
HSLFGroupShape()
Create a new ShapeGroup.
(创建一个新的形状组。)
|
protected |
HSLFGroupShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a ShapeGroup object and initialize it from the supplied Record container.
(创建一个 ShapeGroup 对象并从提供的 Record 容器中初始化它。)
|
|
HSLFGroupShape(ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a new ShapeGroup.
(创建一个新的形状组。)
|
Modifier and Type | Method and Description |
---|---|
void |
addShape(HSLFShape shape)
Add a shape to this group.
(向该组添加一个形状。)
|
HSLFAutoShape |
createAutoShape()
create a new shape with a predefined geometry and add it to this shape container
(创建具有预定义几何形状的新形状并将其添加到此形状容器中)
|
HSLFConnectorShape |
createConnector()
create a connector
(创建连接器)
|
HSLFFreeformShape |
createFreeform()
create a new shape with a custom geometry
(使用自定义几何创建新形状)
|
HSLFGroupShape |
createGroup()
create a group of shapes belonging to this container
(创建一组属于该容器的形状)
|
HSLFObjectShape |
createOleShape(PictureData pictureData)
Create a new OLE object shape with the given pictureData as preview image
(使用给定的图片数据创建一个新的 OLE 对象形状作为预览图像)
|
HSLFPictureShape |
createPicture(PictureData pictureData)
create a picture belonging to this container
(创建属于该容器的图片)
|
protected EscherContainerRecord |
createSpContainer(boolean isChild)
Create a new ShapeGroup and create an instance of
EscherSpgrContainer which represents a group of shapes
(创建一个新的 ShapeGroup 并创建一个代表一组形状的 EscherSpgrContainer 实例)
|
HSLFTable |
createTable(int numRows, int numCols)
Create a new Table of the given number of rows and columns
(创建给定行数和列数的新表)
|
HSLFTextBox |
createTextBox()
create a text box
(创建一个文本框)
|
java.awt.geom.Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape group.
(返回此形状组的锚点(边界框矩形)。)
|
<T extends EscherRecord> |
getEscherChild(int recordId) |
HSLFHyperlink |
getHyperlink()
Returns
null - shape groups can't have hyperlinks
(返回 null - 形状组不能有超链接)
|
java.awt.geom.Rectangle2D |
getInteriorAnchor()
Gets the coordinate space of this group.
(获取该组的坐标空间。)
|
java.util.List<HSLFShape> |
getShapes()
Returns an list containing all of the elements in this container in proper sequence (from first to last element).
(返回一个列表,该列表包含此容器中按正确顺序(从第一个元素到最后一个元素)中的所有元素。)
|
ShapeType |
getShapeType()
Return type of the shape.
(形状的返回类型。)
|
java.util.Iterator<HSLFShape> |
iterator() |
protected void |
moveAndScale(java.awt.geom.Rectangle2D anchorDest)
Moves and scales this
ShapeGroup to the specified anchor.
(将此 ShapeGroup 移动并缩放到指定的锚点。)
|
boolean |
removeShape(HSLFShape shape)
Removes the specified shape from this sheet, if it is present (optional operation).
(如果存在,则从此工作表中删除指定的形状(可选操作)。)
|
void |
setAnchor(java.awt.geom.Rectangle2D anchor)
Sets the anchor (the bounding box rectangle) of this shape.
(设置此形状的锚点(边界框矩形)。)
|
protected void |
setExteriorAnchor(java.awt.geom.Rectangle2D anchor) |
void |
setInteriorAnchor(java.awt.geom.Rectangle2D anchor)
Sets the coordinate space of this group.
(设置该组的坐标空间。)
|
afterInsert, draw, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getParent, getRotation, getShapeId, getShapeName, getSheet, getSpContainer, isPlaceholder, moveTo, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType, setSheet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, getParent, getShapeId, getShapeName, getSheet
getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setFlipHorizontal, setFlipVertical, setRotation
public HSLFGroupShape()
public HSLFGroupShape(ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
parent
- the parent of the shape
(parent - 形状的父级)
protected HSLFGroupShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
escherRecord
-
EscherSpContainer
container which holds information about this shape
(escherRecord - 包含此形状信息的 EscherSpContainer 容器)
parent
- the parent of the shape
(parent - 形状的父级)
public void setAnchor(java.awt.geom.Rectangle2D anchor)
HSLFShape
setAnchor
in interface
PlaceableShape<HSLFShape,HSLFTextParagraph>
(接口 PlaceableShape 中的 setAnchor
setAnchor
in class
HSLFShape
anchor
- new anchor
(锚 - 新锚)
public void setInteriorAnchor(java.awt.geom.Rectangle2D anchor)
GroupShape
setInteriorAnchor
in interface
GroupShape<HSLFShape,HSLFTextParagraph>
(接口 GroupShape 中的 setInteriorAnchor
anchor
- the coordinate space of this group
(anchor - 该组的坐标空间)
public java.awt.geom.Rectangle2D getInteriorAnchor()
GroupShape
getInteriorAnchor
in interface
GroupShape<HSLFShape,HSLFTextParagraph>
(接口 GroupShape 中的 getInteriorAnchor
protected void setExteriorAnchor(java.awt.geom.Rectangle2D anchor)
protected EscherContainerRecord createSpContainer(boolean isChild)
EscherSpgrContainer
which represents a group of shapes
(创建一个新的 ShapeGroup 并创建一个代表一组形状的 EscherSpgrContainer 实例)
createSpContainer
in class
HSLFShape
public void addShape(HSLFShape shape)
addShape
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 addShape
shape
- - the Shape to add
(shape - - 要添加的形状)
protected void moveAndScale(java.awt.geom.Rectangle2D anchorDest)
ShapeGroup
to the specified anchor.
(将此 ShapeGroup 移动并缩放到指定的锚点。)
public java.awt.geom.Rectangle2D getAnchor()
getAnchor
in interface
PlaceableShape<HSLFShape,HSLFTextParagraph>
(接口 PlaceableShape 中的 getAnchor
getAnchor
in interface
Shape<HSLFShape,HSLFTextParagraph>
(接口 Shape 中的 getAnchor
getAnchor
in class
HSLFShape
public ShapeType getShapeType()
ShapeType.NOT_PRIMITIVE
(形状的返回类型。在大多数情况下,形状组类型是 ShapeType.NOT_PRIMITIVE)
getShapeType
in class
HSLFShape
public HSLFHyperlink getHyperlink()
null
- shape groups can't have hyperlinks
(返回 null - 形状组不能有超链接)
null
.
(空值。)
public <T extends EscherRecord> T getEscherChild(int recordId)
getEscherChild
in class
HSLFShape
public java.util.Iterator<HSLFShape> iterator()
iterator
in interface
java.lang.Iterable<HSLFShape>
(接口 java.lang.Iterable 中的迭代器
public boolean removeShape(HSLFShape shape)
ShapeContainer
removeShape
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 removeShape
shape
- the shape to be removed from this sheet, if present
(shape - 要从此工作表中删除的形状(如果存在))
public java.util.List<HSLFShape> getShapes()
ShapeContainer
getShapes
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 getShapes
public HSLFTextBox createTextBox()
ShapeContainer
createTextBox
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createTextBox)
createTextBox
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createTextBox
public HSLFAutoShape createAutoShape()
ShapeContainer
createAutoShape
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createAutoShape)
createAutoShape
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createAutoShape
public HSLFFreeformShape createFreeform()
ShapeContainer
createFreeform
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createFreeform)
createFreeform
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createFreeform
public HSLFConnectorShape createConnector()
ShapeContainer
createConnector
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createConnector)
createConnector
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createConnector
public HSLFGroupShape createGroup()
ShapeContainer
createGroup
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createGroup)
createGroup
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createGroup
public HSLFPictureShape createPicture(PictureData pictureData)
ShapeContainer
createPicture
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createPicture)
createPicture
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口ShapeContainer中的createPicture
public HSLFTable createTable(int numRows, int numCols)
ShapeContainer
createTable
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createTable
numRows
- the number of rows
(numRows - 行数)
numCols
- the number of columns
(numCols - 列数)
public HSLFObjectShape createOleShape(PictureData pictureData)
ShapeContainer
createOleShape
in interface
HSLFShapeContainer
(接口 HSLFShapeContainer 中的 createOleShape)
createOleShape
in interface
ShapeContainer<HSLFShape,HSLFTextParagraph>
(接口 ShapeContainer 中的 createOleShape
pictureData
- the preview image
(pictureData - 预览图像)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.