public interface

ObservationTableModel

vars.annotation.ui.table.ObservationTableModel
Known Indirect Subclasses

Summary

Constants
Integer FRAMEGRAB
Integer FRAMEGRAB_AND_SAMPLE
Integer NONE
Integer SAMPLE
Public Methods
abstract void addObservation(Observation obs)
Adds an observation to the table model.
abstract void clear()
abstract int findColumn(String id)
Find the index of the Column based on it's String identifier.
abstract Class getColumnClass(int columnIndex)
Gets the columnClass attribute of the ObservationTableModel object
abstract int getColumnCount()
Gets the columnCount attribute of the ObservationTableModel object
abstract int getNumberOfObservations()
Gets the numberOfObservations attribute of the ObservationTableModel object
abstract Observation getObservationAt(int rowIndex)
Get the observation at the given model index (not view)
abstract int getObservationRow(Observation observation)
Get the model index of the given observation
abstract int getRowCount()
Gets the rowCount attribute of the ObservationTableModel object
abstract void redrawAll()
Description of the Method
abstract void redrawRow(int row)
Description of the Method
abstract void removeObservation(Observation obs)
NOTE: If an observation has a videoFrame attached to it, it will NOT be removed from the model.
abstract void updateObservation(Observation observation)

Constants

public static final Integer FRAMEGRAB

public static final Integer FRAMEGRAB_AND_SAMPLE

public static final Integer NONE

public static final Integer SAMPLE

Public Methods

public abstract void addObservation (Observation obs)

Adds an observation to the table model.

Parameters
obs The observation to be added.

public abstract void clear ()

public abstract int findColumn (String id)

Find the index of the Column based on it's String identifier. This method delegates the call to ObservationColumnModel.findColumn

Parameters
id Description of the Parameter
Returns
  • Description of the Return Value

public abstract Class getColumnClass (int columnIndex)

Gets the columnClass attribute of the ObservationTableModel object

Parameters
columnIndex Description of the Parameter
Returns
  • The columnClass value

public abstract int getColumnCount ()

Gets the columnCount attribute of the ObservationTableModel object

Returns
  • The columnCount value

public abstract int getNumberOfObservations ()

Gets the numberOfObservations attribute of the ObservationTableModel object

Returns
  • The numberOfObservations value

public abstract Observation getObservationAt (int rowIndex)

Get the observation at the given model index (not view)

Parameters
rowIndex Description of the Parameter
Returns
  • The observationAt value

public abstract int getObservationRow (Observation observation)

Get the model index of the given observation

Parameters
observation THe observation to find
Returns
  • The row containing the observation. -1 is return if the observation is not found or if the observation was null

public abstract int getRowCount ()

Gets the rowCount attribute of the ObservationTableModel object

Returns
  • The rowCount value

public abstract void redrawAll ()

Description of the Method

public abstract void redrawRow (int row)

Description of the Method

Parameters
row Description of the Parameter

public abstract void removeObservation (Observation obs)

NOTE: If an observation has a videoFrame attached to it, it will NOT be removed from the model. You must first remove it's videoFrame!!

Parameters
obs The observation to be removed.

public abstract void updateObservation (Observation observation)