com.eliad.model
Interface DirectSpanModel
- All Known Implementing Classes:
- AbstractDirectSpanModel
- public interface DirectSpanModel
- extends SpanModel
This interface should be implemented by SpanModels that do not need
to maintain data structures to know where the spans are,
but are able to answer a question about the presence of a span
at some point in O(1) time, using some procedural rules.
- Version:
- 1.0 05/09/00
- Author:
- Patrick Mérissert-Coffinières
Method Summary |
ExtentCell |
getSpanOver(int row,
int column)
Obtains a Rectangle representing the bounds of the span
overlapping the cell at row , column .
|
boolean |
isEmpty()
Returns true only if there is no span in the model |
getSpanOver
public ExtentCell getSpanOver(int row,
int column)
- Obtains a
Rectangle
representing the bounds of the span
overlapping the cell at row
, column
.
There should be only one answer for a given row, cell.
- Parameters:
row
- the row of a cellcolumn
- the column a cell- Returns:
- the description of the span containing this cell, null if there is none
isEmpty
public boolean isEmpty()
- Returns true only if there is no span in the model