Class HSSFComment

    • Method Detail

      • setVisible

        public void setVisible​(boolean visible)
        Sets whether this comment is visible.
        Specified by:
        setVisible in interface Comment
        Parameters:
        visible - true if the comment is visible, false otherwise
      • isVisible

        public boolean isVisible()
        Returns whether this comment is visible.
        Specified by:
        isVisible in interface Comment
        Returns:
        true if the comment is visible, false otherwise
      • getAddress

        public CellAddress getAddress()
        Description copied from interface: Comment
        Get the address of the cell that this comment is attached to
        Specified by:
        getAddress in interface Comment
        Returns:
        comment cell address
      • setAddress

        public void setAddress​(CellAddress address)
        Description copied from interface: Comment
        Set the address of the cell that this comment is attached to
        Specified by:
        setAddress in interface Comment
      • setAddress

        public void setAddress​(int row,
                               int col)
        Description copied from interface: Comment
        Set the address of the cell that this comment is attached to
        Specified by:
        setAddress in interface Comment
      • getRow

        public int getRow()
        Return the row of the cell that contains the comment
        Specified by:
        getRow in interface Comment
        Returns:
        the 0-based row of the cell that contains the comment
      • setRow

        public void setRow​(int row)
        Set the row of the cell that contains the comment
        Specified by:
        setRow in interface Comment
        Parameters:
        row - the 0-based row of the cell that contains the comment
      • getColumn

        public int getColumn()
        Return the column of the cell that contains the comment
        Specified by:
        getColumn in interface Comment
        Returns:
        the 0-based column of the cell that contains the comment
      • setColumn

        public void setColumn​(int col)
        Set the column of the cell that contains the comment
        Specified by:
        setColumn in interface Comment
        Parameters:
        col - the 0-based column of the cell that contains the comment
      • getAuthor

        public java.lang.String getAuthor()
        Name of the original comment author
        Specified by:
        getAuthor in interface Comment
        Returns:
        the name of the original author of the comment
      • setAuthor

        public void setAuthor​(java.lang.String author)
        Name of the original comment author
        Specified by:
        setAuthor in interface Comment
        Parameters:
        author - the name of the original author of the comment
      • hasPosition

        public boolean hasPosition()
        Do we know which cell this comment belongs to?
      • afterRemove

        public void afterRemove​(HSSFPatriarch patriarch)
      • setBackgroundImage

        public void setBackgroundImage​(int pictureIndex)
      • resetBackgroundImage

        public void resetBackgroundImage()
      • getBackgroundImageId

        public int getBackgroundImageId()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object