/** * Gets the internal index of the formatting record * * @return the index of the format record */ final int getXFIndex() { return format.getXFIndex(); }
/** * Gets the internal index of the formatting record * * @return the index of the format record */ final int getXFIndex() { return format.getXFIndex(); }
/** * Constructor used when setting column information from the user * API * * @param w the width of the column in characters * @param col the column to format * @param xf the style for the column */ public ColumnInfoRecord(int col, int w, XFRecord xf) { super(Type.COLINFO); column = col; width = w; style = xf; xfIndex = style.getXFIndex(); hidden = false; }
/** * Constructor used when setting column information from the user * API * * @param w the width of the column in characters * @param col the column to format * @param xf the style for the column */ public ColumnInfoRecord(int col, int w, XFRecord xf) { super(Type.COLINFO); column = col; width = w; style = xf; xfIndex = style.getXFIndex(); hidden = false; }
xfIndex = style.getXFIndex();
xfIndex = style.getXFIndex();
/** * Adds an extended formatting record to the list. If the XF record passed * in has not been initialized, its index is determined based on the * xfRecords list, and * this position is passed to the XF records initialize method * * @param xf the xf record to add * @exception NumFormatRecordsException */ public final void addStyle(XFRecord xf) throws NumFormatRecordsException { if (!xf.isInitialized()) { int pos = xfRecords.size(); xf.initialize(pos, this, fonts); xfRecords.add(xf); } else { // The XF record has probably been read in. If the index is greater // Than the size of the list, then it is not a preset format, // so add it if (xf.getXFIndex() >= xfRecords.size()) { xfRecords.add(xf); } } }
/** * Adds an extended formatting record to the list. If the XF record passed * in has not been initialized, its index is determined based on the * xfRecords list, and * this position is passed to the XF records initialize method * * @param xf the xf record to add * @exception NumFormatRecordsException */ public final void addStyle(XFRecord xf) throws NumFormatRecordsException { if (!xf.isInitialized()) { int pos = xfRecords.size(); xf.initialize(pos, this, fonts); xfRecords.add(xf); } else { // The XF record has probably been read in. If the index is greater // Than the size of the list, then it is not a preset format, // so add it if (xf.getXFIndex() >= xfRecords.size()) { xfRecords.add(xf); } } }
/** * Gets the data to write to the output file * * @return the binary data */ public byte[] getData() { byte[] mydata = new byte[6]; IntegerHelper.getTwoBytes(row, mydata, 0); IntegerHelper.getTwoBytes(column, mydata, 2); IntegerHelper.getTwoBytes(format.getXFIndex(), mydata, 4); return mydata; }
/** * Gets the data to write to the output file * * @return the binary data */ public byte[] getData() { byte[] mydata = new byte[6]; IntegerHelper.getTwoBytes(row, mydata, 0); IntegerHelper.getTwoBytes(column, mydata, 2); IntegerHelper.getTwoBytes(format.getXFIndex(), mydata, 4); return mydata; }
int xfIndex = xfr.getXFIndex(); xfRecords.put(new Integer(xfIndex), f);
int xfIndex = xfr.getXFIndex(); xfRecords.put(new Integer(xfIndex), f);
int xfIndex = xfr.getXFIndex(); xfRecords.put(new Integer(xfIndex), f);
int xfIndex = xfr.getXFIndex(); xfRecords.put(new Integer(xfIndex), f);
mapping.setMapping(i, mapping.getNewIndex(xf2.getXFIndex())); numremoved++;
mapping.setMapping(i, mapping.getNewIndex(xf2.getXFIndex())); numremoved++;
int index = ( (XFRecord) cf).getXFIndex(); WritableCellFormat wcf = (WritableCellFormat) xfRecords.get(new Integer(index));
int index = ( (XFRecord) cf).getXFIndex(); WritableCellFormat wcf = (WritableCellFormat) xfRecords.get(new Integer(index));
int index = ( (XFRecord) cf).getXFIndex(); WritableCellFormat wcf = (WritableCellFormat) xfRecords.get(new Integer(index));
int index = ( (XFRecord) cf).getXFIndex(); WritableCellFormat wcf = (WritableCellFormat) xfRecords.get(new Integer(index));