gui
Class TableRegion

java.lang.Object
  |
  +--gui.TableRegion

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

See Also:
Serialized Form

Constructor Summary
TableRegion(TableElement sTE, TableElement eTE)
          Constructs a TableRegion from two TableElements
TableRegion(TableRegion tr)
          Constructs a TableRegion from another TableRegion
 
Method Summary
 boolean equals(TableRegion tr)
           
 TableElement getEnd()
           
 TableElement getStart()
           
 boolean hasMoreElements()
          In regions of one (i.e., 1:1) we need to iterate over the single element, so termination is signaled by a null pointer
 boolean isSame(TableRegion tr)
           
static boolean isTableRegion(java.lang.String s)
           
 boolean isValid()
          Determines whether this TableRegion is valid.
 java.lang.Object nextElement()
          Iterate horizontally, then vertically through the region
 void setEnd(TableElement eTE)
           
 void setStart(TableElement sTE)
           
 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

TableRegion

public TableRegion(TableElement sTE,
                   TableElement eTE)
Constructs a TableRegion from two TableElements

TableRegion

public TableRegion(TableRegion tr)
Constructs a TableRegion from another TableRegion
Method Detail

hasMoreElements

public boolean hasMoreElements()
In regions of one (i.e., 1:1) we need to iterate over the single element, 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 TableElement getStart()

setStart

public void setStart(TableElement sTE)

getEnd

public TableElement getEnd()

setEnd

public void setEnd(TableElement eTE)

equals

public boolean equals(TableRegion tr)

isSame

public boolean isSame(TableRegion tr)

isValid

public boolean isValid()
Determines whether this TableRegion is valid.

isTableRegion

public static boolean isTableRegion(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)