databionics.esom.tool.data
Class SelectedDataTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by databionics.esom.tool.data.SelectedDataTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class SelectedDataTableModel
extends javax.swing.table.AbstractTableModel

Author:
Mario model with selected data points
See Also:
Serialized Form

Field Summary
protected  cern.colt.matrix.DoubleMatrix2D data
          DoubleMatrix2D with selected rows of lrnFile
protected  DataclassTool dataclassTool
          the renderer
protected  cern.colt.list.IntArrayList idxs
          the selected Indexes
protected static org.apache.log4j.Logger log
          interface to log4j system
protected  LrnFile lrn
          the underlying data
protected  cern.colt.list.IntArrayList selectedClasses
          IntArrayList with selected classes
protected  cern.colt.list.IntArrayList selectedKeys
          IntArray with selected keys
protected  LrnFile selectedLrn
          the underlying data
protected  AbstractTool tool
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SelectedDataTableModel(AbstractTool tool)
          constructor
 
Method Summary
 int getColumnCount()
          returns the number of columns
 java.lang.String getColumnName(int columnIndex)
          returns the name of each column
 cern.colt.list.IntArrayList getIdxs()
           
 LrnFile getLrnFile()
           
 int getRowCount()
          returns the number of rows
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          returns the value of the wanted cell
 void reset()
          resets the selected LrnFile
 void setSelection(cern.colt.list.IntArrayList indexes)
          sets the selected data in selectedLrn
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
          handles value, which is set to one cell
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
interface to log4j system


lrn

protected LrnFile lrn
the underlying data


selectedLrn

protected LrnFile selectedLrn
the underlying data


idxs

protected cern.colt.list.IntArrayList idxs
the selected Indexes


data

protected cern.colt.matrix.DoubleMatrix2D data
DoubleMatrix2D with selected rows of lrnFile


selectedClasses

protected cern.colt.list.IntArrayList selectedClasses
IntArrayList with selected classes


selectedKeys

protected cern.colt.list.IntArrayList selectedKeys
IntArray with selected keys


dataclassTool

protected DataclassTool dataclassTool
the renderer


tool

protected AbstractTool tool
Constructor Detail

SelectedDataTableModel

public SelectedDataTableModel(AbstractTool tool)
constructor

Parameters:
renderer - the main Renderer
bottomBar - the bottomBar
Method Detail

setSelection

public void setSelection(cern.colt.list.IntArrayList indexes)
sets the selected data in selectedLrn

Parameters:
indexes - IntarrayList with indexes of selected datapoints

getColumnName

public java.lang.String getColumnName(int columnIndex)
returns the name of each column

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnCount

public int getColumnCount()
returns the number of columns


getRowCount

public int getRowCount()
returns the number of rows


getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
returns the value of the wanted cell

Parameters:
rowIndex - row number
columnIndex - column number

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
handles value, which is set to one cell

Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel
Parameters:
aValue - value of cell
rowIndex - row number of cell
columnIndex - column number of cell

getLrnFile

public LrnFile getLrnFile()
Returns:
selected LrnFile

reset

public void reset()
resets the selected LrnFile


getIdxs

public cern.colt.list.IntArrayList getIdxs()
Returns:
idxs of selected data points


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.