org.openjump.core.ui.plugin.tools.statistics
Class StatisticOverViewTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.openjump.core.apitools.tables.StandardPirolTableModel
          extended by org.openjump.core.ui.plugin.tools.statistics.StatisticOverViewTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class StatisticOverViewTableModel
extends StandardPirolTableModel

Table model to show a quick, statistical overview for a layer (or selection)

Version:
$Rev: 2451 $ modified: [sstein] 16.Feb.2009
Author:
Ole Rahn

FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement
See Also:
Serialized Form

Field Summary
protected  java.lang.Class[] colClasses
           
protected  Feature[] features
           
 
Fields inherited from class org.openjump.core.apitools.tables.StandardPirolTableModel
colNames, rows
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
StatisticOverViewTableModel(Feature[] features)
           
 
Method Summary
protected  void addRow(java.lang.String attrName, AttributeType type, java.lang.Double minVal, java.lang.Object mean, java.lang.Double maxVal, java.lang.Double deviation, java.lang.Double sum)
           
 java.lang.Class getColumnClass(int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
protected  void setupTable()
           
 
Methods inherited from class org.openjump.core.apitools.tables.StandardPirolTableModel
addRow, clearTable, findColumn, getColNames, getColumnCount, getColumnName, getRowCount, getValueAt, setColNames, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colClasses

protected java.lang.Class[] colClasses

features

protected Feature[] features
Constructor Detail

StatisticOverViewTableModel

public StatisticOverViewTableModel(Feature[] features)
Method Detail

setupTable

protected void setupTable()

addRow

protected void addRow(java.lang.String attrName,
                      AttributeType type,
                      java.lang.Double minVal,
                      java.lang.Object mean,
                      java.lang.Double maxVal,
                      java.lang.Double deviation,
                      java.lang.Double sum)

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Specified by:
isCellEditable in class StandardPirolTableModel
Parameters:
rowIndex - row index for cell
columnIndex - column index for cell
Returns:
always false, since we just want to show information

getColumnClass

public java.lang.Class getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Specified by:
getColumnClass in class StandardPirolTableModel