org.apache.poi.hssf.util
Class Region

java.lang.Object
  extended by org.apache.poi.hssf.util.Region

Deprecated. (Aug-2008) use CellRangeAddress

public class Region
extends java.lang.Object

Represents a from/to row/col square. This is a object primitive that can be used to represent row,col - row,col just as one would use String to represent a string of characters. Its really only useful for HSSF though.

Author:
Andrew C. Oliver acoliver at apache dot org

Constructor Summary
Region()
          Deprecated. Creates a new instance of Region (0,0 - 0,0)
Region(int rowFrom, short colFrom, int rowTo, short colTo)
          Deprecated.  
 
Method Summary
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.  
 short getColumnFrom()
          Deprecated. get the upper left hand corner column number
 short getColumnTo()
          Deprecated. get the lower right hand corner column number
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Region

public Region()
Deprecated. 
Creates a new instance of Region (0,0 - 0,0)


Region

public Region(int rowFrom,
              short colFrom,
              int rowTo,
              short colTo)
Deprecated. 
Method Detail

getColumnFrom

public short getColumnFrom()
Deprecated. 
get the upper left hand corner column number

Returns:
column number for the upper left hand corner

getRowFrom

public int getRowFrom()
Deprecated. 
get the upper left hand corner row number

Returns:
row number for the upper left hand corner

getColumnTo

public short getColumnTo()
Deprecated. 
get the lower right hand corner column number

Returns:
column number for the lower right hand corner

getRowTo

public int getRowTo()
Deprecated. 
get the lower right hand corner row number

Returns:
row number for the lower right hand corner

setColumnFrom

public void setColumnFrom(short colFrom)
Deprecated. 
set the upper left hand corner column number

Parameters:
colFrom - column number for the upper left hand corner

setRowFrom

public void setRowFrom(int rowFrom)
Deprecated. 
set the upper left hand corner row number

Parameters:
rowFrom - row number for the upper left hand corner

setColumnTo

public void setColumnTo(short colTo)
Deprecated. 
set the lower right hand corner column number

Parameters:
colTo - column number for the lower right hand corner

setRowTo

public void setRowTo(int rowTo)
Deprecated. 
get the lower right hand corner row number

Parameters:
rowTo - row number for the lower right hand corner

convertCellRangesToRegions

public static Region[] convertCellRangesToRegions(CellRangeAddress[] cellRanges)
Deprecated. 
Convert a List of CellRange objects to an array of regions

Parameters:
List - of CellRange objects
Returns:
regions

convertRegionsToCellRanges

public static CellRangeAddress[] convertRegionsToCellRanges(Region[] regions)
Deprecated. 

convertToCellRangeAddress

public static CellRangeAddress convertToCellRangeAddress(Region r)
Deprecated. 


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.