gate.annotation
Class CorpusAnnotationDiff.AnnotationDiffTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by gate.annotation.CorpusAnnotationDiff.AnnotationDiffTableModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
CorpusAnnotationDiff

protected class CorpusAnnotationDiff.AnnotationDiffTableModel
extends AbstractTableModel

A custom table model used to render a table containing the two annotation sets. The columns will be: (KEY) Type, Start, End, Features, empty column,(Response) Type,Start, End, Features

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CorpusAnnotationDiff.AnnotationDiffTableModel()
          Constructs an AnnotationDiffTableModel
CorpusAnnotationDiff.AnnotationDiffTableModel(Collection<CorpusAnnotationDiff.DiffSetElement> data)
          Constructs an AnnotationDiffTableModel given a data Collection
 
Method Summary
 Class<?> getColumnClass(int column)
          Return the class type for each column.
 int getColumnCount()
          Return the number of columns.
 String getColumnName(int column)
          Returns the name of each column in the model
 Object getRawObject(int row)
           
 int getRowCount()
          Return the size of data.
 Object getValueAt(int row, int column)
          Returns a value from the table model
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorpusAnnotationDiff.AnnotationDiffTableModel

public CorpusAnnotationDiff.AnnotationDiffTableModel(Collection<CorpusAnnotationDiff.DiffSetElement> data)
Constructs an AnnotationDiffTableModel given a data Collection


CorpusAnnotationDiff.AnnotationDiffTableModel

public CorpusAnnotationDiff.AnnotationDiffTableModel()
Constructs an AnnotationDiffTableModel

Method Detail

getRowCount

public int getRowCount()
Return the size of data.


getColumnCount

public int getColumnCount()
Return the number of columns.


getColumnName

public String getColumnName(int column)
Returns the name of each column in the model

Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getColumnClass

public Class<?> getColumnClass(int column)
Return the class type for each column.

Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

getValueAt

public Object getValueAt(int row,
                         int column)
Returns a value from the table model


getRawObject

public Object getRawObject(int row)