dyntable
Interface CellSpan

All Known Implementing Classes:
DefaultCellAttribute

public interface CellSpan

$Id: CellSpan.java,v 1.0 2005/09/25 jDynTable@gmx.de $
The CellSpan Interface is implemented by DefaultCellAttribute and used in used in some of the table classes. It provides some basic methods concerning table cell spans. These methods are very important for cell combination / cell split.

Version:
$Revision: 1.0 $
Author:
$Author: jdyntable@gmx.de $

Field Summary
static int COLUMN
          Symbolic constant - value is 1
static int ROW
          Symbolic constant - value is 0
 
Method Summary
 int[] getSpan(int row, int column)
          Returns cell span at position row/column.
 boolean isVisible(int row, int column)
          A cell may be not visible if its neighbor cell is combined with it
 void setSpan(int[] span, int row, int column)
          Sets cell span at position row/column
 

Field Detail

ROW

public static final int ROW
Symbolic constant - value is 0

See Also:
Constant Field Values

COLUMN

public static final int COLUMN
Symbolic constant - value is 1

See Also:
Constant Field Values
Method Detail

getSpan

public int[] getSpan(int row,
                     int column)
Returns cell span at position row/column. The cell span provides information about if and how a cell is combined.

Parameters:
row - integer with Row
column - integer with Column
Returns:
array of two elements containing cell span at given position

setSpan

public void setSpan(int[] span,
                    int row,
                    int column)
Sets cell span at position row/column

Parameters:
row - integer with Row
column - integer with Column
span - span of the cell

isVisible

public boolean isVisible(int row,
                         int column)
A cell may be not visible if its neighbor cell is combined with it

Parameters:
row - integer with Row
column - integer with Column
Returns:
true if visible, otherwise false