jxl.biff
Class RangeImpl

java.lang.Object
  extended byjxl.biff.RangeImpl
All Implemented Interfaces:
Range

public class RangeImpl
extends java.lang.Object
implements Range

Implementation class for the Range interface. This merely holds the raw range information, and when the time comes, it interrogates the workbook for the object. This does not keep handles to the objects for performance reasons, as this could impact garbage collection on larger spreadsheets


Constructor Summary
RangeImpl(WorkbookMethods w, int s1, int c1, int r1, int s2, int c2, int r2)
          Constructor
 
Method Summary
 Cell getBottomRight()
          Gets the cell at the bottom right of this range
 int getFirstSheetIndex()
          Gets the index of the first sheet in the range
 int getLastSheetIndex()
          Gets the index of the last sheet in the range
 Cell getTopLeft()
          Gets the cell at the top left of this range
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeImpl

public RangeImpl(WorkbookMethods w,
                 int s1,
                 int c1,
                 int r1,
                 int s2,
                 int c2,
                 int r2)
Constructor

Parameters:
w - the workbook
s1 - the sheet of the top left cell of the range
c1 - the column number of the top left cell of the range
r1 - the row number of the top left cell of the range
s2 - the sheet of the bottom right cell
c2 - the column number of the bottom right cell of the range
r2 - the row number of the bottomr right cell of the range
Method Detail

getTopLeft

public Cell getTopLeft()
Gets the cell at the top left of this range

Specified by:
getTopLeft in interface Range
Returns:
the cell at the top left

getBottomRight

public Cell getBottomRight()
Gets the cell at the bottom right of this range

Specified by:
getBottomRight in interface Range
Returns:
the cell at the bottom right

getFirstSheetIndex

public int getFirstSheetIndex()
Gets the index of the first sheet in the range

Specified by:
getFirstSheetIndex in interface Range
Returns:
the index of the first sheet in the range

getLastSheetIndex

public int getLastSheetIndex()
Gets the index of the last sheet in the range

Specified by:
getLastSheetIndex in interface Range
Returns:
the index of the last sheet in the range