spreadsheet
Class CellRegion

java.lang.Object
  |
  +--spreadsheet.CellRegion

public class CellRegion
extends java.lang.Object
implements java.util.Enumeration, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
CellRegion(Cell sc, Cell ec)
          Constructs a CellRegion from two cells
CellRegion(CellRegion cr)
          Constructs a CellRegion from another CellRegion
CellRegion(java.lang.String info)
          Constructs a CellRegion from a String
 
Method Summary
 Cell getEnd()
           
 Cell getStart()
           
 boolean hasMoreElements()
          In regions of one cell (i.e., A1:A1) we need to iterate over the single cell, so termination is signaled by a null pointer
static boolean isCellRegion(java.lang.String s)
           
 boolean isSame(CellRegion cr)
           
 java.lang.Object nextElement()
          Iterate horizontally, then vertically through the region
 void setEnd(Cell ec)
           
 void setStart(Cell sc)
           
 java.lang.String toString()
           
 java.lang.String toString(boolean isShort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellRegion

public CellRegion(Cell sc,
                  Cell ec)
Constructs a CellRegion from two cells

CellRegion

public CellRegion(CellRegion cr)
Constructs a CellRegion from another CellRegion

CellRegion

public CellRegion(java.lang.String info)
           throws java.lang.IllegalArgumentException
Constructs a CellRegion from a String
Method Detail

hasMoreElements

public boolean hasMoreElements()
In regions of one cell (i.e., A1:A1) we need to iterate over the single cell, so termination is signaled by a null pointer
Specified by:
hasMoreElements in interface java.util.Enumeration
See Also:
nextElement()

nextElement

public java.lang.Object nextElement()
Iterate horizontally, then vertically through the region
Specified by:
nextElement in interface java.util.Enumeration
See Also:
hasMoreElements()

getStart

public Cell getStart()

setStart

public void setStart(Cell sc)

getEnd

public Cell getEnd()

setEnd

public void setEnd(Cell ec)

isSame

public boolean isSame(CellRegion cr)

isCellRegion

public static boolean isCellRegion(java.lang.String s)

toString

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

toString

public java.lang.String toString(boolean isShort)