Package loci.poi.hssf.model
Class CommentShape
java.lang.Object
loci.poi.hssf.model.AbstractShape
loci.poi.hssf.model.TextboxShape
loci.poi.hssf.model.CommentShape
Represents a cell comment.
This class converts highlevel model data from
HSSFComment
to low-level records.- Author:
- Yegor Kozlov
-
Constructor Summary
ConstructorsConstructorDescriptionCommentShape(HSSFComment hssfShape, int shapeId) Creates the low-level records for a comment. -
Method Summary
Modifier and TypeMethodDescriptionprotected intaddStandardOptions(HSSFShape shape, EscherOptRecord opt) Sets standard escher options for a comment.Return theNoteRecordholding the comment attributesMethods inherited from class loci.poi.hssf.model.TextboxShape
getEscherTextbox, getObjRecord, getSpContainer, getTextObjectRecordMethods inherited from class loci.poi.hssf.model.AbstractShape
createAnchor, createShape
-
Constructor Details
-
CommentShape
Creates the low-level records for a comment.- Parameters:
hssfShape- The highlevel shape.shapeId- The shape id to use for this shape.
-
-
Method Details
-
addStandardOptions
Sets standard escher options for a comment. This method is responsible for setting default background, shading and other comment properties.- Overrides:
addStandardOptionsin classAbstractShape- Parameters:
shape- The highlevel shape.opt- The escher records holding the proerties- Returns:
- number of escher options added
-
getNoteRecord
Return theNoteRecordholding the comment attributes- Returns:
NoteRecordholding the comment attributes
-