public final class HSSFObjectData extends HSSFPicture
PICTURE_TYPE_DIB, PICTURE_TYPE_EMF, PICTURE_TYPE_JPEG, PICTURE_TYPE_PICT, PICTURE_TYPE_PNG, PICTURE_TYPE_WMF
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
|
protected HSSFShape |
cloneShape() |
protected ObjRecord |
createObjRecord() |
protected EscherContainerRecord |
createSpContainer() |
protected EmbeddedObjectRefSubRecord |
findObjectRecord()
Finds the EmbeddedObjectRefSubRecord, or throws an
Exception if there wasn't one
|
DirectoryEntry |
getDirectory()
Gets the object data.
|
byte[] |
getObjectData()
Returns the data portion, for an ObjectData
that doesn't have an associated POIFS Directory
Entry
|
String |
getOLE2ClassName()
Returns the OLE2 Class Name of the object
|
boolean |
hasDirectoryEntry()
Does this ObjectData have an associated POIFS
Directory Entry?
(Not all do, those that don't have a data portion)
|
getAlt, getClientAnchor, getFileName, getImageDimension, getName, getPictureData, getPictureId, getPictureIndex, getPreferredSize, getPreferredSize, resize, resize, setAlt, setClientAnchor, setFileName, setName, setPictureIndex, setShapeType
createTextObjRecord, getShapeType, getString, getTextObjectRecord, getWrapText, setString, setWrapText
countOfAllChildren, getAnchor, getEscherContainer, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getObjRecord, getOptRecord, getParent, getPatriarch, getRotationDegree, isFlipHorizontal, isFlipVertical, isNoFill, setAnchor, setFillColor, setFillColor, setFlipHorizontal, setFlipVertical, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill, setParent, setPatriarch, setPropertyValue, setRotationDegree
public HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root)
public String getOLE2ClassName()
public DirectoryEntry getDirectory() throws IOException
hasDirectoryEntry()
IOException
- if there was an error reading the data.public byte[] getObjectData()
public boolean 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 © 2020. All rights reserved.