Package loci.poi.hssf.model
Class AbstractShape
java.lang.Object
loci.poi.hssf.model.AbstractShape
- Direct Known Subclasses:
LineShape,PictureShape,PolygonShape,SimpleFilledShape,TextboxShape
An abstract shape is the lowlevel model for a shape.
- Author:
- Glen Stampoultzis (glens at apache.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intaddStandardOptions(HSSFShape shape, EscherOptRecord opt) Add standard properties to the opt record.protected EscherRecordcreateAnchor(HSSFAnchor userAnchor) Creates an escher anchor record from a HSSFAnchor.static AbstractShapecreateShape(HSSFShape hssfShape, int shapeId) Create a new shape object used to create the escher records.abstract ObjRecordabstract EscherContainerRecord
-
Constructor Details
-
AbstractShape
protected AbstractShape()
-
-
Method Details
-
createShape
Create a new shape object used to create the escher records.- Parameters:
hssfShape- The simple shape this is based on.
-
getSpContainer
- Returns:
- The shape container and it's children that can represent this shape.
-
getObjRecord
- Returns:
- The object record that is associated with this shape.
-
createAnchor
Creates an escher anchor record from a HSSFAnchor.- Parameters:
userAnchor- The high level anchor to convert.- Returns:
- An escher anchor record.
-
addStandardOptions
Add standard properties to the opt record. These properties effect all records.- Parameters:
shape- The user model shape.opt- The opt record to add the properties to.- Returns:
- The number of options added.
-