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
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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
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)