org.apache.poi.hssf.util
Class Region

java.lang.Object
  extended by org.apache.poi.ss.util.Region
      extended by org.apache.poi.hssf.util.Region
All Implemented Interfaces:
java.lang.Comparable

public class Region
extends Region

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()
          Creates a new instance of Region (0,0 - 0,0)
Region(int rowFrom, short colFrom, int rowTo, short colTo)
           
Region(MergeCellsRecord.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(java.lang.String ref)
           
 
Method Summary
 
Methods inherited from class org.apache.poi.ss.util.Region
compareTo, compareTo, contains, equals, getArea, getColumnFrom, getColumnTo, getRegionRef, getRowFrom, getRowTo, setColumnFrom, setColumnTo, setRowFrom, setRowTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Region

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


Region

public Region(int rowFrom,
              short colFrom,
              int rowTo,
              short colTo)

Region

public Region(MergeCellsRecord.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(java.lang.String ref)


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