FileDocCategorySizeDatePackage
HSSFSimpleShape.javaAPI DocApache Poi 3.0.13641Mon Jan 01 18:59:10 GMT 2007org.apache.poi.hssf.usermodel

HSSFSimpleShape

public class HSSFSimpleShape extends HSSFShape
Represents a simple shape such as a line, rectangle or oval.
author
Glen Stampoultzis (glens at apache.org)

Fields Summary
public static final short
OBJECT_TYPE_LINE
public static final short
OBJECT_TYPE_RECTANGLE
public static final short
OBJECT_TYPE_OVAL
public static final short
OBJECT_TYPE_PICTURE
public static final short
OBJECT_TYPE_COMMENT
int
shapeType
Constructors Summary
HSSFSimpleShape(HSSFShape parent, HSSFAnchor anchor)


         
    
        super( parent, anchor );
    
Methods Summary
public intgetShapeType()
Gets the shape type.

return
One of the OBJECT_TYPE_* constants.
see
#OBJECT_TYPE_LINE
see
#OBJECT_TYPE_OVAL
see
#OBJECT_TYPE_RECTANGLE
see
#OBJECT_TYPE_PICTURE
see
#OBJECT_TYPE_COMMENT

 return shapeType; 
public voidsetShapeType(int shapeType)
Sets the shape types.

param
shapeType One of the OBJECT_TYPE_* constants.
see
#OBJECT_TYPE_LINE
see
#OBJECT_TYPE_OVAL
see
#OBJECT_TYPE_RECTANGLE
see
#OBJECT_TYPE_PICTURE
see
#OBJECT_TYPE_COMMENT

 this.shapeType = shapeType;