|
||||||||||
| 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
org.apache.poi.hssf.usermodel.HSSFTextbox
org.apache.poi.hssf.usermodel.HSSFComment
public class HSSFComment
Represents a cell comment - a sticky note associated with a cell.
| Field Summary |
|---|
| Fields inherited from class org.apache.poi.hssf.usermodel.HSSFTextbox |
|---|
HORIZONTAL_ALIGNMENT_CENTERED, HORIZONTAL_ALIGNMENT_DISTRIBUTED, HORIZONTAL_ALIGNMENT_JUSTIFIED, HORIZONTAL_ALIGNMENT_LEFT, HORIZONTAL_ALIGNMENT_RIGHT, OBJECT_TYPE_TEXT, VERTICAL_ALIGNMENT_BOTTOM, VERTICAL_ALIGNMENT_CENTER, VERTICAL_ALIGNMENT_DISTRIBUTED, VERTICAL_ALIGNMENT_JUSTIFY, VERTICAL_ALIGNMENT_TOP |
| Fields inherited from class org.apache.poi.hssf.usermodel.HSSFSimpleShape |
|---|
OBJECT_TYPE_ARC, OBJECT_TYPE_COMBO_BOX, OBJECT_TYPE_COMMENT, OBJECT_TYPE_LINE, OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING, OBJECT_TYPE_OVAL, OBJECT_TYPE_PICTURE, OBJECT_TYPE_RECTANGLE, WRAP_BY_POINTS, WRAP_NONE, WRAP_SQUARE |
| Constructor Summary | |
|---|---|
|
HSSFComment(EscherContainerRecord spContainer,
ObjRecord objRecord,
TextObjectRecord textObjectRecord,
NoteRecord note)
|
|
HSSFComment(HSSFShape parent,
HSSFAnchor anchor)
Construct a new comment with the given parent and anchor. |
protected |
HSSFComment(NoteRecord note,
TextObjectRecord txo)
|
| Method Summary | |
|---|---|
void |
afterRemove(HSSFPatriarch patriarch)
remove escher container from the patriarch.escherAggregate remove obj, textObj and note records if it's necessary in case of ShapeGroup remove all contained shapes |
protected HSSFShape |
cloneShape()
|
protected ObjRecord |
createObjRecord()
|
protected EscherContainerRecord |
createSpContainer()
|
boolean |
equals(java.lang.Object obj)
|
CellAddress |
getAddress()
Get the address of the cell that this comment is attached to |
java.lang.String |
getAuthor()
Name of the original comment author |
int |
getBackgroundImageId()
|
ClientAnchor |
getClientAnchor()
Return defines position of this anchor in the sheet. |
int |
getColumn()
Return the column of the cell that contains the comment |
protected NoteRecord |
getNoteRecord()
Returns the underlying Note record |
int |
getRow()
Return the row of the cell that contains the comment |
int |
hashCode()
|
boolean |
hasPosition()
Do we know which cell this comment belongs to? |
boolean |
isVisible()
Returns whether this comment is visible. |
void |
resetBackgroundImage()
|
void |
setAddress(CellAddress address)
Set the address of the cell that this comment is attached to |
void |
setAddress(int row,
int col)
Set the address of the cell that this comment is attached to |
void |
setAuthor(java.lang.String author)
Name of the original comment author |
void |
setBackgroundImage(int pictureIndex)
|
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)
|
void |
setVisible(boolean visible)
Sets whether this comment is visible. |
| Methods inherited from class org.apache.poi.hssf.usermodel.HSSFTextbox |
|---|
getHorizontalAlignment, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getVerticalAlignment, setHorizontalAlignment, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setVerticalAlignment |
| Methods inherited from class org.apache.poi.hssf.usermodel.HSSFSimpleShape |
|---|
createTextObjRecord, getShapeId, getShapeType, getString, getTextObjectRecord, getWrapText, setString, setWrapText |
| Methods inherited from class org.apache.poi.hssf.usermodel.HSSFShape |
|---|
countOfAllChildren, getAnchor, getEscherContainer, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getObjRecord, getOptRecord, getParent, getPatriarch, getRotationDegree, getShapeName, isFlipHorizontal, isFlipVertical, isNoFill, setAnchor, setFillColor, setFillColor, setFlipHorizontal, setFlipVertical, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill, setParent, setPatriarch, setPropertyValue, setRotationDegree |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.poi.ss.usermodel.Comment |
|---|
getString, setString |
| Methods inherited from interface org.apache.poi.ss.usermodel.Shape |
|---|
getAnchor, getParent, getShapeName, isNoFill, setFillColor, setLineStyleColor, setNoFill |
| Constructor Detail |
|---|
public HSSFComment(EscherContainerRecord spContainer,
ObjRecord objRecord,
TextObjectRecord textObjectRecord,
NoteRecord note)
public HSSFComment(HSSFShape parent,
HSSFAnchor anchor)
parent - anchor - defines position of this anchor in the sheet
protected HSSFComment(NoteRecord note,
TextObjectRecord txo)
| Method Detail |
|---|
protected EscherContainerRecord createSpContainer()
createSpContainer in class HSSFTextboxprotected ObjRecord createObjRecord()
createObjRecord in class HSSFTextboxpublic void setVisible(boolean visible)
setVisible in interface Commentvisible - true if the comment is visible, false otherwisepublic boolean isVisible()
isVisible in interface Commenttrue if the comment is visible, false otherwisepublic CellAddress getAddress()
Comment
getAddress in interface Commentpublic void setAddress(CellAddress address)
Comment
setAddress in interface Comment
public void setAddress(int row,
int col)
Comment
setAddress in interface Commentpublic int getRow()
getRow in interface Commentpublic void setRow(int row)
setRow in interface Commentrow - the 0-based row of the cell that contains the commentpublic int getColumn()
getColumn in interface Commentpublic void setColumn(int col)
setColumn in interface Commentcol - the 0-based column of the cell that contains the commentpublic java.lang.String getAuthor()
getAuthor in interface Commentpublic void setAuthor(java.lang.String author)
setAuthor in interface Commentauthor - the name of the original author of the commentprotected NoteRecord getNoteRecord()
public boolean hasPosition()
public ClientAnchor getClientAnchor()
CommentComment.setAddress(org.apache.poi.ss.util.CellAddress).
getClientAnchor in interface Commentpublic void setShapeType(int shapeType)
setShapeType in class HSSFTextboxshapeType - - shapeTypeHSSFShapeTypespublic void afterRemove(HSSFPatriarch patriarch)
HSSFShape
afterRemove in class HSSFTextboxprotected HSSFShape cloneShape()
cloneShape in class HSSFTextboxpublic void setBackgroundImage(int pictureIndex)
public void resetBackgroundImage()
public int getBackgroundImageId()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||