com.eliad.model
Interface QuerySpanModel

All Known Implementing Classes:
AbstractQuerySpanModel

public interface QuerySpanModel
extends SpanModel

This interface should be implemented by span models that are able to answer a question about the presence of a span at a certain point. QuerySpanModel should be used for algorithms ranging from constant to linear. For strictly constant algorithms, DirectSpanModel is better to use.

Version:
1.0 00/04/08
Author:
Patrick Mérissert-Coffinières

Method Summary
 ExtentCell getSpanOver(int row, int column)
          Obtains a Rectangle representing the span bounds which overlaps the cell at row, column.
 boolean isEmpty()
          Returns true only if there is no span
 
Methods inherited from interface com.eliad.model.SpanModel
addSpanModelListener, removeSpanModelListener
 

Method Detail

getSpanOver

public ExtentCell getSpanOver(int row,
                              int column)
Obtains a Rectangle representing the span bounds which overlaps the cell at row, column.

There should be only one answer for a given row, cell.

Parameters:
row - the row of a cell
column - 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