|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.biff.drawing.Drawing
Contains the various biff records used to insert a drawing into a worksheet
| Constructor Summary | |
|
Drawing(double x,
double y,
double width,
double height,
byte[] image)
Constructor invoked when writing the images |
|
Drawing(double x,
double y,
double width,
double height,
java.io.File image)
Constructor invoked when writing the images |
protected |
Drawing(DrawingGroupObject dgo,
DrawingGroup dg)
Copy constructor used to copy drawings from read to write |
|
Drawing(MsoDrawingRecord mso,
ObjRecord obj,
DrawingData dd,
DrawingGroup dg)
Constructor used when reading images |
| Method Summary | |
int |
getBlipId()
Accessor for the blip id |
double |
getColumn()
Interface method |
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.io.File |
getImageFile()
Accessor for the image file |
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 |
double |
getRow()
Interface method |
int |
getShapeId()
Accessor for the shape id |
jxl.biff.drawing.EscherContainer |
getSpContainer()
Creates the main Sp container for the drawing |
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 |
boolean |
isFirst()
Accessor for the first drawing on the sheet. |
boolean |
isFormObject()
Queries whether this object is a form object. |
void |
setDrawingGroup(DrawingGroup dg)
Sets the drawing group for this drawing. |
void |
setHeight(double h)
Accessor for the height of this drawing |
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 |
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 Does nothing here |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Drawing(MsoDrawingRecord mso,
ObjRecord obj,
DrawingData dd,
DrawingGroup dg)
mso - the drawing recordobj - the object recorddd - the drawing data for all drawings on this sheetdg - the drawing group
protected Drawing(DrawingGroupObject dgo,
DrawingGroup dg)
public Drawing(double x,
double y,
double width,
double height,
java.io.File image)
x - the columny - the rowwidth - the width in cellsheight - the height in cellsimage - the image file
public Drawing(double x,
double y,
double width,
double height,
byte[] image)
x - the columny - the rowwidth - the width in cellsheight - the height in cellsimage - the image data| Method Detail |
public java.io.File getImageFile()
getImageFile in interface Imagepublic java.lang.String getImageFilePath()
getImageFilePath in interface DrawingGroupObject
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 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 DrawingGroupObject
public byte[] getImageBytes()
throws java.io.IOException
getImageBytes in interface DrawingGroupObjectjava.io.IOExceptionpublic jxl.biff.drawing.ShapeType getType()
getType in interface DrawingGroupObject
public void writeAdditionalRecords(File outputFile)
throws java.io.IOException
writeAdditionalRecords in interface DrawingGroupObjectjava.io.IOException
public void writeTailRecords(File outputFile)
throws java.io.IOException
writeTailRecords in interface DrawingGroupObjectjava.io.IOExceptionpublic double getColumn()
getColumn in interface Imagepublic double getRow()
getRow in interface Imagepublic 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 | |||||||||