com.ihr.xbrl.tools.excel
Class Region

java.lang.Object
  extended by com.ihr.xbrl.tools.excel.Region

public class Region
extends java.lang.Object

This object represents a region in Excel represented by two corners, the top left corner and the bottom right corner.

Author:
Ignacio

Constructor Summary
Region(SheetPoint corner1, SheetPoint corner2)
          Creates a new region instance by specifying two corners of the region.
 
Method Summary
 boolean contains(SheetPoint point)
           
 SheetPoint getBottomRight()
           
 java.lang.String getName()
           
 SheetPoint getTopLeft()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Region

public Region(SheetPoint corner1,
              SheetPoint corner2)
       throws InvalidRegionException
Creates a new region instance by specifying two corners of the region. The region extends rectangular regardless the corners are topLeft, bottomRight or topRight and bottomLeft

Parameters:
corner1, - a SheetPoint
corner2, - a SheetPoint
Throws:
InvalidRegionException
Method Detail

getName

public java.lang.String getName()

contains

public boolean contains(SheetPoint point)
Parameters:
point -
Returns:

getTopLeft

public SheetPoint getTopLeft()

getBottomRight

public SheetPoint getBottomRight()


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa