| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjxl.biff.drawing.Drawing
jxl.write.WritableImage
Allows an image to be created, or an existing image to be manipulated Note that co-ordinates and dimensions are given in cells, so that if for example the width or height of a cell which the image spans is altered, the image will have a correspondign distortion
| Field Summary | 
| Fields inherited from class jxl.biff.drawing.Drawing | 
READ, READ_WRITE, WRITE | 
| Constructor Summary | |
WritableImage(double x,
              double y,
              double width,
              double height,
              byte[] imageData)
Constructor  | 
|
WritableImage(double x,
              double y,
              double width,
              double height,
              java.io.File image)
Constructor  | 
|
WritableImage(jxl.biff.drawing.Drawing d)
Constructor, used when copying sheets  | 
|
| Method Summary | |
 double | 
getColumn()
Accessor for the image position  | 
 double | 
getHeight()
Accessor for the image dimensions  | 
 byte[] | 
getImageData()
Accessor for the image data  | 
 java.io.File | 
getImageFile()
Accessor for the image file  | 
 double | 
getRow()
Accessor for the image position  | 
 double | 
getWidth()
Accessor for the image dimensions  | 
 void | 
setColumn(double c)
Accessor for the image position  | 
 void | 
setHeight(double c)
Accessor for the image dimensions Note that the actual size of the rendered image will depend on the height of the rows it spans  | 
 void | 
setRow(double c)
Accessor for the image position  | 
 void | 
setWidth(double c)
Accessor for the image dimensions Note that the actual size of the rendered image will depend on the width of the columns it spans  | 
| Methods inherited from class jxl.biff.drawing.Drawing | 
getData, getSpContainer, getX, getY, setX, setY | 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public WritableImage(double x,
                     double y,
                     double width,
                     double height,
                     byte[] imageData)
x - the column number at which to position the imagey - the row number at which to position the imagewidth - the number of columns cells which the image spansheight - the number of rows which the image spans
public WritableImage(double x,
                     double y,
                     double width,
                     double height,
                     java.io.File image)
x - the column number at which to position the imagey - the row number at which to position the imagewidth - the number of columns cells which the image spansheight - the number of rows which the image spansimage - the source image filepublic WritableImage(jxl.biff.drawing.Drawing d)
d - the image to copy| Method Detail | 
public double getColumn()
public double getHeight()
public byte[] getImageData()
public java.io.File getImageFile()
public double getRow()
public double getWidth()
public void setColumn(double c)
c - the column number at which the image should be positionedpublic void setHeight(double c)
c - the number of rows which this image should spanpublic void setRow(double c)
c - the row number at which the image should be positionedpublic void setWidth(double c)
c - the number of columns which this image spans
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||