Package hec.map.aishape.ui
Class FieldColorTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
rma.swing.table.AbstractRmaTableModel
hec.map.aishape.ui.FieldColorTableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel,RmaTableModelInterface
Class that generates a table of colors to a AiShape drawing attribute.
- See Also:
-
Field Summary
Fields inherited from class rma.swing.table.AbstractRmaTableModel
m_columnNames, m_displayUnitSystem, m_gmtOffset, m_unitSystemFields inherited from class javax.swing.table.AbstractTableModel
listenerListFields inherited from interface rma.swing.table.RmaTableModelInterface
UNDEF_COLUMN_PARAM_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintReturns the number of row in the table model.getValueAt(int row, int column) Returns the value at a given row/column location.booleanisCellEditable(int rowIndex, int columnIndex) voidvoidsetColorContour(ColorContour colorContour) voidsetData(AiShapeMap map, AiShapeGlyphDataRecord record, int fieldIdx) voidsetFieldIndex(int fieldIdx) voidsetNumGradations(int numGradations) voidsetUseGradations(boolean b) voidsetValueAt(Object aValue, int row, int column) Methods inherited from class rma.swing.table.AbstractRmaTableModel
addColumn, addColumn, addRow, clearAll, deleteRow, getColumnClass, getColumnCount, getColumnName, getColumnParameter, getDataVector, getDisplayUnitSystem, getGmtOffset, getRow, getUnitSystem, insertRow, insertRows, resetRowEnabled, setColEnabled, setColumnClass, setColumnNames, setColumnNames, setColumnParameters, setDisplayUnitsSystem, setRowEnabled, setUnitSystemMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface rma.swing.table.RmaTableModelInterface
setCellEnabledMethods inherited from interface javax.swing.table.TableModel
addTableModelListener, removeTableModelListener
-
Constructor Details
-
FieldColorTableModel
public FieldColorTableModel()Creates a new instance of FieldColorTableModel
-
-
Method Details
-
commitData
public void commitData() -
setNumGradations
public void setNumGradations(int numGradations) -
setUseGradations
public void setUseGradations(boolean b) -
setData
-
setFieldIndex
public void setFieldIndex(int fieldIdx) -
setColorContour
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractRmaTableModel
-
getValueAt
Description copied from class:AbstractRmaTableModelReturns the value at a given row/column location. The default method returns null. Needs to be overrridden- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classAbstractRmaTableModel- Parameters:
row- the row to look for the value in.column- the column to look for the value in.
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractRmaTableModel
-
getRowCount
public int getRowCount()Description copied from class:AbstractRmaTableModelReturns the number of row in the table model. The default method always returns 0, so this method must be overridden to return a row count other than 0.- Specified by:
getRowCountin interfaceTableModel- Overrides:
getRowCountin classAbstractRmaTableModel- Returns:
- the row count.
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-