Spreadsheet Toolkit

corpus.excel
Class Range

java.lang.Object
  |
  +--corpus.excel.Component
        |
        +--corpus.excel.FormulaComponent
              |
              +--corpus.excel.AreaReference
                    |
                    +--corpus.excel.AreaCellReference
                          |
                          +--corpus.excel.Range
All Implemented Interfaces:
java.io.Serializable

public class Range
extends AreaCellReference

Used to store the internal representation of a Range. That is, two Cells seperated by a colin.

See Also:
Range Grammer, Serialized Form

Field Summary
 
Fields inherited from class corpus.excel.FormulaComponent
formula
 
Fields inherited from class corpus.excel.Component
haltOnErrors
 
Constructor Summary
Range(CellReference l, CellReference r)
          Temp constructor, DO NOT USE
Range(Row r)
           
 
Method Summary
 java.util.Vector getCells()
          Returns a Vector of all cells that this AreaReference refers to.
 boolean isSimple()
           
 CellReference left()
           
 int length()
          May be basic range, column or row.
static void main(java.lang.String[] args)
           
 javax.swing.tree.DefaultMutableTreeNode parseTree()
          Creates a parseTree for this FormulaComponent and any of its sub components.
 CellReference right()
           
 void setDepth(int depth)
           
 void setExcelRef(java.lang.String excelref)
           
 java.lang.String toHTMLString()
          Converts information about this component into an HTML formatted String.
 java.lang.String toString()
          To String
 
Methods inherited from class corpus.excel.FormulaComponent
getReferingFormula
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Range

public Range(CellReference l,
             CellReference r)
Temp constructor, DO NOT USE


Range

public Range(Row r)
Method Detail

left

public CellReference left()

right

public CellReference right()

isSimple

public boolean isSimple()

getCells

public java.util.Vector getCells()
Description copied from class: AreaReference
Returns a Vector of all cells that this AreaReference refers to.

Specified by:
getCells in class AreaReference

toString

public java.lang.String toString()
Description copied from class: AreaCellReference
To String

Specified by:
toString in class AreaCellReference

toHTMLString

public java.lang.String toHTMLString()
Converts information about this component into an HTML formatted String.

Specified by:
toHTMLString in class AreaCellReference

parseTree

public javax.swing.tree.DefaultMutableTreeNode parseTree()
Creates a parseTree for this FormulaComponent and any of its sub components.

Overrides:
parseTree in class FormulaComponent
Returns:
A DefaultMutableTreeNode representing this FormulaComponent and any sub components it may have.

setExcelRef

public void setExcelRef(java.lang.String excelref)

setDepth

public void setDepth(int depth)

length

public int length()
May be basic range, column or row.


main

public static void main(java.lang.String[] args)

Spreadsheet Toolkit

Project Home Page