|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.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
| 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 |
int |
hashCode()
Standard hash code method |
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 |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SheetRangeImpl(Sheet s,
int c1,
int r1,
int c2,
int r2)
s - the sheet containing the rangec1 - the column number of the top left cell of the ranger1 - the row number of the top left cell of the rangec2 - the column number of the bottom right cell of the ranger2 - the row number of the bottomr right cell of the range
public SheetRangeImpl(SheetRangeImpl c,
Sheet s)
c - the range to copy froms - the writable sheet| Method Detail |
public Cell getTopLeft()
getTopLeft in interface Rangepublic Cell getBottomRight()
getBottomRight in interface Rangepublic int getFirstSheetIndex()
getFirstSheetIndex in interface Rangepublic int getLastSheetIndex()
getLastSheetIndex in interface Rangepublic boolean intersects(SheetRangeImpl range)
range - the range to compare against
public java.lang.String toString()
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 int hashCode()
public boolean equals(java.lang.Object o)
o - the object to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||