org.jopendocument.dom.spreadsheet
Class Range

java.lang.Object
  extended by org.jopendocument.dom.spreadsheet.Range

public final class Range
extends Object

A cell range.

Author:
Sylvain

Constructor Summary
Range(String sheet, Point point)
          Create a new instance with a single cell.
Range(String sheet, Point startPoint, Point endPoint)
           
Range(String startSheet, Point startPoint, String endSheet, Point endPoint)
          Create a new instance.
 
Method Summary
 boolean equals(Object obj)
           
 Point getEndPoint()
           
 String getEndSheet()
           
 Point getStartPoint()
           
 String getStartSheet()
           
 int hashCode()
           
static Range parse(String range)
          Parse a range.
 boolean spanSheets()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Range

public Range(String sheet,
             Point point)
Create a new instance with a single cell.

Parameters:
sheet - name of the sheet.
point - coordinate of the cell.

Range

public Range(String sheet,
             Point startPoint,
             Point endPoint)

Range

public Range(String startSheet,
             Point startPoint,
             String endSheet,
             Point endPoint)
Create a new instance.

Parameters:
startSheet - name of the start sheet.
startPoint - coordinate of the start.
endSheet - name of the end sheet, can be null if the range doesn't span multiple sheets.
endPoint - coordinate of the end.
Method Detail

parse

public static final Range parse(String range)
Parse a range.

Parameters:
range - the string form, e.g. "Sheet1.A23:.AA34".
Returns:
the parsed range.

getStartSheet

public final String getStartSheet()

getStartPoint

public final Point getStartPoint()

getEndSheet

public final String getEndSheet()

getEndPoint

public final Point getEndPoint()

spanSheets

public final boolean spanSheets()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 jOpenDocument All Rights Reserved.