org.apache.poi.hssf.model
Class CommentShape

java.lang.Object
  extended by org.apache.poi.hssf.model.AbstractShape
      extended by org.apache.poi.hssf.model.TextboxShape
          extended by org.apache.poi.hssf.model.CommentShape

public final class CommentShape
extends TextboxShape

Represents a cell comment. This class converts highlevel model data from HSSFComment to low-level records.

Author:
Yegor Kozlov

Constructor Summary
CommentShape(HSSFComment hssfShape, int shapeId)
          Creates the low-level records for a comment.
 
Method Summary
 NoteRecord getNoteRecord()
          Return the NoteRecord holding the comment attributes
 
Methods inherited from class org.apache.poi.hssf.model.TextboxShape
getEscherTextbox, getObjRecord, getSpContainer, getTextObjectRecord
 
Methods inherited from class org.apache.poi.hssf.model.AbstractShape
createShape
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentShape

public CommentShape(HSSFComment hssfShape,
                    int shapeId)
Creates the low-level records for a comment.

Parameters:
hssfShape - The highlevel shape.
shapeId - The shape id to use for this shape.
Method Detail

getNoteRecord

public NoteRecord getNoteRecord()
Return the NoteRecord holding the comment attributes

Returns:
NoteRecord holding the comment attributes