public final int getFirstColumn() { return (short) _range.getFirstColumn(); }
/** * @param rowIx the row index * @param colIx the column index * * @return {@code true} if (rowIx, colIx) describes the first cell in this shared value * object's range * * @see #getRange() */ public final boolean isFirstCell(int rowIx, int colIx) { CellRangeAddress8Bit r = getRange(); return r.getFirstRow() == rowIx && r.getFirstColumn() == colIx; } }
/** * @param rowIx the row index * @param colIx the column index * * @return {@code true} if (rowIx, colIx) is within the range of this shared value object. * * @see #getRange() */ public final boolean isInRange(int rowIx, int colIx) { CellRangeAddress8Bit r = _range; return r.getFirstRow() <= rowIx && r.getLastRow() >= rowIx && r.getFirstColumn() <= colIx && r.getLastColumn() >= colIx; } /**
public CellRangeAddress8Bit copy() { return new CellRangeAddress8Bit(getFirstRow(), getLastRow(), getFirstColumn(), getLastColumn()); }
public CellRangeAddress getArrayFormulaRange() { if (_sharedFormulaRecord != null) { throw new IllegalStateException("not an array formula cell."); } CellReference expRef = _formulaRecord.getFormula().getExpReference(); if (expRef == null) { throw new IllegalStateException("not an array formula cell."); } ArrayRecord arec = _sharedValueManager.getArrayRecord(expRef.getRow(), expRef.getCol()); if (arec == null) { throw new IllegalStateException("ArrayRecord was not found for the locator " + expRef.formatAsString()); } CellRangeAddress8Bit a = arec.getRange(); return new CellRangeAddress(a.getFirstRow(), a.getLastRow(), a.getFirstColumn(),a.getLastColumn()); }
/** * Removes an array formula * @return the range of the array formula containing the specified cell. Never <code>null</code> */ public CellRangeAddress removeArrayFormula(int rowIndex, int columnIndex) { CellRangeAddress8Bit a = _sharedValueManager.removeArrayFormula(rowIndex, columnIndex); // at this point FormulaRecordAggregate#isPartOfArrayFormula() should return false _formulaRecord.setParsedExpression(null); return new CellRangeAddress(a.getFirstRow(), a.getLastRow(), a.getFirstColumn(), a.getLastColumn()); } }
public void serialize(LittleEndianOutput out) { out.writeShort(getFirstRow()); out.writeShort(getLastRow()); out.writeByte(getFirstColumn()); out.writeByte(getLastColumn()); }
public final int getFirstColumn() { return (short) _range.getFirstColumn(); }
public final int getFirstColumn() { return (short) _range.getFirstColumn(); }
/** * @return <code>true</code> if (rowIx, colIx) describes the first cell in this shared value * object's range ({@link #getRange()}) */ public final boolean isFirstCell(int rowIx, int colIx) { CellRangeAddress8Bit r = getRange(); return r.getFirstRow() == rowIx && r.getFirstColumn() == colIx; } }
/** * @return <code>true</code> if (rowIx, colIx) describes the first cell in this shared value * object's range ({@link #getRange()}) */ public final boolean isFirstCell(int rowIx, int colIx) { CellRangeAddress8Bit r = getRange(); return r.getFirstRow() == rowIx && r.getFirstColumn() == colIx; } }
/** * @return <code>true</code> if (rowIx, colIx) is within the range ({@link #getRange()}) * of this shared value object. */ public final boolean isInRange(int rowIx, int colIx) { CellRangeAddress8Bit r = _range; return r.getFirstRow() <= rowIx && r.getLastRow() >= rowIx && r.getFirstColumn() <= colIx && r.getLastColumn() >= colIx; } /**
/** * @return <code>true</code> if (rowIx, colIx) is within the range ({@link #getRange()}) * of this shared value object. */ public final boolean isInRange(int rowIx, int colIx) { CellRangeAddress8Bit r = _range; return r.getFirstRow() <= rowIx && r.getLastRow() >= rowIx && r.getFirstColumn() <= colIx && r.getLastColumn() >= colIx; } /**
public CellRangeAddress8Bit copy() { return new CellRangeAddress8Bit(getFirstRow(), getLastRow(), getFirstColumn(), getLastColumn()); }
/** * Removes an array formula * @return the range of the array formula containing the specified cell. Never <code>null</code> */ public CellRangeAddress removeArrayFormula(int rowIndex, int columnIndex) { CellRangeAddress8Bit a = _sharedValueManager.removeArrayFormula(rowIndex, columnIndex); // at this point FormulaRecordAggregate#isPartOfArrayFormula() should return false _formulaRecord.setParsedExpression(null); return new CellRangeAddress(a.getFirstRow(), a.getLastRow(), a.getFirstColumn(), a.getLastColumn()); } }
/** * Removes an array formula * @return the range of the array formula containing the specified cell. Never <code>null</code> */ public CellRangeAddress removeArrayFormula(int rowIndex, int columnIndex) { CellRangeAddress8Bit a = _sharedValueManager.removeArrayFormula(rowIndex, columnIndex); // at this point FormulaRecordAggregate#isPartOfArrayFormula() should return false _formulaRecord.setParsedExpression(null); return new CellRangeAddress(a.getFirstRow(), a.getLastRow(), a.getFirstColumn(), a.getLastColumn()); } }
/** * Removes an array formula * @return the range of the array formula containing the specified cell. Never <code>null</code> */ public CellRangeAddress removeArrayFormula(int rowIndex, int columnIndex) { CellRangeAddress8Bit a = _sharedValueManager.removeArrayFormula(rowIndex, columnIndex); // at this point FormulaRecordAggregate#isPartOfArrayFormula() should return false _formulaRecord.setParsedExpression(null); return new CellRangeAddress(a.getFirstRow(), a.getLastRow(), a.getFirstColumn(), a.getLastColumn()); } }
public void serialize(LittleEndianOutput out) { out.writeShort(getFirstRow()); out.writeShort(getLastRow()); out.writeByte(getFirstColumn()); out.writeByte(getLastColumn()); }
public void serialize(LittleEndianOutput out) { out.writeShort(getFirstRow()); out.writeShort(getLastRow()); out.writeByte(getFirstColumn()); out.writeByte(getLastColumn()); }
public void serialize(LittleEndianOutput out) { out.writeShort(getFirstRow()); out.writeShort(getLastRow()); out.writeByte(getFirstColumn()); out.writeByte(getLastColumn()); }