|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.biff.drawing.Comment
Contains the various biff records used to insert a cell note into a worksheet
| Constructor Summary | |
Comment(DrawingGroupObject dgo,
DrawingGroup dg,
WorkbookSettings ws)
Copy constructor used to copy drawings from read to write |
|
Comment(MsoDrawingRecord mso,
ObjRecord obj,
DrawingData dd,
DrawingGroup dg,
WorkbookSettings ws)
Constructor used when reading images |
|
Comment(java.lang.String text,
int c,
int r)
Constructor invoked when writing the images |
|
| Method Summary | |
void |
addMso(MsoDrawingRecord d)
|
int |
getBlipId()
Accessor for the blip id |
int |
getColumn()
Accessor for the column |
DrawingGroup |
getDrawingGroup()
Accessor for the drawing group |
double |
getHeight()
Accessor for the height of this drawing |
byte[] |
getImageBytes()
Accessor for the image data |
byte[] |
getImageData()
Accessor for the image data |
java.lang.String |
getImageFilePath()
Accessor for the image file path. |
MsoDrawingRecord |
getMsoDrawingRecord()
Gets the drawing record which was read in |
int |
getObjectId()
Accessor for the object id |
Origin |
getOrigin()
Gets the origin of this drawing |
int |
getReferenceCount()
Accessor for the reference count on this drawing |
int |
getRow()
Accessor for the row |
int |
getShapeId()
Accessor for the shape id |
jxl.biff.drawing.EscherContainer |
getSpContainer()
Creates the main Sp container for the drawing |
java.lang.String |
getText()
Accessor for the comment text |
jxl.biff.drawing.ShapeType |
getType()
Accessor for the type |
double |
getWidth()
Accessor for the width of this drawing |
double |
getX()
Accessor for the column of this drawing |
double |
getY()
Accessor for the row of this drawing |
int |
hashCode()
Hashing algorithm |
boolean |
isFirst()
Accessor for the first drawing on the sheet. |
boolean |
isFormObject()
Queries whether this object is a form object. |
void |
setCommentText(java.lang.String t)
Called when the comment text is changed during the sheet copy process |
void |
setDrawingGroup(DrawingGroup dg)
Sets the drawing group for this drawing. |
void |
setFormatting(ContinueRecord t)
Sets the formatting |
void |
setHeight(double h)
Accessor for the height of this drawing |
void |
setNote(NoteRecord t)
Sets the note object |
void |
setObjectId(int objid,
int bip,
int sid)
Sets the object id. |
void |
setReferenceCount(int r)
Sets the new reference count on the drawing |
void |
setText(ContinueRecord t)
Sets the text data |
void |
setTextObject(TextObjectRecord t)
Sets the text object |
void |
setWidth(double w)
Accessor for the width |
void |
setX(double x)
Sets the column position of this drawing. |
void |
setY(double y)
Accessor for the row of the drawing |
void |
writeAdditionalRecords(File outputFile)
Writes any other records associated with this drawing group object |
void |
writeTailRecords(File outputFile)
Writes any records that need to be written after all the drawing group objects have been written Writes out all the note records |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Comment(MsoDrawingRecord mso,
ObjRecord obj,
DrawingData dd,
DrawingGroup dg,
WorkbookSettings ws)
mso - the drawing recordobj - the object recorddd - the drawing data for all drawings on this sheetdg - the drawing groupws - the workbook settings
public Comment(DrawingGroupObject dgo,
DrawingGroup dg,
WorkbookSettings ws)
public Comment(java.lang.String text,
int c,
int r)
text - the comment textc - the columnr - the row| Method Detail |
public final void setObjectId(int objid,
int bip,
int sid)
setObjectId in interface DrawingGroupObjectobjid - the object idbip - the blip idsid - the shape idpublic final int getObjectId()
getObjectId in interface DrawingGroupObjectpublic final int getShapeId()
getShapeId in interface DrawingGroupObjectpublic final int getBlipId()
getBlipId in interface DrawingGroupObjectpublic MsoDrawingRecord getMsoDrawingRecord()
getMsoDrawingRecord in interface DrawingGroupObjectpublic jxl.biff.drawing.EscherContainer getSpContainer()
getSpContainer in interface DrawingGroupObjectpublic void setDrawingGroup(DrawingGroup dg)
setDrawingGroup in interface DrawingGroupObjectdg - the drawing grouppublic DrawingGroup getDrawingGroup()
getDrawingGroup in interface DrawingGroupObjectpublic Origin getOrigin()
getOrigin in interface DrawingGroupObjectpublic int getReferenceCount()
getReferenceCount in interface DrawingGroupObjectpublic void setReferenceCount(int r)
setReferenceCount in interface DrawingGroupObjectr - the new reference countpublic double getX()
getX in interface DrawingGroupObjectpublic void setX(double x)
setX in interface DrawingGroupObjectx - the columnpublic double getY()
getY in interface DrawingGroupObjectpublic void setY(double y)
setY in interface DrawingGroupObjecty - the rowpublic double getWidth()
getWidth in interface DrawingGroupObjectpublic void setWidth(double w)
setWidth in interface DrawingGroupObjectw - the number of columns to spanpublic double getHeight()
getHeight in interface DrawingGroupObjectpublic void setHeight(double h)
setHeight in interface DrawingGroupObjecth - the number of rows spanned by this imagepublic byte[] getImageData()
getImageData in interface DrawingGroupObjectpublic jxl.biff.drawing.ShapeType getType()
getType in interface DrawingGroupObjectpublic void setTextObject(TextObjectRecord t)
public void setNote(NoteRecord t)
public void setText(ContinueRecord t)
public void setFormatting(ContinueRecord t)
public byte[] getImageBytes()
getImageBytes in interface DrawingGroupObjectpublic java.lang.String getImageFilePath()
getImageFilePath in interface DrawingGroupObjectpublic void addMso(MsoDrawingRecord d)
public void writeAdditionalRecords(File outputFile)
throws java.io.IOException
DrawingGroupObject
writeAdditionalRecords in interface DrawingGroupObjectjava.io.IOException
public void writeTailRecords(File outputFile)
throws java.io.IOException
writeTailRecords in interface DrawingGroupObjectjava.io.IOExceptionpublic int getRow()
public int getColumn()
public java.lang.String getText()
public int hashCode()
public void setCommentText(java.lang.String t)
t - the new textpublic boolean isFirst()
isFirst in interface DrawingGroupObjectpublic boolean isFormObject()
isFormObject in interface DrawingGroupObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||