org.apache.poi.hssf.model
Class AbstractShape

java.lang.Object
  extended by org.apache.poi.hssf.model.AbstractShape
Direct Known Subclasses:
ComboboxShape, LineShape, PictureShape, PolygonShape, SimpleFilledShape, TextboxShape

public abstract class AbstractShape
extends java.lang.Object

An abstract shape is the lowlevel model for a shape.

Author:
Glen Stampoultzis (glens at apache.org)

Method Summary
static AbstractShape createShape(HSSFShape hssfShape, int shapeId)
          Create a new shape object used to create the escher records.
abstract  ObjRecord getObjRecord()
           
abstract  EscherContainerRecord getSpContainer()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createShape

public static AbstractShape createShape(HSSFShape hssfShape,
                                        int shapeId)
Create a new shape object used to create the escher records.

Parameters:
hssfShape - The simple shape this is based on.

getSpContainer

public abstract EscherContainerRecord getSpContainer()
Returns:
The shape container and it's children that can represent this shape.

getObjRecord

public abstract ObjRecord getObjRecord()
Returns:
The object record that is associated with this shape.