Package hec.dataTable
Class ArrayModel
java.lang.Object
javax.swing.table.AbstractTableModel
hec.dataTable.PairedDataModel
hec.dataTable.ArrayModel
- All Implemented Interfaces:
Serializable,TableModel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Vectorprotected DefaultTableCellRendererprotected StringBufferprotected booleanprotected DefaultTableCellRendererprotected DefaultTableCellRendererprotected booleanprotected booleanprotected intArrayContainer[]protected intprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected final intprotected final intFields inherited from class hec.dataTable.PairedDataModel
_compareMessage, _pairedModelColumns, _pairedModels, _type, _units, _xArrayFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TableCellRenderergetCellRenderer(HecDataTable table, int row, int column) intprotected StringgetColumnName(int col) booleanintgetModelValue(int row, int column) getName()protected int[]getNextEditableCell(int row, int column) intbooleanintgetSelectedDataString(int[] selection, int minColumn, int maxColumn) booleanbooleanbooleangetValueAt(int row, int column) protected voidincreaseMap(int column, int rows) voidbooleanisCellEditable(int row, int column) booleanisPasteString(String pstring, int column) protected booleanisQualityColumn(int column) protected voidmap(int column, int masterRow, int columnRow) voidbooleansearch(String findStr, int startingRow, int startingColumn, int firstColumn, boolean wholeWordOnly, boolean down, Dimension rowCol) voidsetColumnWidths(TableColumnModel columnModel) voidsetCommas(boolean showCommas) intvoidsetEditable(boolean isEditable) intsetModelValue(Object value, int row, int column) voidsetNumberHeaderRows(int number) voidsetPasteMode(boolean pasteMode) voidsetPlotProvider(PlotProvider plotProvider) voidsetShowFullDefinition(boolean showFullDefinition) voidsetShowTimes(boolean showTimes) intvoidsetValueAt(Object value, int row, int column) voidshowTimeAsBeginningOfDay(boolean showTimeAsBeginning) tabPos(int position) protected intunMap(int row, int column) protected intunMapToNextValidRow(int row, int column) Methods inherited from class hec.dataTable.PairedDataModel
addColumn, appendRows, canDeleteColumn, canInsertColumn, columnCurveNumber, compareDataSets, deleteColumn, deleteRows, getCompareMessage, getDataContainers, getDataSets, getDecimalPosition, getDecimalPosition, getSortColumnClass, getSortValueAt, hasDataChanged, inColumn, insertRowsBefore, numberOfPairedCurvesChanged, orderData, reMap, reMap, resetTable, save, saveAs, setDataChanged, setDecimalPosition, setDecimalPosition, setExtendable, setXAttribute, setXValue, setYAttribute, updateContainersMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
_isEditable
protected boolean _isEditable -
_isExtendable
protected boolean _isExtendable -
_hasBeenExtended
protected boolean _hasBeenExtended -
_showCommas
protected boolean _showCommas -
_pasteMode
protected boolean _pasteMode -
_showTimes
protected boolean _showTimes -
_showTimeAsBeginning
protected boolean _showTimeAsBeginning -
_showFullDefinition
protected boolean _showFullDefinition -
_firstPasteError
-
_dataColumns
-
_map
-
NULL_MAP_VAL
protected final int NULL_MAP_VAL- See Also:
-
UNDEFINED_MAP_VAL
protected final int UNDEFINED_MAP_VAL- See Also:
-
_headerRenderer
-
_integerRenderer
-
_doubleRenderer
-
_numberBlankRows
protected int _numberBlankRows
-
-
Constructor Details
-
ArrayModel
public ArrayModel()
-
-
Method Details
-
setData
- Overrides:
setDatain classPairedDataModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTableModel- Overrides:
getColumnCountin classPairedDataModel
-
getDataColumnCount
public int getDataColumnCount()- Overrides:
getDataColumnCountin classPairedDataModel
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTableModel- Overrides:
getRowCountin classPairedDataModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classPairedDataModel
-
getNominalName
- Overrides:
getNominalNamein classPairedDataModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classPairedDataModel
-
getModelValue
- Overrides:
getModelValuein classPairedDataModel
-
setModelValue
- Overrides:
setModelValuein classPairedDataModel
-
isCellEditable
public boolean isCellEditable(int row, int column) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classPairedDataModel
-
setValue
- Overrides:
setValuein classPairedDataModel
-
setPlotProvider
-
increaseMap
protected void increaseMap(int column, int rows) -
map
protected void map(int column, int masterRow, int columnRow) -
unMap
protected int unMap(int row, int column) -
unMapToNextValidRow
protected int unMapToNextValidRow(int row, int column) -
setEditable
public void setEditable(boolean isEditable) -
setPasteMode
public void setPasteMode(boolean pasteMode) -
getPasteMode
public boolean getPasteMode() -
initializeEntryStartTime
public void initializeEntryStartTime() -
setCommas
public void setCommas(boolean showCommas) -
getCommas
public boolean getCommas() -
setShowTimes
public void setShowTimes(boolean showTimes) -
getShowTimes
public boolean getShowTimes() -
showTimeAsBeginningOfDay
public void showTimeAsBeginningOfDay(boolean showTimeAsBeginning) -
getshowTimeAsBeginningOfDay
public boolean getshowTimeAsBeginningOfDay() -
setShowFullDefinition
public void setShowFullDefinition(boolean showFullDefinition) -
getShowFullDefinition
public boolean getShowFullDefinition() -
setNumberHeaderRows
public void setNumberHeaderRows(int number) -
getNumberHeaderRows
public int getNumberHeaderRows() -
plot
-
getName
-
search
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
isPasteString
-
isQualityColumn
protected boolean isQualityColumn(int column) -
getNextEditableCell
protected int[] getNextEditableCell(int row, int column) -
getSelectedDataString
-
allDataString
-
getColumnHeaderString
-
getCellRenderer
-
setColumnWidths
-
printString
-
fillTabs
-
tabPos
-