Package org.apache.poi.hssf.usermodel
Class HSSFSimpleShape
java.lang.Object
org.apache.poi.hssf.usermodel.HSSFShape
org.apache.poi.hssf.usermodel.HSSFSimpleShape
- All Implemented Interfaces:
Shape
,SimpleShape
- Direct Known Subclasses:
HSSFCombobox
,HSSFPicture
,HSSFPolygon
,HSSFTextbox
Represents a simple shape such as a line, rectangle or oval.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final int
static final int
static final int
Fields inherited from class org.apache.poi.hssf.usermodel.HSSFShape
FILL__FILLCOLOR_DEFAULT, LINESTYLE__COLOR_DEFAULT, LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DEFAULT, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT, NO_FILL_DEFAULT, NO_FILLHITTEST_FALSE, NO_FILLHITTEST_TRUE
-
Constructor Summary
ConstructorDescriptionHSSFSimpleShape
(EscherContainerRecord spContainer, ObjRecord objRecord) HSSFSimpleShape
(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord textObjectRecord) HSSFSimpleShape
(HSSFShape parent, HSSFAnchor anchor) -
Method Summary
Modifier and TypeMethodDescriptionint
int
Gets the shape type.int
void
setShapeType
(int value) void
setString
(RichTextString string) void
setWrapText
(int value) Methods inherited from class org.apache.poi.hssf.usermodel.HSSFShape
countOfAllChildren, getAnchor, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getOptRecord, getParent, getPatriarch, getRotationDegree, getShapeName, isFlipHorizontal, isFlipVertical, isNoFill, setAnchor, setFillColor, setFillColor, setFlipHorizontal, setFlipVertical, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill, setRotationDegree
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.poi.ss.usermodel.Shape
getAnchor, getParent, getShapeName, isNoFill, setFillColor, setLineStyleColor, setNoFill
-
Field Details
-
OBJECT_TYPE_LINE
public static final short OBJECT_TYPE_LINE- See Also:
-
OBJECT_TYPE_RECTANGLE
public static final short OBJECT_TYPE_RECTANGLE- See Also:
-
OBJECT_TYPE_OVAL
public static final short OBJECT_TYPE_OVAL- See Also:
-
OBJECT_TYPE_ARC
public static final short OBJECT_TYPE_ARC- See Also:
-
OBJECT_TYPE_PICTURE
public static final short OBJECT_TYPE_PICTURE- See Also:
-
OBJECT_TYPE_COMBO_BOX
public static final short OBJECT_TYPE_COMBO_BOX- See Also:
-
OBJECT_TYPE_COMMENT
public static final short OBJECT_TYPE_COMMENT- See Also:
-
OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING
public static final short OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING- See Also:
-
WRAP_SQUARE
public static final int WRAP_SQUARE- See Also:
-
WRAP_BY_POINTS
public static final int WRAP_BY_POINTS- See Also:
-
WRAP_NONE
public static final int WRAP_NONE- See Also:
-
-
Constructor Details
-
HSSFSimpleShape
public HSSFSimpleShape(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord textObjectRecord) -
HSSFSimpleShape
-
HSSFSimpleShape
-
-
Method Details
-
getString
- Returns:
- the rich text string for this textbox.
-
setString
- Parameters:
string
- Sets the rich text string used by this object.
-
getShapeType
public int getShapeType()Gets the shape type.- Returns:
- One of the OBJECT_TYPE_* constants.
- See Also:
-
getWrapText
public int getWrapText() -
setWrapText
public void setWrapText(int value) -
setShapeType
public void setShapeType(int value) - Parameters:
value
- - shapeType- See Also:
-
getShapeId
public int getShapeId()- Specified by:
getShapeId
in interfaceSimpleShape
- Returns:
- the shape id, which is unique within the sheet
-