| java.lang.Object org.apache.poi.hssf.util.Region
Region | public class Region implements Comparable(Code) | | 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 | |
public | Region() | public | Region(int rowFrom, short colFrom, int rowTo, short colTo) | public | Region(MergedRegion region) special constructor (I know this is bad but it is so wrong that its right
okay) that makes a region from a mergedcells's region subrecord. |
Region | public Region()(Code) | | Creates a new instance of Region (0,0 - 0,0)
|
Region | public Region(int rowFrom, short colFrom, int rowTo, short colTo)(Code) | | |
Region | public Region(MergedRegion region)(Code) | | special constructor (I know this is bad but it is so wrong that its right
okay) that makes a region from a mergedcells's region subrecord.
|
compareTo | public int compareTo(Region r)(Code) | | Compares that the given region is the same less than or greater than this
region. If any regional coordiant passed in is less than this regions
coordinants then a positive integer is returned. Otherwise a negative
integer is returned.
Parameters: r - region See Also: Region.compareTo(Object) |
contains | public boolean contains(int row, short col)(Code) | | Answers: "is the row/column inside this range?"
true if the cell is in the range andfalse if it is not |
getArea | public int getArea()(Code) | | the area contained by this region (number of cells) |
getColumnFrom | public short getColumnFrom()(Code) | | get the upper left hand corner column number
column number for the upper left hand corner |
getColumnTo | public short getColumnTo()(Code) | | get the lower right hand corner column number
column number for the lower right hand corner |
getRowFrom | public int getRowFrom()(Code) | | get the upper left hand corner row number
row number for the upper left hand corner |
getRowTo | public int getRowTo()(Code) | | get the lower right hand corner row number
row number for the lower right hand corner |
setColumnFrom | public void setColumnFrom(short colFrom)(Code) | | set the upper left hand corner column number
Parameters: colFrom - column number for the upper left hand corner |
setColumnTo | public void setColumnTo(short colTo)(Code) | | set the lower right hand corner column number
Parameters: colTo - column number for the lower right hand corner |
setRowFrom | public void setRowFrom(int rowFrom)(Code) | | set the upper left hand corner row number
Parameters: rowFrom - row number for the upper left hand corner |
setRowTo | public void setRowTo(int rowTo)(Code) | | get the lower right hand corner row number
Parameters: rowTo - row number for the lower right hand corner |
|
|