CellArea

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Comparable

public final class CellArea implements Comparable

Represent an area of cells.

Example

         //Create Cell Area
         CellArea ca = new CellArea();
         ca.StartRow = 0;
         ca.EndRow = 0;
         ca.StartColumn = 0;
         ca.EndColumn = 0;

Constructors

ConstructorDescription
CellArea()

Fields

FieldDescription
EndColumnGets or set the end column of this area.
EndRowGets or set the end row of this area.
StartColumnGets or set the start column of this area.
StartRowGets or set the start row of this area.

Methods

MethodDescription
compareTo(Object obj)Compare two CellArea objects according to their top-left corner.
createCellArea(int startRow, int startColumn, int endRow, int endColumn)Creates a cell area.
createCellArea(String startCellName, String endCellName)Creates a cell area.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()Returns a string represents the current cell area object.
wait()
wait(long arg0)
wait(long arg0, int arg1)

CellArea()

public CellArea()

EndColumn

public int EndColumn

Gets or set the end column of this area.

EndRow

public int EndRow

Gets or set the end row of this area.

StartColumn

public int StartColumn

Gets or set the start column of this area.

StartRow

public int StartRow

Gets or set the start row of this area.

compareTo(Object obj)

public int compareTo(Object obj)

Compare two CellArea objects according to their top-left corner.

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: int - If two corners are in different rows, then compare their row index. Otherwise compare their column index. If two corners are same, then 0 will be returned.

createCellArea(int startRow, int startColumn, int endRow, int endColumn)

public static CellArea createCellArea(int startRow, int startColumn, int endRow, int endColumn)

Creates a cell area.

Parameters:

ParameterTypeDescription
startRowintThe start row.
startColumnintThe start column.
endRowintThe end row.
endColumnintThe end column.

Returns: CellArea - Return a CellArea.

createCellArea(String startCellName, String endCellName)

public static CellArea createCellArea(String startCellName, String endCellName)

Creates a cell area.

Parameters:

ParameterTypeDescription
startCellNamejava.lang.StringThe top-left cell of the range.
endCellNamejava.lang.StringThe bottom-right cell of the range.

Returns: CellArea - Return a CellArea.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns a string represents the current cell area object.

Returns: java.lang.String -

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int