|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.biff.SheetRangeImpl
Implementation class for the Range interface. This merely holds the raw range information. This implementation is used for ranges which are present on the current working sheet, so the getSheetIndex merely returns -1
Field Summary | |
private int |
column1
The column number of the cell at the top left of the range |
private int |
column2
The column index of the cell at the bottom right |
private int |
row1
The row number of the cell at the top left of the range |
private int |
row2
The row index of the cell at the bottom right |
private Sheet |
sheet
A handle to the sheet containing this range |
Constructor Summary | |
SheetRangeImpl(Sheet s,
int c1,
int r1,
int c2,
int r2)
Constructor |
|
SheetRangeImpl(SheetRangeImpl c,
Sheet s)
A copy constructor used for copying ranges between sheets |
Method Summary | |
boolean |
equals(java.lang.Object o)
Standard equals method |
Cell |
getBottomRight()
Gets the cell at the bottom right of this range |
int |
getFirstSheetIndex()
Not supported. |
int |
getLastSheetIndex()
Not supported. |
Cell |
getTopLeft()
Gets the cell at the top left of this range |
void |
insertColumn(int c)
A column has been inserted, so adjust the range objects accordingly |
void |
insertRow(int r)
A row has been inserted, so adjust the range objects accordingly |
boolean |
intersects(SheetRangeImpl range)
Sees whether there are any intersections between this range and the range passed in. |
void |
removeColumn(int c)
A column has been removed, so adjust the range objects accordingly |
void |
removeRow(int r)
A row has been removed, so adjust the range objects accordingly |
java.lang.String |
toString()
To string method - primarily used during debugging |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Sheet sheet
private int column1
private int row1
private int column2
private int row2
Constructor Detail |
public SheetRangeImpl(Sheet s, int c1, int r1, int c2, int r2)
public SheetRangeImpl(SheetRangeImpl c, Sheet s)
r
- the range to copy froms
- the writable sheetMethod Detail |
public Cell getTopLeft()
getTopLeft
in interface Range
public Cell getBottomRight()
getBottomRight
in interface Range
public int getFirstSheetIndex()
getFirstSheetIndex
in interface Range
public int getLastSheetIndex()
getLastSheetIndex
in interface Range
public boolean intersects(SheetRangeImpl range)
the
- range to compare againstpublic java.lang.String toString()
toString
in class java.lang.Object
public void insertRow(int r)
r
- the row which has been insertedpublic void insertColumn(int c)
c
- the column which has been insertedpublic void removeRow(int r)
r
- the row which has been insertedpublic void removeColumn(int c)
c
- the column which has been removedpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |