Home » JCraft » jxl » write » [javadoc | source]
jxl.write
public class: WritableImage [javadoc | source]
java.lang.Object
   jxl.biff.drawing.Drawing
      jxl.write.WritableImage

All Implemented Interfaces:
    DrawingGroupObject, Image

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
public static  ImageAnchorProperties MOVE_AND_SIZE_WITH_CELLS    Image anchor properties which will move and resize an image along with the cells 
public static  ImageAnchorProperties MOVE_WITH_CELLS    Image anchor properties which will move an image when cells are inserted or deleted 
public static  ImageAnchorProperties NO_MOVE_OR_SIZE_WITH_CELLS    Image anchor properties which will leave an image unaffected when other cells are inserted, removed or resized 
Fields inherited from jxl.biff.drawing.Drawing:
MOVE_AND_SIZE_WITH_CELLS,  MOVE_WITH_CELLS,  NO_MOVE_OR_SIZE_WITH_CELLS
Constructor:
 public WritableImage(DrawingGroupObject d,
    DrawingGroup dg) 
    Constructor, used when copying sheets
    Parameters:
    d - the image to copy
    dg - the drawing group
 public WritableImage(double x,
    double y,
    double width,
    double height,
    File image) 
    Constructor
    Parameters:
    x - the column number at which to position the image
    y - the row number at which to position the image
    width - the number of columns cells which the image spans
    height - the number of rows which the image spans
    image - the source image file
 public WritableImage(double x,
    double y,
    double width,
    double height,
    byte[] imageData) 
Method from jxl.write.WritableImage Summary:
getColumn,   getHeight,   getImageAnchor,   getImageData,   getImageFile,   getRow,   getWidth,   setColumn,   setHeight,   setImageAnchor,   setRow,   setWidth
Methods from jxl.biff.drawing.Drawing:
getBlipId,   getColumn,   getDrawingGroup,   getHeight,   getHeight,   getHorizontalResolution,   getImageAnchor,   getImageBytes,   getImageData,   getImageFile,   getImageFilePath,   getImageHeight,   getImageWidth,   getMsoDrawingRecord,   getObjectId,   getOrigin,   getReferenceCount,   getRow,   getShapeId,   getSpContainer,   getType,   getVerticalResolution,   getWidth,   getWidth,   getX,   getY,   isFirst,   isFormObject,   removeRow,   setDrawingGroup,   setHeight,   setImageAnchor,   setObjectId,   setReferenceCount,   setWidth,   setX,   setY,   writeAdditionalRecords,   writeTailRecords
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.write.WritableImage Detail:
 public double getColumn() 
    Accessor for the image position
 public double getHeight() 
    Accessor for the image dimensions
 public ImageAnchorProperties getImageAnchor() 
    Accessor for the anchor properties
 public byte[] getImageData() 
    Accessor for the image data
 public File getImageFile() 
    Accessor for the image file
 public double getRow() 
    Accessor for the image position
 public double getWidth() 
    Accessor for the image dimensions
 public  void setColumn(double c) 
    Accessor for the image position
 public  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
 public  void setImageAnchor(ImageAnchorProperties iap) 
    Accessor for the anchor properties
 public  void setRow(double c) 
    Accessor for the image position
 public  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