org.apache.poi.xssf.usermodel
Class XSSFSimpleShape

java.lang.Object
  extended by org.apache.poi.xssf.usermodel.XSSFShape
      extended by 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

Field Summary
 
Fields inherited from class org.apache.poi.xssf.usermodel.XSSFShape
EMU_PER_PIXEL, EMU_PER_POINT, PIXEL_DPI, POINT_DPI
 
Method Summary
 org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShape getCTShape()
           
 int getShapeType()
          Gets the shape type, one of the constants defined in ShapeTypes.
 void setShapeType(int type)
          Sets the shape types.
 void setText(XSSFRichTextString str)
           
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)