Class CommentShape


public class CommentShape extends TextboxShape
Represents a cell comment. This class converts highlevel model data from HSSFComment to low-level records.
Author:
Yegor Kozlov
  • Constructor Details

    • 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 Details

    • addStandardOptions

      protected int addStandardOptions(HSSFShape shape, EscherOptRecord opt)
      Sets standard escher options for a comment. This method is responsible for setting default background, shading and other comment properties.
      Overrides:
      addStandardOptions in class AbstractShape
      Parameters:
      shape - The highlevel shape.
      opt - The escher records holding the proerties
      Returns:
      number of escher options added
    • getNoteRecord

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