public class HSSFComment extends HSSFTextbox implements Comment
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
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
FILL__FILLCOLOR_DEFAULT, LINESTYLE__COLOR_DEFAULT, LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DEFAULT, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT, NO_FILL_DEFAULT, NO_FILLHITTEST_FALSE, NO_FILLHITTEST_TRUE
Modifier | Constructor and Description |
---|---|
|
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) |
Modifier and Type | Method and Description |
---|---|
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() |
String |
getAuthor()
Name of the original comment author
|
int |
getBackgroundImageId() |
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
|
boolean |
isVisible()
Sets whether this comment is visible.
|
void |
resetBackgroundImage() |
void |
setAuthor(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 |
setColumn(short col)
Deprecated.
(Nov 2009) use
setColumn(int) } |
void |
setRow(int row)
Set the row of the cell that contains the comment
|
void |
setShapeType(int shapeType) |
void |
setVisible(boolean visible)
Returns whether this comment is visible.
|
getHorizontalAlignment, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getVerticalAlignment, setHorizontalAlignment, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setVerticalAlignment
createTextObjRecord, getShapeType, getString, getTextObjectRecord, getWrapText, setString, setWrapText
countOfAllChildren, getAnchor, getEscherContainer, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getObjRecord, getOptRecord, getParent, getPatriarch, getRotationDegree, isFlipHorizontal, isFlipVertical, isNoFill, setAnchor, setFillColor, setFillColor, setFlipHorizontal, setFlipVertical, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill, setParent, setPatriarch, setPropertyValue, setRotationDegree
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 sheetprotected HSSFComment(NoteRecord note, TextObjectRecord txo)
protected EscherContainerRecord createSpContainer()
createSpContainer
in class HSSFTextbox
protected ObjRecord createObjRecord()
createObjRecord
in class HSSFTextbox
public void setVisible(boolean visible)
setVisible
in interface Comment
visible
- true
if the comment is visible, false
otherwisepublic boolean isVisible()
public int getRow()
public void setRow(int row)
public int getColumn()
public void setColumn(int col)
@Deprecated public void setColumn(short col)
setColumn(int)
}public String getAuthor()
public void setAuthor(String author)
protected NoteRecord getNoteRecord()
public void setShapeType(int shapeType)
setShapeType
in class HSSFTextbox
shapeType
- - shapeTypeHSSFShapeTypes
public void afterRemove(HSSFPatriarch patriarch)
HSSFShape
afterRemove
in class HSSFTextbox
protected HSSFShape cloneShape()
cloneShape
in class HSSFTextbox
public void setBackgroundImage(int pictureIndex)
public void resetBackgroundImage()
public int getBackgroundImageId()
Copyright © 2020. All rights reserved.