public final class HSSFObjectData extends HSSFPicture implements ObjectData
Right now, 13, july, 2012 can not be created from scratch
(表示存储在文件中的二进制对象(即 OLE)数据。例如。 GIF、JPEG 等...现在,2012 年 7 月 13 日不能从头开始创建)OBJECT_TYPE_ARC, OBJECT_TYPE_COMBO_BOX, OBJECT_TYPE_COMMENT, OBJECT_TYPE_LINE, OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING, OBJECT_TYPE_OVAL, OBJECT_TYPE_PICTURE, OBJECT_TYPE_RECTANGLE, WRAP_BY_POINTS, WRAP_NONE, WRAP_SQUARE
FILL__FILLCOLOR_DEFAULT, LINESTYLE__COLOR_DEFAULT, LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DEFAULT, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT, NO_FILL_DEFAULT, NO_FILLHITTEST_FALSE, NO_FILLHITTEST_TRUE
Constructor and Description |
---|
HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterRemove(HSSFPatriarch patriarch)
remove escher container from the patriarch.escherAggregate remove obj, textObj and note records if it's necessary in case of ShapeGroup remove all contained shapes
(从 patriarch.escherAggregate 中删除 escher 容器 删除 obj、textObj 和注释记录(如果有必要)在 ShapeGroup 的情况下删除所有包含的形状)
|
protected HSSFShape |
cloneShape() |
protected ObjRecord |
createObjRecord() |
protected EscherContainerRecord |
createSpContainer() |
protected EmbeddedObjectRefSubRecord |
findObjectRecord()
Finds the EmbeddedObjectRefSubRecord, or throws an Exception if there wasn't one
(查找 EmbeddedObjectRefSubRecord,如果没有则抛出异常)
|
DirectoryEntry |
getDirectory()
Gets the object data.
(获取对象数据。)
|
byte[] |
getObjectData() |
java.lang.String |
getOLE2ClassName() |
boolean |
hasDirectoryEntry() |
getClientAnchor, getFileName, getImageDimension, getPictureData, getPictureIndex, getPreferredSize, getPreferredSize, getPreferredSize, getSheet, resize, resize, resize, setFileName, setPictureIndex, setShapeType
createTextObjRecord, getShapeId, getShapeType, getString, getTextObjectRecord, getWrapText, setString, setWrapText
countOfAllChildren, getAnchor, getEscherContainer, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getObjRecord, getOptRecord, getParent, getPatriarch, getRotationDegree, getShapeName, isFlipHorizontal, isFlipVertical, isNoFill, setAnchor, setFillColor, setFillColor, setFlipHorizontal, setFlipVertical, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill, setParent, setPatriarch, setPropertyValue, setRotationDegree
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentType, getFileName, getPictureData
getShapeId
getAnchor, getParent, getShapeName, isNoFill, setFillColor, setLineStyleColor, setNoFill
public HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root)
public java.lang.String getOLE2ClassName()
getOLE2ClassName
in interface
ObjectData
(接口 ObjectData 中的 getOLE2ClassName)
public DirectoryEntry getDirectory() throws java.io.IOException
ObjectData
ObjectData.hasDirectoryEntry()
. The caller has to close the corresponding POIFSFileSystem
(获取对象数据。只要求那些有数据的人。请参阅 ObjectData.hasDirectoryEntry()。调用者必须关闭相应的 POIFSFileSystem)
getDirectory
in interface
ObjectData
(接口 ObjectData 中的 getDirectory)
java.io.IOException
- if there was an error reading the data.
(java.io.IOException - 如果读取数据时出错。)
public byte[] getObjectData()
getObjectData
in interface
ObjectData
(接口 ObjectData 中的 getObjectData)
public boolean hasDirectoryEntry()
hasDirectoryEntry
in interface
ObjectData
(接口 ObjectData 中的 hasDirectoryEntry)
protected EmbeddedObjectRefSubRecord findObjectRecord()
protected EscherContainerRecord createSpContainer()
createSpContainer
in class
HSSFPicture
protected ObjRecord createObjRecord()
createObjRecord
in class
HSSFSimpleShape
protected void afterRemove(HSSFPatriarch patriarch)
HSSFShape
afterRemove
in class
HSSFSimpleShape
protected HSSFShape cloneShape()
cloneShape
in class
HSSFPicture
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.