Save This Page
Home » jexcelapi_2_6_8 » jxl.biff » [javadoc | source]
jxl.biff
public class: SheetRangeImpl [javadoc | source]
java.lang.Object
   jxl.biff.SheetRangeImpl

All Implemented Interfaces:
    Range

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:
 public SheetRangeImpl(SheetRangeImpl c,
    Sheet s) 
    A copy constructor used for copying ranges between sheets
    Parameters:
    c - the range to copy from
    s - the writable sheet
 public SheetRangeImpl(Sheet s,
    int c1,
    int r1,
    int c2,
    int r2) 
    Constructor
    Parameters:
    s - the sheet containing 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
    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 from jxl.biff.SheetRangeImpl Summary:
equals,   getBottomRight,   getFirstSheetIndex,   getLastSheetIndex,   getTopLeft,   hashCode,   insertColumn,   insertRow,   intersects,   removeColumn,   removeRow,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.biff.SheetRangeImpl Detail:
 public boolean equals(Object o) 
    Standard equals method
 public Cell getBottomRight() 
    Gets the cell at the bottom right of this range
 public int getFirstSheetIndex() 
    Not supported. Returns -1, indicating that it refers to the current sheet
 public int getLastSheetIndex() 
    Not supported. Returns -1, indicating that it refers to the current sheet
 public Cell getTopLeft() 
    Gets the cell at the top left of this range
 public int hashCode() 
    Standard hash code method
 public  void insertColumn(int c) 
    A column has been inserted, so adjust the range objects accordingly
 public  void insertRow(int r) 
    A row has been inserted, so adjust the range objects accordingly
 public boolean intersects(SheetRangeImpl range) 
    Sees whether there are any intersections between this range and the range passed in. This method is used internally by the WritableSheet to verify the integrity of merged cells, hyperlinks etc. Ranges are only ever compared for the same sheet
 public  void removeColumn(int c) 
    A column has been removed, so adjust the range objects accordingly
 public  void removeRow(int r) 
    A row has been removed, so adjust the range objects accordingly
 public String toString() 
    To string method - primarily used during debugging