org.zkoss.zss.engine.impl
Class CellRefImpl

java.lang.Object
  extended by org.zkoss.zss.engine.impl.AbstractRefImpl
      extended by org.zkoss.zss.engine.impl.CellRefImpl
All Implemented Interfaces:
Ref
Direct Known Subclasses:
AreaRefImpl

public class CellRefImpl
extends AbstractRefImpl
implements Ref

Reference area used with IndexableRefMatrix for hit test.

Author:
henrichen

Constructor Summary
CellRefImpl(int row, int col, RefSheet ownerSheet)
           
 
Method Summary
 int getBottomRow()
          Return the row index of the right bottom corner.
 int getColumnCount()
          Returns the number of columns in this reference.
 int getLeftCol()
          Return the column index of the left top corner.
 int getRightCol()
          Return the column index of the right bottom corner.
 int getRowCount()
          Returns the number of rows in this reference.
 int getTopRow()
          Return the row index of the left top corner.
 boolean isWholeColumn()
          Returns whether this reference cover the whole column.
 boolean isWholeRow()
          Returns whether this reference cover the whole row.
 boolean isWholeSheet()
          Returns whether this reference cover the whole sheet.
 boolean isWithIndirectPrecedent()
          Returns whether this reference contains Indirect precedent.
protected  void removeSelf()
           
 void setBottomRow(int row)
          Sets the row index of the right bottom corner.
 void setLeftCol(int col)
          Sets the column index of the left top corner.
 void setRightCol(int col)
          Sets the column index of the right bottom corner.
 void setTopRow(int row)
          Sets the row index of the left top corner.
 void setWithIndirectPrecedent(boolean b)
          Sets whether this reference contains Indirect precedent.
 
Methods inherited from class org.zkoss.zss.engine.impl.AbstractRefImpl
getDependents, getOwnerSheet, getPrecedents, removeAllPrecedents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zkoss.zss.engine.Ref
getDependents, getOwnerSheet, getPrecedents, removeAllPrecedents
 

Constructor Detail

CellRefImpl

public CellRefImpl(int row,
                   int col,
                   RefSheet ownerSheet)
Method Detail

getLeftCol

public int getLeftCol()
Description copied from interface: Ref
Return the column index of the left top corner.

Specified by:
getLeftCol in interface Ref
Returns:
the column index of the left top corner.

getTopRow

public int getTopRow()
Description copied from interface: Ref
Return the row index of the left top corner.

Specified by:
getTopRow in interface Ref
Returns:
the row index of the left top corner.

getRightCol

public int getRightCol()
Description copied from interface: Ref
Return the column index of the right bottom corner.

Specified by:
getRightCol in interface Ref
Returns:
the column index of the right bottom corner.

getBottomRow

public int getBottomRow()
Description copied from interface: Ref
Return the row index of the right bottom corner.

Specified by:
getBottomRow in interface Ref
Returns:
the row index of the right bottom corner.

setTopRow

public void setTopRow(int row)
Description copied from interface: Ref
Sets the row index of the left top corner.

Specified by:
setTopRow in interface Ref
Parameters:
row - the row index of the left top corner.

setLeftCol

public void setLeftCol(int col)
Description copied from interface: Ref
Sets the column index of the left top corner.

Specified by:
setLeftCol in interface Ref
Parameters:
col - the column index of the left top corner.

setBottomRow

public void setBottomRow(int row)
Description copied from interface: Ref
Sets the row index of the right bottom corner.

Specified by:
setBottomRow in interface Ref
Parameters:
row - the row index of the right bottom corner.

setRightCol

public void setRightCol(int col)
Description copied from interface: Ref
Sets the column index of the right bottom corner.

Specified by:
setRightCol in interface Ref
Parameters:
col - the column index of the right bottom corner.

isWholeColumn

public boolean isWholeColumn()
Description copied from interface: Ref
Returns whether this reference cover the whole column.

Specified by:
isWholeColumn in interface Ref
Returns:
whether this reference cover the whole column.

isWholeRow

public boolean isWholeRow()
Description copied from interface: Ref
Returns whether this reference cover the whole row.

Specified by:
isWholeRow in interface Ref
Returns:
whether this reference cover the whole row.

isWholeSheet

public boolean isWholeSheet()
Description copied from interface: Ref
Returns whether this reference cover the whole sheet.

Specified by:
isWholeSheet in interface Ref
Returns:
whether this reference cover the whole sheet.

getColumnCount

public int getColumnCount()
Description copied from interface: Ref
Returns the number of columns in this reference.

Specified by:
getColumnCount in interface Ref
Returns:
the number of columns in this reference.

getRowCount

public int getRowCount()
Description copied from interface: Ref
Returns the number of rows in this reference.

Specified by:
getRowCount in interface Ref
Returns:
the number of rows in this reference.

isWithIndirectPrecedent

public boolean isWithIndirectPrecedent()
Description copied from interface: Ref
Returns whether this reference contains Indirect precedent.

Specified by:
isWithIndirectPrecedent in interface Ref
Overrides:
isWithIndirectPrecedent in class AbstractRefImpl
Returns:
whether this reference contains Indirect precedent.

setWithIndirectPrecedent

public void setWithIndirectPrecedent(boolean b)
Description copied from interface: Ref
Sets whether this reference contains Indirect precedent.

Specified by:
setWithIndirectPrecedent in interface Ref
Overrides:
setWithIndirectPrecedent in class AbstractRefImpl
Parameters:
b - whether this reference contains Indirect precedent.

removeSelf

protected void removeSelf()
Specified by:
removeSelf in class AbstractRefImpl


Copyright © 2005-2010 Potix Corporation. All Rights Reserved. SourceForge.net Logo