org.apache.poi.xssf.usermodel
Class XSSFSimpleShape
java.lang.Object
org.apache.poi.xssf.usermodel.XSSFShape
org.apache.poi.xssf.usermodel.XSSFSimpleShape
- Direct Known Subclasses:
- XSSFTextBox
public class XSSFSimpleShape
- extends XSSFShape
Represents a shape with a predefined geometry in a SpreadsheetML drawing.
Possible shape types are defined in ShapeTypes
- Author:
- Yegor Kozlov
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCTShape
public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShape getCTShape()
getShapeType
public int getShapeType()
- Gets the shape type, one of the constants defined in
ShapeTypes
.
- Returns:
- the shape type
- See Also:
ShapeTypes
setShapeType
public void setShapeType(int type)
- Sets the shape types.
- Parameters:
type
- the shape type, one of the constants defined in ShapeTypes
.- See Also:
ShapeTypes
setText
public void setText(XSSFRichTextString str)