1 /********************************************************************* 2 * 3 * Copyright (C) 2004 Andrew Khan 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 ***************************************************************************/ 19 20 package jxl; 21 22 import java.io.File; 23 24 import jxl.biff.drawing.Drawing; 25 26 /** 27 * Accessor functions for an image 28 */ 29 public interface Image 30 { 31 /** 32 * Accessor for the image position 33 * 34 * @return the column number at which the image is positioned 35 */ 36 public double getColumn(); 37 38 /** 39 * Accessor for the image position 40 * 41 * @return the row number at which the image is positions 42 */ 43 public double getRow(); 44 45 /** 46 * Accessor for the image dimensions 47 * 48 * @return the number of columns this image spans 49 */ 50 public double getWidth(); 51 52 /** 53 * Accessor for the image dimensions 54 * 55 * @return the number of rows which this image spans 56 */ 57 public double getHeight(); 58 59 /** 60 * Accessor for the image file 61 * 62 * @return the file which the image references 63 */ 64 public File getImageFile(); 65 66 /** 67 * Accessor for the image data 68 * 69 * @return the image data 70 */ 71 public byte[] getImageData(); 72 } 73