CellRangeAddress
public class Region extends java.lang.Object implements java.lang.Comparable<Region>
Constructor and Description |
---|
Region()
Deprecated.
Creates a new instance of Region (0,0 - 0,0)
|
Region(int rowFrom,
short colFrom,
int rowTo,
short colTo)
Deprecated.
|
Region(java.lang.String ref)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Region r)
Deprecated.
Compares that the given region is the same less than or greater than this
region.
|
boolean |
contains(int row,
short col)
Deprecated.
Answers: "is the row/column inside this range?"
|
static Region[] |
convertCellRangesToRegions(CellRangeAddress[] cellRanges)
Deprecated.
Convert a List of CellRange objects to an array of regions
|
static CellRangeAddress[] |
convertRegionsToCellRanges(Region[] regions)
Deprecated.
|
static CellRangeAddress |
convertToCellRangeAddress(Region r)
Deprecated.
|
boolean |
equals(Region r)
Deprecated.
|
int |
getArea()
Deprecated.
|
short |
getColumnFrom()
Deprecated.
get the upper left hand corner column number
|
short |
getColumnTo()
Deprecated.
get the lower right hand corner column number
|
java.lang.String |
getRegionRef()
Deprecated.
|
int |
getRowFrom()
Deprecated.
get the upper left hand corner row number
|
int |
getRowTo()
Deprecated.
get the lower right hand corner row number
|
void |
setColumnFrom(short colFrom)
Deprecated.
set the upper left hand corner column number
|
void |
setColumnTo(short colTo)
Deprecated.
set the lower right hand corner column number
|
void |
setRowFrom(int rowFrom)
Deprecated.
set the upper left hand corner row number
|
void |
setRowTo(int rowTo)
Deprecated.
get the lower right hand corner row number
|
public Region()
public Region(int rowFrom, short colFrom, int rowTo, short colTo)
public Region(java.lang.String ref)
public short getColumnFrom()
public int getRowFrom()
public short getColumnTo()
public int getRowTo()
public void setColumnFrom(short colFrom)
colFrom
- column number for the upper left hand cornerpublic void setRowFrom(int rowFrom)
rowFrom
- row number for the upper left hand cornerpublic void setColumnTo(short colTo)
colTo
- column number for the lower right hand cornerpublic void setRowTo(int rowTo)
rowTo
- row number for the lower right hand cornerpublic boolean contains(int row, short col)
true
if the cell is in the range and
false
if it is notpublic boolean equals(Region r)
public int compareTo(Region r)
compareTo
in interface java.lang.Comparable<Region>
r
- regionComparable.compareTo(Object)
public int getArea()
public static Region[] convertCellRangesToRegions(CellRangeAddress[] cellRanges)
cellRanges
- list of CellRange objectspublic static CellRangeAddress[] convertRegionsToCellRanges(Region[] regions)
public static CellRangeAddress convertToCellRangeAddress(Region r)
public java.lang.String getRegionRef()
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.