|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hssf.usermodel.HSSFShape
org.apache.poi.hssf.usermodel.HSSFSimpleShape
public class HSSFSimpleShape
Represents a simple shape such as a line, rectangle or oval.
Field Summary | |
---|---|
static short |
OBJECT_TYPE_COMBO_BOX
|
static short |
OBJECT_TYPE_COMMENT
|
static short |
OBJECT_TYPE_LINE
|
static short |
OBJECT_TYPE_OVAL
|
static short |
OBJECT_TYPE_PICTURE
|
static short |
OBJECT_TYPE_RECTANGLE
|
Fields inherited from class org.apache.poi.hssf.usermodel.HSSFShape |
---|
LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT |
Method Summary | |
---|---|
java.lang.String |
getAuthor()
Name of the original comment author |
int |
getColumn()
Return the column of the cell that contains the comment |
int |
getRow()
Return the row of the cell that contains the comment |
int |
getShapeType()
Gets the shape type. |
RichTextString |
getString()
Fetches the rich text string of the comment |
boolean |
isVisible()
Sets whether this comment is visible. |
void |
setAuthor(java.lang.String author)
Name of the original comment author |
void |
setColumn(int col)
Set the column of the cell that contains the comment |
void |
setRow(int row)
Set the row of the cell that contains the comment |
void |
setShapeType(int shapeType)
Sets the shape types. |
void |
setString(RichTextString string)
Sets the rich text string used by this comment. |
void |
setVisible(boolean visible)
Returns whether this comment is visible. |
Methods inherited from class org.apache.poi.hssf.usermodel.HSSFShape |
---|
countOfAllChildren, getAnchor, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getParent, isNoFill, setAnchor, setFillColor, setFillColor, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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_COMBO_BOX
public static final short OBJECT_TYPE_COMMENT
Method Detail |
---|
public int getShapeType()
OBJECT_TYPE_LINE
,
OBJECT_TYPE_OVAL
,
OBJECT_TYPE_RECTANGLE
,
OBJECT_TYPE_PICTURE
,
OBJECT_TYPE_COMMENT
public void setShapeType(int shapeType)
shapeType
- One of the OBJECT_TYPE_* constants.OBJECT_TYPE_LINE
,
OBJECT_TYPE_OVAL
,
OBJECT_TYPE_RECTANGLE
,
OBJECT_TYPE_PICTURE
,
OBJECT_TYPE_COMMENT
public void setVisible(boolean visible)
Comment
setVisible
in interface Comment
visible
- true
if the comment is visible, false
otherwisepublic boolean isVisible()
Comment
isVisible
in interface Comment
true
if the comment is visible, false
otherwisepublic int getRow()
Comment
getRow
in interface Comment
public void setRow(int row)
Comment
setRow
in interface Comment
row
- the 0-based row of the cell that contains the commentpublic int getColumn()
Comment
getColumn
in interface Comment
public void setColumn(int col)
Comment
setColumn
in interface Comment
col
- the 0-based column of the cell that contains the commentpublic java.lang.String getAuthor()
Comment
getAuthor
in interface Comment
public void setAuthor(java.lang.String author)
Comment
setAuthor
in interface Comment
author
- the name of the original author of the commentpublic RichTextString getString()
Comment
getString
in interface Comment
public void setString(RichTextString string)
Comment
setString
in interface Comment
string
- Sets the rich text string used by this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |