/** * Interface method * * @return the column number at which the image is positioned */ public double getColumn() { return getX(); }
/** * Interface method * * @return the row number at which the image is positions */ public double getRow() { return getY(); }
/** * Accessor for the column of this drawing * * @return the column */ public double getX() { if (!initialized) { initialize(); } return x; }
/** * Creates the main Sp container for the drawing * * @return the SP container */ public EscherContainer getSpContainer() { if (!initialized) { initialize(); } Assert.verify(origin == Origin.READ); return getReadSpContainer(); }
/** * Removes a row * * @param r the row to be removed */ public void removeRow(int r) { if (y > r) { setY(r); } }
/** * Accessor for the image data * * @return the image data */ public byte[] getImageBytes() throws IOException { Assert.verify(false); if (origin == Origin.READ || origin == Origin.READ_WRITE) { return getImageData(); } Assert.verify(origin == Origin.WRITE); if (imageFile == null) { Assert.verify(imageData != null); return imageData; } byte[] data = new byte[(int) imageFile.length()]; FileInputStream fis = new FileInputStream(imageFile); fis.read(data, 0, data.length); fis.close(); return data; }
Drawing2 d2 = new Drawing2(msoRecord, drawingData, workbook.getDrawingGroup()); drawings.add(d2);
/** * Creates the main Sp container for the drawing * * @return the SP container */ public EscherContainer getSpContainer() { if (!initialized) { initialize(); } Assert.verify(origin == Origin.READ); return getReadSpContainer(); }
/** * Removes a row * * @param r the row to be removed */ public void removeRow(int r) { if (y > r) { setY(r); } }
/** * Accessor for the image data * * @return the image data */ public byte[] getImageBytes() throws IOException { Assert.verify(false); if (origin == Origin.READ || origin == Origin.READ_WRITE) { return getImageData(); } Assert.verify(origin == Origin.WRITE); if (imageFile == null) { Assert.verify(imageData != null); return imageData; } byte[] data = new byte[(int) imageFile.length()]; FileInputStream fis = new FileInputStream(imageFile); fis.read(data, 0, data.length); fis.close(); return data; }
Drawing2 d2 = new Drawing2(msoRecord, drawingData, workbook.getDrawingGroup()); drawings.add(d2);
/** * Accessor for the shape id * * @return the shape id */ public int getShapeId() { if (!initialized) { initialize(); } return shapeId; }
/** * Interface method * * @return the column number at which the image is positioned */ public double getColumn() { return getX(); }
/** * Interface method * * @return the row number at which the image is positions */ public double getRow() { return getY(); }
/** * Accessor for the blip id * * @return the blip id */ public final int getBlipId() { if (!initialized) { initialize(); } return blipId; }
/** * Accessor for the width of this drawing * * @return the number of columns spanned by this image */ public double getWidth() { if (!initialized) { initialize(); } return width; }
/** * Accessor for the object id * * @return the object id */ public final int getObjectId() { if (!initialized) { initialize(); } return objectId; }
/** * Accessor for the width of this drawing * * @return the number of columns spanned by this image */ public double getWidth() { if (!initialized) { initialize(); } return width; }
/** * Accessor for the blip id * * @return the blip id */ public final int getBlipId() { if (!initialized) { initialize(); } return blipId; }
/** * Accessor for the column of this drawing * * @return the column */ public double getX() { if (!initialized) { initialize(); } return x; }