/** * Display the formatted escher stream * * @exception IOException */ public void display() throws IOException { EscherRecordData er = new EscherRecordData(stream, 0); EscherContainer ec = new EscherContainer(er); displayContainer(ec, 0); }
/** * The drawing record * * @param d the drawing record */ public void addMso(MsoDrawingRecord d) { mso = d; drawingData.addRawData(mso.getData()); }
/** * Gets the width of the image. Note that this is the width of the * underlying image, and does not take into account any size manipulations * that may have occurred when the image was added into Excel * * @return the image width in pixels */ public int getImageWidth() { return getPngReader().getWidth(); }
/** * Gets the height of the image. Note that this is the height of the * underlying image, and does not take into account any size manipulations * that may have occurred when the image was added into Excel * * @return the image width in pixels */ public int getImageHeight() { return getPngReader().getHeight(); }
/** * Removes a row * * @param r the row to be removed */ public void removeRow(int r) { if (y > r) { setY(r); } }
/** * Accessor for the anchor properties */ protected ImageAnchorProperties getImageAnchor() { if (!initialized) { initialize(); } return imageAnchorProperties; } }
/** * Accessor for the image position * * @return the column number at which the image is positioned */ public double getColumn() { return super.getX(); }
/** * Constructor */ public Spgr() { super(EscherRecordType.SPGR); setVersion(1); data = new byte[16]; }
/** * Constructor * * @param type the type */ protected EscherRecord(EscherRecordType type) { data = new EscherRecordData(type); }
/** * Accessor for the instance * * @return the instance */ protected final int getInstance() { return data.getInstance(); }
/** * Adds an mso record to this object * * @param d the mso record */ public void addMso(MsoDrawingRecord d) { mso = d; drawingData.addRawData(mso.getData()); }
/** * Display the formatted escher stream * * @exception IOException */ public void display() throws IOException { EscherRecordData er = new EscherRecordData(stream, 0); EscherContainer ec = new EscherContainer(er); displayContainer(ec, 0); }
/** * Gets the width of the image. Note that this is the width of the * underlying image, and does not take into account any size manipulations * that may have occurred when the image was added into Excel * * @return the image width in pixels */ public int getImageWidth() { return getPngReader().getWidth(); }
/** * Gets the height of the image. Note that this is the height of the * underlying image, and does not take into account any size manipulations * that may have occurred when the image was added into Excel * * @return the image width in pixels */ public int getImageHeight() { return getPngReader().getHeight(); }
/** * The drawing record * * @param d the drawing record */ public void addMso(MsoDrawingRecord d) { mso = d; drawingData.addRawData(mso.getData()); }
/** * The drawing record * * @param d the drawing record */ public void addMso(MsoDrawingRecord d) { mso = d; drawingData.addRawData(mso.getData()); }
/** * The drawing record * * @param d the drawing record */ public void addMso(MsoDrawingRecord d) { mso = d; drawingData.addRawData(mso.getData()); }
/** * Adds an mso record to this object * * @param d the mso record */ public void addMso(MsoDrawingRecord d) { mso = d; drawingData.addRawData(mso.getData()); }