/** * Gets the operands for this operator from the stack. Does nothing * here */ public void getOperands(Stack s) { Assert.verify(false); }
/** * Default behaviour is to do nothing * * @param sheetIndex the sheet on which the column was inserted * @param col the column number which was inserted * @param currentSheet TRUE if this formula is on the sheet in which the * column was inserted, FALSE otherwise */ void columnInserted(int sheetIndex, int col, boolean currentSheet) { Assert.verify(false); }
/** * Accessor for the image file path. Normally this is the absolute path * of a file on the directory system, but if this drawing was constructed * using an byte[] then the blip id is returned * * @return the image file path, or the blip id */ public String getImageFilePath() { Assert.verify(false); return null; }
/** * Returns the cell type * * @return The cell type */ public CellType getType() { Assert.verify(false); return CellType.EMPTY; }
/** * Accessor for the image file path. Normally this is the absolute path * of a file on the directory system, but if this drawing was constructed * using an byte[] then the blip id is returned * * @return the image file path, or the blip id */ public String getImageFilePath() { Assert.verify(false); return null; }
/** * Sets the point size for this font, if the font hasn't been initialized * * @param ps the point size */ protected void setFontPointSize(int ps) { Assert.verify(!initialized); pointHeight = ps; }
/** * Sets the bold style for this font, if the font hasn't been initialized * * @param bs the bold style */ protected void setFontBoldStyle(int bs) { Assert.verify(!initialized); boldWeight = bs; }
/** * Sets the underline style for this font, if the font hasn't been * initialized * * @param us the underline style */ protected void setFontUnderlineStyle(int us) { Assert.verify(!initialized); underlineStyle = us; }
/** * Sets the script style (eg. superscript, subscript) for this font, * if the font hasn't been initialized * * @param ss the colour */ protected void setFontScriptStyle(int ss) { Assert.verify(!initialized); scriptStyle = ss; }
/** * Gets the token representation of this item in RPN. Does nothing here * * @return the bytes applicable to this formula */ byte[] getBytes() { Assert.verify(false); return null; }
/** * Accessor for the image data * * @return the image data */ public byte[] getImageBytes() { Assert.verify(false); return null; }
/** * Returns the cell type * * @return The cell type */ public CellType getType() { Assert.verify(false); return CellType.EMPTY; }
/** * Internal method to set the data validation. Used when reading */ public void setValidationSettings(DataValiditySettingsRecord dvsr) { Assert.verify(dvsr != null); validationSettings = dvsr; dataValidation = true; }
/** * Accessor for the image data * * @return the image data */ public byte[] getImageBytes() { Assert.verify(false); return null; }
/** * Adds a drawing to the list - typically used for comments * * @param the drawing to add */ void addDrawing(DrawingGroupObject o) { drawings.add(o); Assert.verify(!(o instanceof Drawing)); }
/** * Gets the name at the specified index * * @param index the index into the name table * @return the name of the cell */ public String getName(int index) { Assert.verify(index >= 0 && index < names.size()); NameRecord n = (NameRecord) names.get(index); return n.getName(); }
/** * Removes a drawing from this workbook * * @param d the drawing to remove */ void removeDrawing(Drawing d) { Assert.verify(drawingGroup != null); drawingGroup.remove(d); }
/** * Returns the numerical value as a string * * @return The numerical value of the formula as a string */ public String getContents() { Assert.verify(!isError()); // return Boolean.toString(value) - only available in 1.4 or later return (new Boolean(value)).toString(); }
/** * Gets the name at the specified index * * @param index the index into the name table * @return the name of the cell */ public String getName(int index) { Assert.verify(index >= 0 && index < names.size()); NameRecord n = (NameRecord) names.get(index); return n.getName(); }
/** * Initializes the drawing data from the escher record read in */ private void initialize() { EscherRecordData er = new EscherRecordData(this, 0); Assert.verify(er.isContainer()); escherData = new EscherContainer(er); Assert.verify(escherData.getLength() == drawingData.length); Assert.verify(escherData.getType() == EscherRecordType.DGG_CONTAINER); initialized = true; }