Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.poi.hssf.record.formula.eval
Class AreaEvalBase

    java.lang.Object
      org.apache.poi.hssf.record.formula.eval.AreaEvalBase

All Implemented Interfaces:
  AreaEval, ValueEval, TwoDEval

    public abstract class AreaEvalBase

extends java.lang.Object
implements AreaEval

Author:
  Josh Micich

Method Summary
`boolean` | `contains(int row, int col)` returns true if the cell at row and col specified as absolute indexes in the sheet is contained in this area.
`boolean` | `containsColumn(int col)` returns true if the specified col is in range
`boolean` | `containsRow(int row)` returns true if the specified row is in range
`ValueEval` | `getAbsoluteValue(int row, int col)`
`int` | `getFirstColumn()` returns the 0-based index of the first col in this area.
`int` | `getFirstRow()` returns the 0-based index of the first row in this area.
`int` | `getHeight()`
`int` | `getLastColumn()` returns the 0-based index of the last col in this area.
`int` | `getLastRow()` returns the 0-based index of the last row in this area.
`abstract ValueEval` | `getRelativeValue(int relativeRowIndex, int relativeColumnIndex)`
`ValueEval` | `getValue(int row, int col)`
`int` | `getWidth()`
`boolean` | `isColumn()`
`boolean` | `isRow()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.apache.poi.hssf.record.formula.eval.AreaEval
`offset`

Methods inherited from interface org.apache.poi.ss.formula.TwoDEval
`getColumn, getRow`

Method Detail

### getFirstColumn

    public final int getFirstColumn()

  Description copied from interface: `AreaEval`
  returns the 0-based index of the first col in this area.

  Specified by:
    `getFirstColumn` in interface `AreaEval`

### getFirstRow

    public final int getFirstRow()

  Description copied from interface: `AreaEval`
  returns the 0-based index of the first row in this area.

  Specified by:
    `getFirstRow` in interface `AreaEval`

### getLastColumn

    public final int getLastColumn()

  Description copied from interface: `AreaEval`
  returns the 0-based index of the last col in this area.

  Specified by:
    `getLastColumn` in interface `AreaEval`

### getLastRow

    public final int getLastRow()

  Description copied from interface: `AreaEval`
  returns the 0-based index of the last row in this area.

  Specified by:
    `getLastRow` in interface `AreaEval`

### getAbsoluteValue

    public final ValueEval getAbsoluteValue(int row,
                                            int col)

  Specified by:
    `getAbsoluteValue` in interface `AreaEval`
  Returns:
    the ValueEval from within this area at the specified row and col index. Never `null` (possibly `BlankEval`). The specified indexes should be absolute indexes in the sheet and not relative indexes within the area.

### contains

    public final boolean contains(int row,
                                  int col)

  Description copied from interface: `AreaEval`
  returns true if the cell at row and col specified as absolute indexes in the sheet is contained in this area.

  Specified by:
    `contains` in interface `AreaEval`

### containsRow

    public final boolean containsRow(int row)

  Description copied from interface: `AreaEval`
  returns true if the specified row is in range

  Specified by:
    `containsRow` in interface `AreaEval`

### containsColumn

    public final boolean containsColumn(int col)

  Description copied from interface: `AreaEval`
  returns true if the specified col is in range

  Specified by:
    `containsColumn` in interface `AreaEval`

### isColumn

    public final boolean isColumn()

  Specified by:
    `isColumn` in interface `TwoDEval`
  Returns:
    `true` if the area has just a single column, this also includes the trivial case when the area has just a single cell.

### isRow

    public final boolean isRow()

  Specified by:
    `isRow` in interface `TwoDEval`
  Returns:
    `true` if the area has just a single row, this also includes the trivial case when the area has just a single cell.

### getHeight

    public int getHeight()

  Specified by:
    `getHeight` in interface `AreaEval`
  Specified by:
    `getHeight` in interface `TwoDEval`

### getValue

    public final ValueEval getValue(int row,
                                    int col)

  Specified by:
    `getValue` in interface `TwoDEval`
  Parameters:
    `row` - relative row index (zero based)
    `col` - relative column index (zero based)
  Returns:
    element at the specified row and column position

### getRelativeValue

    public abstract ValueEval getRelativeValue(int relativeRowIndex,
                                               int relativeColumnIndex)

  Specified by:
    `getRelativeValue` in interface `AreaEval`
  Returns:
    the ValueEval from within this area at the specified relativeRowIndex and relativeColumnIndex. Never `null` (possibly `BlankEval`). The specified indexes should relative to the top left corner of this area.

### getWidth

    public int getWidth()

  Specified by:
    `getWidth` in interface `AreaEval`
  Specified by:
    `getWidth` in interface `TwoDEval`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD