com.rapidminer.gui.dialog
Class AttributeWeightsTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.rapidminer.gui.dialog.AttributeWeightsTableModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
public class AttributeWeightsTableModel
- extends javax.swing.table.AbstractTableModel
This table model is used by an AttributeWeightsDialog. It is used to
show attribute weights created by the process, by the user, or were loaded
from a file. Several view modes and sorting are supported.
- Author:
- Ingo Mierswa
ingomierswa Exp $
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VIEW_ALL
public static final int VIEW_ALL
- See Also:
- Constant Field Values
VIEW_FILE
public static final int VIEW_FILE
- See Also:
- Constant Field Values
VIEW_PROCESS
public static final int VIEW_PROCESS
- See Also:
- Constant Field Values
VIEW_UPDATED
public static final int VIEW_UPDATED
- See Also:
- Constant Field Values
VIEW_SELECTED
public static final int VIEW_SELECTED
- See Also:
- Constant Field Values
VIEW_MODES
public static final java.lang.String[] VIEW_MODES
AttributeWeightsTableModel
public AttributeWeightsTableModel(AttributeWeights weights)
readResolve
protected java.lang.Object readResolve()
getValueAt
public java.lang.Object getValueAt(int row,
int column)
setValueAt
public void setValueAt(java.lang.Object value,
int row,
int column)
- Specified by:
setValueAt in interface javax.swing.table.TableModel- Overrides:
setValueAt in class javax.swing.table.AbstractTableModel
isCellEditable
public boolean isCellEditable(int row,
int column)
- Specified by:
isCellEditable in interface javax.swing.table.TableModel- Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel
getRowCount
public int getRowCount()
getColumnCount
public int getColumnCount()
getColumnName
public java.lang.String getColumnName(int column)
- Specified by:
getColumnName in interface javax.swing.table.TableModel- Overrides:
getColumnName in class javax.swing.table.AbstractTableModel
getAttributeWeights
public AttributeWeights getAttributeWeights()
getWeightEditor
public PropertyValueCellEditor getWeightEditor(int row)
setViewMode
public void setViewMode(int mode)
setOverwriteMode
public void setOverwriteMode(boolean overwrite)
- Indicates if values which are merged with the current weights should
overwrite them. Please note that a value of zero always overwrites the
current weight!
setMinWeight
public void setMinWeight(double minWeight)
getMinWeight
public double getMinWeight()
mergeWeights
public void mergeWeights(AttributeWeights fileWeights)
getNumberOfSelected
public int getNumberOfSelected()
getTotalNumber
public int getTotalNumber()
updateTable
public void updateTable()
Copyright © 2001-2009 by Rapid-I