org.apache.poi.hssf.util
Class AreaReference

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

public class AreaReference
extends java.lang.Object


Constructor Summary
AreaReference(java.lang.String reference)
          Create an area ref from a string representation.
 
Method Summary
static AreaReference[] generateContiguous(java.lang.String reference)
          Takes a non-contiguous area reference, and returns an array of contiguous area references.
 CellReference[] getAllReferencedCells()
          Returns a reference to every cell covered by this area
 CellReference[] getCells()
          Return the cell references that define this area (i.e.
 int getDim()
          return the dimensions of this area
static boolean isContiguous(java.lang.String reference)
          Is the reference for a contiguous (i.e.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AreaReference

public AreaReference(java.lang.String reference)
Create an area ref from a string representation. The area reference must be contiguous

Method Detail

isContiguous

public static boolean isContiguous(java.lang.String reference)
Is the reference for a contiguous (i.e. unbroken) area, or is it made up of several different parts? (If it is, you will need to call ....


generateContiguous

public static AreaReference[] generateContiguous(java.lang.String reference)
Takes a non-contiguous area reference, and returns an array of contiguous area references.


getDim

public int getDim()
return the dimensions of this area


getCells

public CellReference[] getCells()
Return the cell references that define this area (i.e. the two corners)


getAllReferencedCells

public CellReference[] getAllReferencedCells()
Returns a reference to every cell covered by this area


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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