org.apache.poi.xssf.usermodel
Class XSSFObjectData

java.lang.Object
  extended by org.apache.poi.xssf.usermodel.XSSFShape
      extended by org.apache.poi.xssf.usermodel.XSSFSimpleShape
          extended by org.apache.poi.xssf.usermodel.XSSFObjectData
All Implemented Interfaces:
java.lang.Iterable<XSSFTextParagraph>, ObjectData, Shape, SimpleShape

public class XSSFObjectData
extends XSSFSimpleShape
implements ObjectData

Represents binary object (i.e. OLE) data stored in the file. Eg. A GIF, JPEG etc...


Field Summary
 
Fields inherited from class org.apache.poi.xssf.usermodel.XSSFShape
anchor, drawing, EMU_PER_PIXEL, EMU_PER_POINT, parent, PIXEL_DPI, POINT_DPI
 
Constructor Summary
protected XSSFObjectData(XSSFDrawing drawing, org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShape ctShape)
           
 
Method Summary
 DirectoryEntry getDirectory()
           
 java.lang.String getFileName()
          The filename of the embedded image
 byte[] getObjectData()
           
 PackagePart getObjectPart()
           
 java.lang.String getOLE2ClassName()
           
 org.openxmlformats.schemas.spreadsheetml.x2006.main.CTOleObject getOleObject()
           
 XSSFPictureData getPictureData()
           
protected  XSSFSheet getSheet()
           
 boolean hasDirectoryEntry()
           
protected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShape prototype()
          Prototype with the default structure of a new auto-shape.
 
Methods inherited from class org.apache.poi.xssf.usermodel.XSSFSimpleShape
addNewTextParagraph, addNewTextParagraph, addNewTextParagraph, clearText, getBottomInset, getCTShape, getLeftInset, getRightInset, getShapeId, getShapeName, getShapeProperties, getShapeType, getText, getTextAutofit, getTextDirection, getTextHorizontalOverflow, getTextParagraphs, getTextVerticalOverflow, getTopInset, getVerticalAlignment, getWordWrap, iterator, setBottomInset, setLeftInset, setRightInset, setShapeType, setText, setText, setTextAutofit, setTextDirection, setTextHorizontalOverflow, setTextVerticalOverflow, setTopInset, setVerticalAlignment, setWordWrap
 
Methods inherited from class org.apache.poi.xssf.usermodel.XSSFShape
getAnchor, getDrawing, getParent, isNoFill, setFillColor, setLineStyle, setLineStyleColor, setLineWidth, setNoFill
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.poi.ss.usermodel.SimpleShape
getShapeId
 
Methods inherited from interface org.apache.poi.ss.usermodel.Shape
getAnchor, getParent, getShapeName, isNoFill, setFillColor, setLineStyleColor, setNoFill
 

Constructor Detail

XSSFObjectData

protected XSSFObjectData(XSSFDrawing drawing,
                         org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShape ctShape)
Method Detail

prototype

protected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShape prototype()
Prototype with the default structure of a new auto-shape.


getOLE2ClassName

public java.lang.String getOLE2ClassName()
Specified by:
getOLE2ClassName in interface ObjectData

getOleObject

public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTOleObject getOleObject()
Returns:
the CTOleObject associated with the shape

getObjectData

public byte[] getObjectData()
                     throws java.io.IOException
Specified by:
getObjectData in interface ObjectData
Throws:
java.io.IOException

getObjectPart

public PackagePart getObjectPart()
Returns:
the package part of the object data

hasDirectoryEntry

public boolean hasDirectoryEntry()
Specified by:
hasDirectoryEntry in interface ObjectData

getDirectory

public DirectoryEntry getDirectory()
                            throws java.io.IOException
Specified by:
getDirectory in interface ObjectData
Throws:
java.io.IOException

getFileName

public java.lang.String getFileName()
The filename of the embedded image

Specified by:
getFileName in interface ObjectData

getSheet

protected XSSFSheet getSheet()

getPictureData

public XSSFPictureData getPictureData()
Specified by:
getPictureData in interface ObjectData