com.rapidminer.gui.viewer
Class MetaDataViewerTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.rapidminer.gui.viewer.MetaDataViewerTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class MetaDataViewerTableModel
extends javax.swing.table.AbstractTableModel

The model for the MetaDataViewerTable.

Author:
Ingo Mierswa
See Also:
Serialized Form

Field Summary
static int BLOCK_TYPE
           
static java.lang.Class[] COLUMN_CLASSES
           
static java.lang.String[] COLUMN_NAMES
           
static int DEFAULT_MAX_DISPLAYED_VALUES
           
static int DEFAULT_MAX_NUMBER_OF_ROWS_FOR_STATISTICS
           
static int INDEX
           
static int NAME
           
static int SOURCE
           
static int STATISTICS_AVERAGE
           
static int STATISTICS_RANGE
           
static int STATISTICS_SUM
           
static int STATISTICS_UNKNOWN
           
static int TYPE
           
static int VALUE_TYPE
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
MetaDataViewerTableModel(ExampleSet exampleSet)
           
 
Method Summary
 void calculateStatistics()
           
 java.lang.Class<?> getColumnClass(int col)
          Returns the classes of the columns.
 int getColumnCount()
          Returns up to 9 for the following eight columns (depending on the current column selection):
0: type
1: index
2: name
3: construction
4: value type
5: block type
6: basic statistics
7: range statistics
8: sum statistics
9: unknown statistics
 java.lang.String getColumnName(int col)
          Returns one of the following nine column names:
0: type
1: index
2: name
3: construction
4: type
5: block type
6: basic statistics
7: range statistics
8: sum statistics
9: unknown statistics
 java.lang.String getColumnToolTip(int column)
          Returns the tool tip text for the specified column.
 int getRowCount()
           
 boolean getShowColumn(int index)
           
 java.lang.Object getValueAt(int row, int col)
           
 void setShowColumn(int index, boolean show)
           
 
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
 

Field Detail

DEFAULT_MAX_NUMBER_OF_ROWS_FOR_STATISTICS

public static final int DEFAULT_MAX_NUMBER_OF_ROWS_FOR_STATISTICS
See Also:
Constant Field Values

DEFAULT_MAX_DISPLAYED_VALUES

public static final int DEFAULT_MAX_DISPLAYED_VALUES
See Also:
Constant Field Values

TYPE

public static final int TYPE
See Also:
Constant Field Values

INDEX

public static final int INDEX
See Also:
Constant Field Values

NAME

public static final int NAME
See Also:
Constant Field Values

SOURCE

public static final int SOURCE
See Also:
Constant Field Values

VALUE_TYPE

public static final int VALUE_TYPE
See Also:
Constant Field Values

BLOCK_TYPE

public static final int BLOCK_TYPE
See Also:
Constant Field Values

STATISTICS_AVERAGE

public static final int STATISTICS_AVERAGE
See Also:
Constant Field Values

STATISTICS_RANGE

public static final int STATISTICS_RANGE
See Also:
Constant Field Values

STATISTICS_SUM

public static final int STATISTICS_SUM
See Also:
Constant Field Values

STATISTICS_UNKNOWN

public static final int STATISTICS_UNKNOWN
See Also:
Constant Field Values

COLUMN_NAMES

public static final java.lang.String[] COLUMN_NAMES

COLUMN_CLASSES

public static final java.lang.Class[] COLUMN_CLASSES
Constructor Detail

MetaDataViewerTableModel

public MetaDataViewerTableModel(ExampleSet exampleSet)
Method Detail

calculateStatistics

public void calculateStatistics()

setShowColumn

public void setShowColumn(int index,
                          boolean show)

getShowColumn

public boolean getShowColumn(int index)

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()
Returns up to 9 for the following eight columns (depending on the current column selection):
0: type
1: index
2: name
3: construction
4: value type
5: block type
6: basic statistics
7: range statistics
8: sum statistics
9: unknown statistics


getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)

getColumnName

public java.lang.String getColumnName(int col)
Returns one of the following nine column names:
0: type
1: index
2: name
3: construction
4: type
5: block type
6: basic statistics
7: range statistics
8: sum statistics
9: unknown statistics

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

getColumnClass

public java.lang.Class<?> getColumnClass(int col)
Returns the classes of the columns.

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

getColumnToolTip

public java.lang.String getColumnToolTip(int column)
Returns the tool tip text for the specified column.



Copyright © 2001-2009 by Rapid-I