public class HSSFComment extends HSSFTextbox
| Modifier and Type | Field and Description |
|---|---|
private String |
author |
private short |
col |
private NoteRecord |
note |
private short |
row |
private TextObjectRecord |
txo |
private boolean |
visible |
marginBottom, marginLeft, marginRight, marginTop, OBJECT_TYPE_TEXT, stringOBJECT_TYPE_COMMENT, OBJECT_TYPE_LINE, OBJECT_TYPE_OVAL, OBJECT_TYPE_PICTURE, OBJECT_TYPE_RECTANGLE, shapeTypeanchor, fillColor, lineStyle, LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, lineStyleColor, lineWidth, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT, noFill, parent| Modifier | Constructor and Description |
|---|---|
|
HSSFComment(HSSFShape parent,
HSSFAnchor anchor)
Construct a new comment with the given parent and anchor.
|
protected |
HSSFComment(NoteRecord note,
TextObjectRecord txo) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthor()
Name of the original comment author
|
short |
getColumn()
Return the column of the cell that contains the comment
|
int |
getRow()
Return the row of the cell that contains the comment
|
boolean |
isVisible()
Sets whether this comment is visible.
|
void |
setAuthor(String author)
Name of the original comment author
|
void |
setColumn(short 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 |
setString(HSSFRichTextString string)
Sets the rich text string used by this comment.
|
void |
setVisible(boolean visible)
Returns whether this comment is visible.
|
getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getString, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopgetShapeType, setShapeTypecountOfAllChildren, getAnchor, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getParent, isNoFill, setAnchor, setFillColor, setFillColor, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFillprivate boolean visible
private short col
private short row
private String author
private NoteRecord note
private TextObjectRecord txo
public HSSFComment(HSSFShape parent, HSSFAnchor anchor)
parent - anchor - defines position of this anchor in the sheetprotected HSSFComment(NoteRecord note, TextObjectRecord txo)
public void setVisible(boolean visible)
visible - true if the comment is visible, false otherwisepublic boolean isVisible()
true if the comment is visible, false otherwisepublic int getRow()
public void setRow(int row)
row - the 0-based row of the cell that contains the commentpublic short getColumn()
public void setColumn(short col)
col - the 0-based column of the cell that contains the commentpublic String getAuthor()
public void setAuthor(String author)
author - the name of the original author of the commentpublic void setString(HSSFRichTextString string)
setString in class HSSFTextboxstring - Sets the rich text string used by this object.Copyright © 2016 Open Microscopy Environment