public final class HSLFObjectShape extends HSLFPictureShape implements ObjectShape<HSLFShape,HSLFTextParagraph>
_hyperlink, ADJUST_VALUES, DEFAULT_LINE_WIDTH
Constructor and Description |
---|
HSLFObjectShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a
OLEShape object
|
HSLFObjectShape(HSLFPictureData data)
Create a new
OLEShape
|
HSLFObjectShape(HSLFPictureData data, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a new
OLEShape
|
Modifier and Type | Method and Description |
---|---|
ExEmbed |
getExEmbed()
Return the record container for this embedded object.
(返回此嵌入对象的记录容器。)
|
java.lang.String |
getFullName()
Returns the full name of the embedded object, e.g.
(返回嵌入对象的全名,例如)
|
java.lang.String |
getInstanceName()
Returns the instance name of the embedded object, e.g.
(返回嵌入对象的实例名称,例如)
|
HSLFObjectData |
getObjectData()
Returns unique identifier for the OLE object.
(返回 OLE 对象的唯一标识符。)
|
int |
getObjectID()
Returns unique identifier for the OLE object.
(返回 OLE 对象的唯一标识符。)
|
java.lang.String |
getProgId()
Returns the ProgID that stores the OLE Programmatic Identifier.
(返回存储 OLE 编程标识符的 ProgID。)
|
void |
setFullName(java.lang.String fullName) |
void |
setObjectID(int objectId)
Set the unique identifier for the OLE object and register it in the necessary structures
(设置 OLE 对象的唯一标识符并将其注册到必要的结构中)
|
void |
setProgId(java.lang.String progId) |
java.io.OutputStream |
updateObjectData(ObjectMetaData.Application application, ObjectMetaData metaData)
Updates the ole data.
(更新 ole 数据。)
|
afterInsert, createSpContainer, getClipping, getEscherBSERecord, getPictureData, getPictureIndex, getPictureName, getShapeType, setPictureName
createHyperlink, createSpContainer, getAdjustValue, getFillColor, getGeometry, getHyperlink, getLineBackgroundColor, getLineCap, getLineColor, getLineCompound, getLineDash, getLineDecoration, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getPlaceholder, getPlaceholderDetails, getShadow, getShadowAngle, getShadowColor, getShadowDistance, getStrokeStyle, isPlaceholder, setFillColor, setHyperlink, setLineBackgroundColor, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setPlaceholder, setStrokeStyle
draw, getAnchor, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getParent, getRotation, getShapeId, getShapeName, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType, setSheet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPictureData, readObjectData, readObjectDataRaw
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
getAlternativePictureData
createHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getStrokeStyle, isPlaceholder, setFillColor, setPlaceholder, setShapeType, setStrokeStyle
getAdjustValue
public HSLFObjectShape(HSLFPictureData data)
OLEShape
(创建一个新的 OLEShape)
data
- the picture data
(data - 图片数据)
public HSLFObjectShape(HSLFPictureData data, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
OLEShape
(创建一个新的 OLEShape)
data
- the picture data
(data - 图片数据)
parent
- the parent shape
(parent - 父形状)
public HSLFObjectShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
OLEShape
object
(创建一个 OLEShape 对象)
escherRecord
- the
EscherSpContainer
record which holds information about this picture in the
Slide
(escherRecord - EscherSpContainer 记录,它在幻灯片中保存有关此图片的信息)
parent
- the parent shape of this picture
(parent - 此图片的父形状)
public int getObjectID()
public void setObjectID(int objectId)
objectId
- the unique identifier for the OLE object
(objectId - OLE 对象的唯一标识符)
public HSLFObjectData getObjectData()
getObjectData
in interface
ObjectShape<HSLFShape,HSLFTextParagraph>
(接口 ObjectShape 中的 getObjectData
public ExEmbed getExEmbed()
It contains: 1. ExEmbedAtom.(4045) 2. ExOleObjAtom (4035) 3. CString (4026), Instance MenuName (1) used for menus and the Links dialog box. 4. CString (4026), Instance ProgID (2) that stores the OLE Programmatic Identifier. A ProgID is a string that uniquely identifies a given object. 5. CString (4026), Instance ClipboardName (3) that appears in the paste special dialog. 6. MetaFile( 4033), optional
(返回此嵌入对象的记录容器。它包含: 1. ExEmbedAtom.(4045) 2. ExOleObjAtom (4035) 3. CString (4026)、Instance MenuName (1) 用于菜单和链接对话框。 4. CString (4026),存储 OLE 程序标识符的实例 ProgID (2)。 ProgID 是唯一标识给定对象的字符串。 5. CString (4026), Instance ClipboardName (3) 出现在粘贴特殊对话框中。 6. MetaFile(4033),可选)public java.lang.String getInstanceName()
public java.lang.String getFullName()
ObjectShape
getFullName
in interface
ObjectShape<HSLFShape,HSLFTextParagraph>
(接口 ObjectShape 中的 getFullName
public void setFullName(java.lang.String fullName)
public java.lang.String getProgId()
ObjectShape
getProgId
in interface
ObjectShape<HSLFShape,HSLFTextParagraph>
(接口 ObjectShape 中的 getProgId
public void setProgId(java.lang.String progId)
public java.io.OutputStream updateObjectData(ObjectMetaData.Application application, ObjectMetaData metaData) throws java.io.IOException
ObjectShape
For HSLF this needs to be a POIFSFileSystem
stream.
updateObjectData
in interface
ObjectShape<HSLFShape,HSLFTextParagraph>
(接口 ObjectShape 中的 updateObjectData
application
- a preset application enum
(application - 一个预设的应用程序枚举)
metaData
- or a custom metaData object, can be
null
if the application has been set
(metaData - 或自定义 metaData 对象,如果应用程序已设置,则可以为 null)
OutputStream
which receives the new data, the data will be persisted on
close()
(一个接收新数据的 OutputStream,数据将在 close() 上持久化)
java.io.IOException
- if the linked object data couldn't be found or a new object data couldn't be initialized
(java.io.IOException - 如果找不到链接的对象数据或无法初始化新的对象数据)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.